1
Showing
2 changed files
with
25 additions
and
21 deletions
| ... | @@ -70,26 +70,28 @@ const payment = reactive({ | ... | @@ -70,26 +70,28 @@ const payment = reactive({ |
| 70 | "Please enter the contact phone number." | 70 | "Please enter the contact phone number." |
| 71 | ), | 71 | ), |
| 72 | }); | 72 | }); |
| 73 | payOrder({ | 73 | if (language.value == 0) { |
| 74 | contactPhone: payment.form.phone, | 74 | payOrder({ |
| 75 | customerIds: payment.form.viewers, | 75 | contactPhone: payment.form.phone, |
| 76 | orderToken: order.data?.orderToken, | 76 | customerIds: payment.form.viewers, |
| 77 | payType: 1, | 77 | orderToken: order.data?.orderToken, |
| 78 | paymentAmount: order.data?.paymentAmount, | 78 | payType: 1, |
| 79 | }).then((res) => { | 79 | paymentAmount: order.data?.paymentAmount, |
| 80 | if (res.data.language == "zh-cn") { | 80 | }).then((res) => { |
| 81 | payment.qrInfo = res.data; | 81 | if (res.data.language == "zh-cn") { |
| 82 | qrcode.toDataURL(res.data.scanCodeUrl, (err, url) => { | 82 | payment.qrInfo = res.data; |
| 83 | if (url) { | 83 | qrcode.toDataURL(res.data.scanCodeUrl, (err, url) => { |
| 84 | payment.qrCodeData = url; | 84 | if (url) { |
| 85 | } | 85 | payment.qrCodeData = url; |
| 86 | }); | 86 | } |
| 87 | payment.showCodeDialog = true; | 87 | }); |
| 88 | startCheckSuccessListener(res.data.orderSn, props.activityId); | 88 | payment.showCodeDialog = true; |
| 89 | } else { | 89 | startCheckSuccessListener(res.data.orderSn, props.activityId); |
| 90 | // TODO: 这里是PayPal支付 | 90 | } |
| 91 | } | 91 | }); |
| 92 | }); | 92 | } else { |
| 93 | // 这里是英文环境支付 | ||
| 94 | } | ||
| 93 | }, | 95 | }, |
| 94 | handleCloce() { | 96 | handleCloce() { |
| 95 | payment.showCodeDialog = false; | 97 | payment.showCodeDialog = false; | ... | ... |
| ... | @@ -313,7 +313,9 @@ price.fetchData(); | ... | @@ -313,7 +313,9 @@ price.fetchData(); |
| 313 | <div v-for="(it, index) in selectedSeats" class="seat_item"> | 313 | <div v-for="(it, index) in selectedSeats" class="seat_item"> |
| 314 | <img class="seat_icon" :src="it.selectIcon" /> | 314 | <img class="seat_icon" :src="it.selectIcon" /> |
| 315 | <span class="num" | 315 | <span class="num" |
| 316 | ><span v-if="it.area">{{ it.area }}{{ languageFormat(language, "区", "Zones") }}</span> | 316 | ><span v-if="it.area" |
| 317 | >{{ it.area }}{{ languageFormat(language, "区", "Zones") }}</span | ||
| 318 | > | ||
| 317 | {{ it.pai }}{{ languageFormat(language, "排", "Row") }} {{ it.no }} | 319 | {{ it.pai }}{{ languageFormat(language, "排", "Row") }} {{ it.no }} |
| 318 | {{ languageFormat(language, "座", "Seat") }}</span | 320 | {{ languageFormat(language, "座", "Seat") }}</span |
| 319 | > | 321 | > | ... | ... |
-
Please register or sign in to post a comment