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

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

parent 7690be48
......@@ -405,8 +405,15 @@ export default {
couponData:[], //选择产品的所有劵数据
chooseCouponObj: '', //选择产品选中的券
chooseCredential:'',//选中的产品的需要的证件类型
timer:null,//时间函数
}
},
onUnload() {
if(this.timer) {
clearTimeout(this.timer)
this.timer = null
}
},
onLoad(option) {
this.companyId = option.companyId || ''
this.groupId=option.groupId||''
......@@ -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,8 +600,17 @@ export default {
}
}
}
})
}else{
//请求失败,默认为下架状态
this.orderStatus=1
}
}).catch(err => {
//请求失败,默认为下架状态
this.orderStatus=1
this.timer = setTimeout(() => {
this.sortUpDown(item)
}, 2000)
})
},
//---获取班次票
getTimeStock(item) {
......
......@@ -470,8 +470,15 @@ export default {
couponData:'', //所有劵数据
chooseCouponObj: '', //默认选中最优价格优惠券
ableConpon: '', //没有可用优惠券时,达到一定条件可用,显示达到的条件
timer:null,//时间函数
}
},
onUnload() {
if(this.timer) {
clearTimeout(this.timer)
this.timer = null
}
},
onLoad(option) {
let times = new Date().Format('yyyy-MM-dd hh:mm:ss')
this.timeNumber = parseInt(this.$commonjs.changeTime(times)) //将当前时间转化为数字
......@@ -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,8 +705,17 @@ export default {
}
}
}
}
})
}else{
//请求失败,默认为下架状态
this.productIfo.status=1
}
}).catch(err => {
//请求失败,默认为下架状态
this.productIfo.status=1
this.timer = setTimeout(() => {
this.sortUpDown()
}, 2000)
})
},
//---获取班次票
getTimeStock() {
......
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