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

修改行程

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