Commit 172b71c2 authored by 罗超's avatar 罗超

修改行程

parent 71e7d550
......@@ -462,8 +462,11 @@
ref="diyContext"
:style="{ zoom: zoomDiyContext }"
v-html="dataList.feature.featureHtml"
v-if="dataList.feature.featureHtml != ''"
v-if="dataList.feature.featureHtml != '' && (!tripImages || tripImages.length==0)"
></div>
<div v-else-if="tripImages.length>0">
<img :src="x" width="100%" v-for="(x,i) in tripImages" :key="i">
</div>
<div
class="text-h5 text-weight-bold text-left q-mt-xl"
ref="product"
......@@ -772,6 +775,7 @@ export default {
priceListHeight: 0,
stickyHeight: 0,
zoomDiyContext: 1,
tripImages:[]
};
},
components: {
......@@ -836,6 +840,14 @@ export default {
// this.getCarData();
},
methods: {
getTripFeatureImageHandler(configId){
this.$axios.get("http://upload.oytour.com/Home/GetTripImage?configId="+configId).then(r=>{
console.log(r.data,'r.data.data.id')
if(r.data.OtherFile){
this.tripImages=r.data.OtherFile
}
})
},
changeShowOrderPreviewHandler() {
this.showOrderPreview = !this.showOrderPreview;
if (!this.showOrderPreview) {
......@@ -996,6 +1008,7 @@ export default {
(r) => {
try {
if (r.data.resultCode == 1 && r.data.data.id>0) {
this.getTripFeatureImageHandler(r.data.data.id)
this.dataList = r.data.data;
if (this.dataList.dayList && this.dataList.dayList.length > 0) {
this.dataList.dayList.forEach((item) => {
......
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