mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 10:49:36 +08:00
描述:展厅图片
This commit is contained in:
parent
eaeeb49e98
commit
6e0596c47f
@ -32,9 +32,18 @@ Page({
|
|||||||
})
|
})
|
||||||
showroomDetailRq(_this.data.id).then(res => {
|
showroomDetailRq(_this.data.id).then(res => {
|
||||||
console.log('showroomDetailRq', 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({
|
_this.setData({
|
||||||
detail: res.data,
|
detail,
|
||||||
bannerList: [res.data.indoorPicUrl]
|
bannerList
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
// 获取地址信息
|
// 获取地址信息
|
||||||
|
@ -100,9 +100,18 @@ Page({
|
|||||||
getDetail() {
|
getDetail() {
|
||||||
let _this = this;
|
let _this = this;
|
||||||
showroomDetailRq(this.data.id).then(res => {
|
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({
|
_this.setData({
|
||||||
detail: res.data,
|
detail,
|
||||||
bannerList: [res.data.indoorPicUrl]
|
bannerList
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user