|
@@ -247,7 +247,7 @@
|
|
|
//添加车牌弹窗
|
|
|
ShowaddvehicleNo: false,
|
|
|
// 车位锁状态 1:支付 2:开始开锁 3:开锁中 4:开锁完成
|
|
|
- parkingLockStatus: 1,
|
|
|
+ parkingLockStatus: 0,
|
|
|
// 支付方式选择弹框
|
|
|
payWayPop: false,
|
|
|
// 订单编号
|
|
@@ -441,7 +441,8 @@
|
|
|
}).then(res => {
|
|
|
|
|
|
console.log(res)
|
|
|
- if (res.code === 200) {
|
|
|
+ if (res.code === 200 && res.data.id) {
|
|
|
+ this.parkingLockStatus = 1
|
|
|
// 获取页面完整url
|
|
|
const local = window.location.href
|
|
|
// 获取url后面的参数
|
|
@@ -461,6 +462,15 @@
|
|
|
clearInterval(this.timer1)
|
|
|
this.checkEqupment()
|
|
|
}
|
|
|
+ } else {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ title: res.msg || '订单无数据',
|
|
|
+ type: 'error',
|
|
|
+ });
|
|
|
+ this.show = false;
|
|
|
+ if (this.timer1) {
|
|
|
+ clearInterval(this.timer1)
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
this.show = false;
|
|
@@ -494,10 +504,10 @@
|
|
|
}
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
- this.$refs.uToast.show({
|
|
|
- title: '程序错误!订单编号:' + orderNo,
|
|
|
- type: 'error',
|
|
|
- });
|
|
|
+ // this.$refs.uToast.show({
|
|
|
+ // title: '程序错误!订单编号:' + orderNo,
|
|
|
+ // type: 'error',
|
|
|
+ // });
|
|
|
})
|
|
|
},
|
|
|
// 返回首页
|