Commit 884403e9 authored by liudong1993's avatar liudong1993

机票

parent 65250f4f
......@@ -143,6 +143,7 @@ export default {
PayOrder:"",
Pay_timer:"",
CodeVialdTime:0,
};
},
created() {
......@@ -190,6 +191,12 @@ export default {
this.codeInfo=res.data.data;
console.log("codeInfo",this.codeInfo)
this.code_yxq=moment(this.codeInfo.ExpireDate).format('x')-moment(this.codeInfo.NowDate).format('x');
console.log((this.code_yxq/1000));
console.log(this.CodeVialdTime);
if((this.code_yxq/1000)>this.CodeVialdTime){
this.CodeVialdTime=(this.code_yxq/1000);
}
this.PayOrder=this.codeInfo.OrderID;
clearInterval(this.Pay_timer);
this.Time5();
......@@ -203,18 +210,20 @@ export default {
this.zfbpay_imgcode = true;
}
// 获取支付状态
this.apiJavaPost(
"/api/dmc/airticket/SetB2BAirtickOrderPayStatus",
{ AirOrderId: this.AirOrderId },
res => {
if (res.data.resultCode == 1) {
// if(res.data.data.IsUpdateAirOrderPayStatus==1){
// // 获取支付状态
// this.apiJavaPost(
// "/api/dmc/airticket/SetB2BAirtickOrderPayStatus",
// { AirOrderId: this.AirOrderId },
// res => {
// if (res.data.resultCode == 1) {
}else{
this.$message.error(res.data.message)
}
},
null);
// }else{
// this.$message.error(res.data.message)
// }
// },
// null);
// }
}
},
......@@ -224,15 +233,15 @@ export default {
Time15() {
clearInterval(this.timer);
let numall =parseInt(this.Commoditydetails.timeMillisecond / 1000);
this.CodeVialdTime =parseInt(this.Commoditydetails.timeMillisecond / 1000);
this.timer = setInterval(() => {
numall--;
if (numall <= 0) {
this.CodeVialdTime--;
if (this.CodeVialdTime <= 0) {
clearInterval(this.timer);
this.order_exit='2';
this.order_exit_info="订单支付超时,请重新下单!"
}
this.time_15 = this.s_to_hs(numall);
this.time_15 = this.s_to_hs(this.CodeVialdTime);
}, 1000);
},
......@@ -253,7 +262,7 @@ export default {
},
err => {}
);
}, 1000);
}, 10000);
},
......
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