ca382606 by yyx

1

1 parent a5ad2c35
...@@ -125,6 +125,8 @@ const detail = reactive({ ...@@ -125,6 +125,8 @@ 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 if (language.value) {
129 // 中文支付
128 immediatePay({ orderSn: detail.data.orderSn, payType: 1 }) 130 immediatePay({ orderSn: detail.data.orderSn, payType: 1 })
129 .then((res) => { 131 .then((res) => {
130 if (res.data.language == "zh-cn") { 132 if (res.data.language == "zh-cn") {
...@@ -136,11 +138,12 @@ const detail = reactive({ ...@@ -136,11 +138,12 @@ const detail = reactive({
136 }); 138 });
137 startCheckSuccessListener(detail.data.orderSn); 139 startCheckSuccessListener(detail.data.orderSn);
138 detail.showCodeDialog = true; 140 detail.showCodeDialog = true;
139 } else {
140 // TODO: 这里是PayPal支付
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!