feat(pay): 注册单会员查询报错问题处理
This commit is contained in:
parent
4a27790023
commit
da0daecd7a
|
@ -709,7 +709,8 @@ import {
|
||||||
REPURCHASE_AREA,
|
REPURCHASE_AREA,
|
||||||
REISSUE_AREA,
|
REISSUE_AREA,
|
||||||
} from '@/util/specialAreaMap'
|
} from '@/util/specialAreaMap'
|
||||||
var payStatus
|
let payStatus
|
||||||
|
let registerFlag = null
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
successDialog,
|
successDialog,
|
||||||
|
@ -784,6 +785,10 @@ export default {
|
||||||
this.isQuickSelected = false
|
this.isQuickSelected = false
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
onUnload() {
|
||||||
|
clearInterval(payStatus)
|
||||||
|
clearInterval(this?.clockTime)
|
||||||
|
},
|
||||||
async onLoad(options) {
|
async onLoad(options) {
|
||||||
this.paramsPost = JSON.parse(options.paramsPost)
|
this.paramsPost = JSON.parse(options.paramsPost)
|
||||||
// 获取支付配置
|
// 获取支付配置
|
||||||
|
@ -1461,18 +1466,17 @@ export default {
|
||||||
if (that.sucPay == 1) {
|
if (that.sucPay == 1) {
|
||||||
// 清除定时器
|
// 清除定时器
|
||||||
clearInterval(payStatus)
|
clearInterval(payStatus)
|
||||||
if (
|
|
||||||
[REGIEST_AREA.id, UPGRADE_AREA.id].includes(
|
|
||||||
Number(this.specialArea)
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
api.registerInfo(this.orderCode).then(res => {
|
|
||||||
this.$refs.successDialog.showSuccess(res.data)
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
this.wxPopup = false
|
this.wxPopup = false
|
||||||
this.aliQrCodeVisible = false
|
this.aliQrCodeVisible = false
|
||||||
this.showSucce = true
|
this.showSucce = true
|
||||||
|
if ([REGIEST_AREA.id].includes(Number(this.specialArea))) {
|
||||||
|
registerFlag = setTimeout(() => {
|
||||||
|
api.registerInfo(this.orderCode).then(res => {
|
||||||
|
if (res.data) {
|
||||||
|
this?.$refs?.successDialog?.showSuccess(res.data)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, 3000)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
api.payStatus(data).then(res => {
|
api.payStatus(data).then(res => {
|
||||||
|
|
Loading…
Reference in New Issue