mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 04:59:37 +08:00
描述:展厅图片
This commit is contained in:
parent
eaeeb49e98
commit
6e0596c47f
@ -32,9 +32,18 @@ Page({
|
||||
})
|
||||
showroomDetailRq(_this.data.id).then(res => {
|
||||
console.log('showroomDetailRq', res);
|
||||
let detail = res.data;
|
||||
let bannerList = []
|
||||
if (detail.indoorPicUrl) {
|
||||
try {
|
||||
bannerList = JSON.parse(detail.indoorPicUrl).map(item=>item.url)
|
||||
} catch (error) {
|
||||
console.log(`JSON error : ${error}`);
|
||||
}
|
||||
}
|
||||
_this.setData({
|
||||
detail: res.data,
|
||||
bannerList: [res.data.indoorPicUrl]
|
||||
detail,
|
||||
bannerList
|
||||
})
|
||||
})
|
||||
// 获取地址信息
|
||||
|
@ -100,9 +100,18 @@ Page({
|
||||
getDetail() {
|
||||
let _this = this;
|
||||
showroomDetailRq(this.data.id).then(res => {
|
||||
let detail = res.data;
|
||||
let bannerList = []
|
||||
if (detail.indoorPicUrl) {
|
||||
try {
|
||||
bannerList = JSON.parse(detail.indoorPicUrl).map(item=>item.url)
|
||||
} catch (error) {
|
||||
console.log(`JSON error : ${error}`);
|
||||
}
|
||||
}
|
||||
_this.setData({
|
||||
detail: res.data,
|
||||
bannerList: [res.data.indoorPicUrl]
|
||||
detail,
|
||||
bannerList
|
||||
})
|
||||
})
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user