4a62ab76 by 杨炀

Merge commit 'f3a29a76' into dev

2 parents 00ea39d6 f3a29a76
...@@ -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));
......
...@@ -16,6 +16,7 @@ const http = axios.create({ ...@@ -16,6 +16,7 @@ const http = axios.create({
16 timeout, 16 timeout,
17 headers: { 17 headers: {
18 "Content-Type": "application/json", 18 "Content-Type": "application/json",
19 Language: 'zh-cn'
19 }, 20 },
20 }); 21 });
21 22
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!