4a62ab76 by 杨炀

Merge commit 'f3a29a76' into dev

2 parents 00ea39d6 f3a29a76
......@@ -55,6 +55,7 @@ const props = defineProps({
let timer = null;
const startCheckSuccessListener = (orderSn, actId) => {
console.log(123);
timer = setInterval(() => {
checkPaySuccess({ orderSn }).then((res) => {
if (res.data) {
......@@ -125,7 +126,7 @@ const detail = reactive({
payment() {
if (detail.pay_loading) return;
detail.pay_loading = true;
if (language.value) {
if (language.value == 0) {
// 中文支付
immediatePay({ orderSn: detail.data.orderSn, payType: 1 })
.then((res) => {
......@@ -136,8 +137,8 @@ const detail = reactive({
detail.qrCodeData = url;
}
});
startCheckSuccessListener(detail.data.orderSn);
detail.showCodeDialog = true;
startCheckSuccessListener(detail.data.orderSn);
}
})
.finally(() => (detail.pay_loading = false));
......
......@@ -16,6 +16,7 @@ const http = axios.create({
timeout,
headers: {
"Content-Type": "application/json",
Language: 'zh-cn'
},
});
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!