Merge commit 'f3a29a76' into dev
Showing
2 changed files
with
4 additions
and
2 deletions
| ... | @@ -55,6 +55,7 @@ const props = defineProps({ | ... | @@ -55,6 +55,7 @@ const props = defineProps({ |
| 55 | 55 | ||
| 56 | let timer = null; | 56 | let timer = null; |
| 57 | const startCheckSuccessListener = (orderSn, actId) => { | 57 | const startCheckSuccessListener = (orderSn, actId) => { |
| 58 | console.log(123); | ||
| 58 | timer = setInterval(() => { | 59 | timer = setInterval(() => { |
| 59 | checkPaySuccess({ orderSn }).then((res) => { | 60 | checkPaySuccess({ orderSn }).then((res) => { |
| 60 | if (res.data) { | 61 | if (res.data) { |
| ... | @@ -125,7 +126,7 @@ const detail = reactive({ | ... | @@ -125,7 +126,7 @@ const detail = reactive({ |
| 125 | payment() { | 126 | payment() { |
| 126 | if (detail.pay_loading) return; | 127 | if (detail.pay_loading) return; |
| 127 | detail.pay_loading = true; | 128 | detail.pay_loading = true; |
| 128 | if (language.value) { | 129 | if (language.value == 0) { |
| 129 | // 中文支付 | 130 | // 中文支付 |
| 130 | immediatePay({ orderSn: detail.data.orderSn, payType: 1 }) | 131 | immediatePay({ orderSn: detail.data.orderSn, payType: 1 }) |
| 131 | .then((res) => { | 132 | .then((res) => { |
| ... | @@ -136,8 +137,8 @@ const detail = reactive({ | ... | @@ -136,8 +137,8 @@ const detail = reactive({ |
| 136 | detail.qrCodeData = url; | 137 | detail.qrCodeData = url; |
| 137 | } | 138 | } |
| 138 | }); | 139 | }); |
| 139 | startCheckSuccessListener(detail.data.orderSn); | ||
| 140 | detail.showCodeDialog = true; | 140 | detail.showCodeDialog = true; |
| 141 | startCheckSuccessListener(detail.data.orderSn); | ||
| 141 | } | 142 | } |
| 142 | }) | 143 | }) |
| 143 | .finally(() => (detail.pay_loading = false)); | 144 | .finally(() => (detail.pay_loading = false)); | ... | ... |
-
Please register or sign in to post a comment