|
|
@@ -70,7 +70,6 @@ export default {
|
|
|
goPay:0, // 0: 未支付,1: 支付请求中/自动复查中,2: 支付失败或异常提示
|
|
|
remindText:'',
|
|
|
returnCode:'',
|
|
|
- authCode:'', // 存储付款码数字
|
|
|
cancelText:'确认要取消?',
|
|
|
isCancelDialogOpen:false,
|
|
|
isPaymentProcessing:false, // 标志位:防重复扫码
|
|
|
@@ -164,9 +163,8 @@ export default {
|
|
|
this.isPaymentProcessing = true
|
|
|
this.remindText = ''
|
|
|
this.returnCode = ''
|
|
|
- this.authCode = authCode // 记录支付码
|
|
|
this.clearPolling() // 每次开始扫码前,确保清除旧的定时器
|
|
|
-
|
|
|
+
|
|
|
codePay({id:this.orderId,authCode:authCode}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
if(res.data.returnStatus == 'SUCCESS'){
|
|
|
@@ -225,8 +223,8 @@ export default {
|
|
|
|
|
|
// 界面上展示当前自动复查的进度,提升收银员体验
|
|
|
that.remindText = `正在自动复查支付结果 (第 ${that.pollingCount}/4 次)...`
|
|
|
-
|
|
|
- codePayVerify({id:that.orderId,authCode:that.authCode}).then(res=>{
|
|
|
+
|
|
|
+ codePayVerify({id:that.orderId}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
if(res.data && res.data.returnStatus == 'SUCCESS'){
|
|
|
// 复查确认成功,停止轮询并显示成功界面
|