修改图片预览
This commit is contained in:
@@ -1106,21 +1106,25 @@ let housingInfo = reactive({})
|
||||
let concatInfo = reactive({})
|
||||
|
||||
let setHousingArr = () => {
|
||||
let arr = []
|
||||
arr = housingInfo['data'].info.video ? arr.concat(housingInfo['data'] && housingInfo['data'].info.video) : []
|
||||
arr = housingInfo['data'].info.picturegroup ? arr.concat(housingInfo['data'] && housingInfo['data'].info.picturegroup) : []
|
||||
imgList.value = imgList.value.concat(arr)
|
||||
// let arr = []
|
||||
// arr = housingInfo['data'].info.video ? arr.concat(housingInfo['data'] && housingInfo['data'].info.video) : []
|
||||
// arr = housingInfo['data'].info.picturegroup ? arr.concat(housingInfo['data'] && housingInfo['data'].info.picturegroup) : []
|
||||
// imgList.value = imgList.value.concat(arr)
|
||||
|
||||
console.log(imgList.value)
|
||||
if (housingInfo['data'].info.video) {
|
||||
housingInfo['data'].info.video.forEach(element => {
|
||||
element['type'] = 'videos'
|
||||
})
|
||||
|
||||
housingInfo['data'].info.video.forEach(element => {
|
||||
console.log("element", element);
|
||||
element['type'] = 'videos'
|
||||
})
|
||||
imgList.value = [...housingInfo['data'].info.video]
|
||||
}
|
||||
if (housingInfo['data'].info.picturegroup) {
|
||||
housingInfo['data'].info.picturegroup.forEach(element => {
|
||||
element['type'] = 'attachment'
|
||||
})
|
||||
imgList.value = [...housingInfo['data'].info.picturegroup]
|
||||
}
|
||||
|
||||
// lives
|
||||
|
||||
console.log("housingInfo['data'].info.video", housingInfo['data'].info.video);
|
||||
|
||||
}
|
||||
|
||||
@@ -2644,7 +2648,6 @@ img {
|
||||
}
|
||||
|
||||
.school-info {
|
||||
|
||||
height: 500px;
|
||||
overflow-y: scroll;
|
||||
font-family: 'PingFangSC-Semibold', 'PingFang SC Semibold', 'PingFang SC', sans-serif;
|
||||
@@ -2794,5 +2797,6 @@ img {
|
||||
}
|
||||
}
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user