Commit 61cf8e61 authored by zhengke's avatar zhengke

修改

parent 78e6d257
...@@ -532,7 +532,7 @@ ...@@ -532,7 +532,7 @@
color: #fff; color: #fff;
position: relative; position: relative;
background-size: cover; background-size: cover;
background: url('../../assets/img/newtrip/hotel.jpg') no-repeat 100% 100%; background-position: center!important;
} }
.tripViewAgendaList .agendaBox .txtCont { .tripViewAgendaList .agendaBox .txtCont {
...@@ -1019,7 +1019,7 @@ ...@@ -1019,7 +1019,7 @@
<div class="agendaBox"> <div class="agendaBox">
<div class="indexNum numberList">{{index+1}}</div> <div class="indexNum numberList">{{index+1}}</div>
<div class="coverWrap" <div class="coverWrap"
:style="`background: url(${subItem.childItem.imaArray[0].url}) no-repeat 100% 100%`"> :style="`background: url(${subItem.childItem.imaArray[0].url}) no-repeat 100% 100%`" @click="bigImgShow(subItem.childItem.imaArray[0].url)">
</div> </div>
<div class="txtCont icon-triangle"> <div class="txtCont icon-triangle">
<div class="detailBox"> <div class="detailBox">
...@@ -1105,7 +1105,7 @@ ...@@ -1105,7 +1105,7 @@
</div> </div>
</div> </div>
<viewer style="display:none" :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer"> <viewer style="display:none" :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer">
<img v-for="(item,index) in images" :src="item" :key="index+5000" class="12312312"> <img v-for="(item,index) in images" :src="item" :key="index+8000" class="12312312">
</viewer> </viewer>
</div> </div>
</template> </template>
...@@ -1163,11 +1163,9 @@ ...@@ -1163,11 +1163,9 @@
this.$viewer = viewer; this.$viewer = viewer;
}, },
bigImgShow(url) { bigImgShow(url) {
this.images=[]; let index = this.images.indexOf(url);
this.images.push(url);
console.log(this.images,'imagesss');
if(this.images.length>0){ if(this.images.length>0){
this.$viewer.view(0) this.$viewer.view(index)
this.$viewer.show(); this.$viewer.show();
} }
}, },
...@@ -1176,9 +1174,19 @@ ...@@ -1176,9 +1174,19 @@
this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => { this.apipost('b2b_get_GetB2BTravelInfoV1', this.msg, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.dataList = res.data.data; this.dataList = res.data.data;
console.log("dayList", this.dataList.dayList);
this.isShow = true; this.isShow = true;
this.getAllPoint(); this.getAllPoint();
//装载景点酒店图片以供预览
this.images=[];
this.dataList.dayList.forEach(x=>{
x.dayArray.forEach(y=>{
if(y.type==2||y.type==3){
if(y.childItem.imaArray.length>0){
this.images.push(y.childItem.imaArray[0].url);
}
}
})
})
} else { } else {
this.Error(res.data.message) this.Error(res.data.message)
} }
......
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