Commit 0566e19d authored by youjie's avatar youjie

修复

parent 09fce93c
...@@ -758,7 +758,7 @@ ...@@ -758,7 +758,7 @@
}); });
}, },
openPicture() { openPicture() {
let imgObj = JSON.stringify(this.dataList.images.map(x=> x.Path)); let imgObj = JSON.stringify(this.imgsList);
uni.navigateTo({ uni.navigateTo({
url: "/pages/hotel/picture?imgObj=" + imgObj, url: "/pages/hotel/picture?imgObj=" + imgObj,
}); });
...@@ -954,8 +954,12 @@ ...@@ -954,8 +954,12 @@
} }
arrList(res.data.rooms) arrList(res.data.rooms)
this.dataList = res.data; this.dataList = res.data;
this.imgsList = [];
for (let i = 0; i < res.data.images.length; i++) { for (let i = 0; i < res.data.images.length; i++) {
res.data.images[i].Path = res.data.images[i].url 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.hotelid = this.dataList.hotelid;
this.hotelData.name = this.dataList.name; 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