ca382606 by yyx

1

1 parent a5ad2c35
...@@ -125,22 +125,25 @@ const detail = reactive({ ...@@ -125,22 +125,25 @@ const detail = reactive({
125 payment() { 125 payment() {
126 if (detail.pay_loading) return; 126 if (detail.pay_loading) return;
127 detail.pay_loading = true; 127 detail.pay_loading = true;
128 immediatePay({ orderSn: detail.data.orderSn, payType: 1 }) 128 if (language.value) {
129 .then((res) => { 129 // 中文支付
130 if (res.data.language == "zh-cn") { 130 immediatePay({ orderSn: detail.data.orderSn, payType: 1 })
131 detail.qrInfo = res.data; 131 .then((res) => {
132 qrcode.toDataURL(res.data.scanCodeUrl, (err, url) => { 132 if (res.data.language == "zh-cn") {
133 if (url) { 133 detail.qrInfo = res.data;
134 detail.qrCodeData = url; 134 qrcode.toDataURL(res.data.scanCodeUrl, (err, url) => {
135 } 135 if (url) {
136 }); 136 detail.qrCodeData = url;
137 startCheckSuccessListener(detail.data.orderSn); 137 }
138 detail.showCodeDialog = true; 138 });
139 } else { 139 startCheckSuccessListener(detail.data.orderSn);
140 // TODO: 这里是PayPal支付 140 detail.showCodeDialog = true;
141 } 141 }
142 }) 142 })
143 .finally(() => (detail.pay_loading = false)); 143 .finally(() => (detail.pay_loading = false));
144 } else {
145 // TODO: 这里是英文支付
146 }
144 }, 147 },
145 handleClose() { 148 handleClose() {
146 detail.showCodeDialog = false; 149 detail.showCodeDialog = false;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!