Commit a6a8b735 authored by 潘永坪's avatar 潘永坪

索道票下单页面站点信息未上传给后端处理

parent 7690be48
......@@ -405,6 +405,13 @@ export default {
couponData:[], //选择产品的所有劵数据
chooseCouponObj: '', //选择产品选中的券
chooseCredential:'',//选中的产品的需要的证件类型
timer:null,//时间函数
}
},
onUnload() {
if(this.timer) {
clearTimeout(this.timer)
this.timer = null
}
},
onLoad(option) {
......@@ -552,8 +559,10 @@ export default {
let data = {
merchantCode:item.merchantVo.code //商户code
}
this.$request('distribution/distribution/findNewFetchInfoFromSceinc', data).then(res => {
this.$request('distribution/distribution/findNewFetchInfoFromSceinc', data,true).then(res => {
if (res.code == '00') {
//请求成功,默认为上架状态
this.orderStatus=0
this.sortArr = res.data.data||[]
let data = res.data
item.areaObj={}
......@@ -591,7 +600,16 @@ export default {
}
}
}else{
//请求失败,默认为下架状态
this.orderStatus=1
}
}).catch(err => {
//请求失败,默认为下架状态
this.orderStatus=1
this.timer = setTimeout(() => {
this.sortUpDown(item)
}, 2000)
})
},
//---获取班次票
......
......@@ -470,6 +470,13 @@ export default {
couponData:'', //所有劵数据
chooseCouponObj: '', //默认选中最优价格优惠券
ableConpon: '', //没有可用优惠券时,达到一定条件可用,显示达到的条件
timer:null,//时间函数
}
},
onUnload() {
if(this.timer) {
clearTimeout(this.timer)
this.timer = null
}
},
onLoad(option) {
......@@ -662,8 +669,10 @@ export default {
let data = {
merchantCode: this.merchantCode //商户code
}
this.$request('distribution/distribution/findNewFetchInfoFromSceinc', data).then(res => {
this.$request('distribution/distribution/findNewFetchInfoFromSceinc', data,true).then(res => {
if (res.code == '00') {
//请求成功,默认为上架状态
this.productIfo.status=0
this.sortArr = res.data.data
let data = res.data
let areaList=this.productIfo.productAreaList
......@@ -696,7 +705,16 @@ export default {
}
}
}
}else{
//请求失败,默认为下架状态
this.productIfo.status=1
}
}).catch(err => {
//请求失败,默认为下架状态
this.productIfo.status=1
this.timer = setTimeout(() => {
this.sortUpDown()
}, 2000)
})
},
//---获取班次票
......
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