Commit 0566e19d authored by youjie's avatar youjie

修复

parent 09fce93c
......@@ -758,7 +758,7 @@
});
},
openPicture() {
let imgObj = JSON.stringify(this.dataList.images.map(x=> x.Path));
let imgObj = JSON.stringify(this.imgsList);
uni.navigateTo({
url: "/pages/hotel/picture?imgObj=" + imgObj,
});
......@@ -954,8 +954,12 @@
}
arrList(res.data.rooms)
this.dataList = res.data;
this.imgsList = [];
for (let i = 0; i < res.data.images.length; i++) {
res.data.images[i].Path = res.data.images[i].url
this.imgsList.push({
Path:res.data.images[i].url
})
}
this.hotelData.hotelid = this.dataList.hotelid;
this.hotelData.name = this.dataList.name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment