Commit f4ecb223 authored by 沈良进's avatar 沈良进

Merge branch 'master' of http://gitlab.oytour.com/viitto/million

parents 981cc781 6fb01a56
...@@ -148,7 +148,6 @@ export default { ...@@ -148,7 +148,6 @@ export default {
this.p = n; this.p = n;
if(n&&n.startDate){ if(n&&n.startDate){
this.chosenObj.startDate = n.startDate; this.chosenObj.startDate = n.startDate;
console.log(this.chosenObj.startDate,this.dataAll,'===')
let arr = this.dataAll.filter(x=> x.Date==this.chosenObj.startDate) let arr = this.dataAll.filter(x=> x.Date==this.chosenObj.startDate)
if(arr.length>0){ if(arr.length>0){
this.TicketIds = arr[0].Price.map(x=> {return x.TicketId}) this.TicketIds = arr[0].Price.map(x=> {return x.TicketId})
......
...@@ -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) => {
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
/>添加出行人</q-btn />添加出行人</q-btn
> >
</div> </div>
<div class="mt flex justify-end"> <div class="mt flex justify-end" v-if="pageCount">
<q-pagination <q-pagination
v-model="current" v-model="current"
:max="pageCount" :max="pageCount"
...@@ -141,9 +141,9 @@ ...@@ -141,9 +141,9 @@
<div class="bg-white dialog-box" style="padding: 20px"> <div class="bg-white dialog-box" style="padding: 20px">
<div class="f22 bold">{{ form.Id ? "编辑" : "新增" }}出行人信息</div> <div class="f22 bold">{{ form.Id ? "编辑" : "新增" }}出行人信息</div>
<form @submit.prevent.stop="submit" class="q-gutter-md"> <form @submit.prevent.stop="submit" class="q-gutter-md">
<div> <div class="q-pt-md">
<div :class="$q.platform.is.desktop ? 'row': 'culmuns'"> <div :class="$q.platform.is.desktop ? 'row': 'culmuns'">
<div class="col q-mt-md"> <div class="col">
<div class="title"></div> <div class="title"></div>
<q-input <q-input
class="form-item" class="form-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