民生付
Showing
4 changed files
with
71 additions
and
9 deletions
src/assets/images/query/min.png
0 → 100644
6.88 KB
| ... | @@ -295,10 +295,19 @@ | ... | @@ -295,10 +295,19 @@ |
| 295 | }}</span> | 295 | }}</span> |
| 296 | </el-col> | 296 | </el-col> |
| 297 | <el-col :lg="8" :md="8" :sm="12" :xs="24" class="text-right"> | 297 | <el-col :lg="8" :md="8" :sm="12" :xs="24" class="text-right"> |
| 298 | <span v-if="language == 0 " class="text-primary"> | 298 | <span v-if="form.paymentType"> |
| 299 | ¥ {{ form.price }} | 299 | {{ form.paymentType==3?'€':'¥' }}{{ form.paymentType==3?form.priceEn:form.price }} |
| 300 | </span> | 300 | </span> |
| 301 | <span v-else>€ {{ form.priceEn || 0 }}</span> | 301 | <span v-else> |
| 302 | {{ payType==3?'€':'¥' }}{{ payType==3?form.priceEn:form.price }} | ||
| 303 | </span> | ||
| 304 | <!-- <span v-else>--> | ||
| 305 | <!-- 1--> | ||
| 306 | <!-- </span>--> | ||
| 307 | <!-- <span v-if="language == 0 " class="text-primary">--> | ||
| 308 | <!-- ¥ {{ form.price }}--> | ||
| 309 | <!-- </span>--> | ||
| 310 | <!-- <span v-else>€ {{ form.priceEn || 0 }}</span>--> | ||
| 302 | </el-col> | 311 | </el-col> |
| 303 | </el-row> | 312 | </el-row> |
| 304 | <el-row style="width: 100%"> | 313 | <el-row style="width: 100%"> |
| ... | @@ -349,7 +358,8 @@ | ... | @@ -349,7 +358,8 @@ |
| 349 | {{ language == 0 ? '共计' : 'total' }}: | 358 | {{ language == 0 ? '共计' : 'total' }}: |
| 350 | {{ | 359 | {{ |
| 351 | form.paymentType==3||payType==3? '€' : '¥' | 360 | form.paymentType==3||payType==3? '€' : '¥' |
| 352 | }}{{ | 361 | }} |
| 362 | {{ | ||
| 353 | form.paymentType==3||payType==3? Number(totalFeeEn).toFixed(2) : Number(totalFee).toFixed(2) | 363 | form.paymentType==3||payType==3? Number(totalFeeEn).toFixed(2) : Number(totalFee).toFixed(2) |
| 354 | }} | 364 | }} |
| 355 | </el-col> | 365 | </el-col> |
| ... | @@ -449,6 +459,13 @@ | ... | @@ -449,6 +459,13 @@ |
| 449 | <!-- />--> | 459 | <!-- />--> |
| 450 | <!-- </svg>--> | 460 | <!-- </svg>--> |
| 451 | <!-- </el-radio>--> | 461 | <!-- </el-radio>--> |
| 462 | <el-radio border value="4"> | ||
| 463 | <div class="minLogo"> | ||
| 464 | <img src="@/assets/images/query/min.png" alt=""> | ||
| 465 | <span>{{ language==0?'民生付':'Minsheng Pay' }}</span> | ||
| 466 | </div> | ||
| 467 | |||
| 468 | </el-radio> | ||
| 452 | <el-radio v-if="language==1" border value="3"> | 469 | <el-radio v-if="language==1" border value="3"> |
| 453 | <!--paypal--> | 470 | <!--paypal--> |
| 454 | <svg | 471 | <svg |
| ... | @@ -489,7 +506,7 @@ | ... | @@ -489,7 +506,7 @@ |
| 489 | /> | 506 | /> |
| 490 | </svg> | 507 | </svg> |
| 491 | </el-radio> | 508 | </el-radio> |
| 492 | <el-radio v-if="language==0" border value="4">{{ language==0?'民生付':'Minsheng Pay' }}</el-radio> | 509 | |
| 493 | </el-radio-group> | 510 | </el-radio-group> |
| 494 | <div v-if="payType == '2'&&wePayCodeUrl"> | 511 | <div v-if="payType == '2'&&wePayCodeUrl"> |
| 495 | <div class="payImgbox flexCenter"> | 512 | <div class="payImgbox flexCenter"> |
| ... | @@ -715,6 +732,7 @@ function getData() { | ... | @@ -715,6 +732,7 @@ function getData() { |
| 715 | 732 | ||
| 716 | booking.getCarBilldetailbyId({ orderId: orderId.value }).then(res => { | 733 | booking.getCarBilldetailbyId({ orderId: orderId.value }).then(res => { |
| 717 | form.value = res.data | 734 | form.value = res.data |
| 735 | if (form.value.paymentType)payType.value = null | ||
| 718 | matchId.value = res.data.activeId | 736 | matchId.value = res.data.activeId |
| 719 | totalFee.value = res.data.total | 737 | totalFee.value = res.data.total |
| 720 | totalFeeEn.value = res.data.totalEn | 738 | totalFeeEn.value = res.data.totalEn |
| ... | @@ -740,6 +758,8 @@ function getData() { | ... | @@ -740,6 +758,8 @@ function getData() { |
| 740 | // totalFee.value = res.data.totalEn | 758 | // totalFee.value = res.data.totalEn |
| 741 | // } | 759 | // } |
| 742 | form.value = res.data | 760 | form.value = res.data |
| 761 | if (form.value.paymentType)payType.value = null | ||
| 762 | |||
| 743 | form.value.messageObj = JSON.parse(form.value.message) | 763 | form.value.messageObj = JSON.parse(form.value.message) |
| 744 | form.value.extJsonObj = JSON.parse(form.value.extJson) | 764 | form.value.extJsonObj = JSON.parse(form.value.extJson) |
| 745 | console.log(form.value) | 765 | console.log(form.value) |
| ... | @@ -758,6 +778,7 @@ function getData() { | ... | @@ -758,6 +778,7 @@ function getData() { |
| 758 | form.value.messageObj = JSON.parse(form.value.message) || {} | 778 | form.value.messageObj = JSON.parse(form.value.message) || {} |
| 759 | form.value.extJsonObj = JSON.parse(form.value.extJson) || {} | 779 | form.value.extJsonObj = JSON.parse(form.value.extJson) || {} |
| 760 | matchId.value = form.value.extJsonObj?.activeId | 780 | matchId.value = form.value.extJsonObj?.activeId |
| 781 | if (form.value.paymentType) payType.value = null | ||
| 761 | }).catch(err => { | 782 | }).catch(err => { |
| 762 | console.log(err) | 783 | console.log(err) |
| 763 | errorBox.value = true | 784 | errorBox.value = true |
| ... | @@ -793,6 +814,7 @@ function checkReceipt() { | ... | @@ -793,6 +814,7 @@ function checkReceipt() { |
| 793 | const getTravelOrderInfo = () => { | 814 | const getTravelOrderInfo = () => { |
| 794 | return booking.getScenicOrderInfo({ orderId: orderId.value }).then(res => { | 815 | return booking.getScenicOrderInfo({ orderId: orderId.value }).then(res => { |
| 795 | form.value = res.data | 816 | form.value = res.data |
| 817 | if (form.value.paymentType)payType.value = null | ||
| 796 | totalFeeEn.value = res.data.totalEn | 818 | totalFeeEn.value = res.data.totalEn |
| 797 | totalFee.value = res.data.total | 819 | totalFee.value = res.data.total |
| 798 | // totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn | 820 | // totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn |
| ... | @@ -810,6 +832,7 @@ const getTravelOrderInfo = () => { | ... | @@ -810,6 +832,7 @@ const getTravelOrderInfo = () => { |
| 810 | async function getTicketOrderInfoFN() { | 832 | async function getTicketOrderInfoFN() { |
| 811 | const res = await getTicketOrderInfo({ orderId: orderId.value }) | 833 | const res = await getTicketOrderInfo({ orderId: orderId.value }) |
| 812 | form.value = res.data | 834 | form.value = res.data |
| 835 | if (form.value.paymentType) payType.value = null | ||
| 813 | form.value.extJson = JSON.parse(form.value.extJson) | 836 | form.value.extJson = JSON.parse(form.value.extJson) |
| 814 | try { | 837 | try { |
| 815 | await getDetail(form.value.activeId) | 838 | await getDetail(form.value.activeId) |
| ... | @@ -939,6 +962,8 @@ function showLogin() { | ... | @@ -939,6 +962,8 @@ function showLogin() { |
| 939 | function MakeUpOrder() { | 962 | function MakeUpOrder() { |
| 940 | return booking.getMealOrderInfo({ orderId: orderId.value }).then(res => { | 963 | return booking.getMealOrderInfo({ orderId: orderId.value }).then(res => { |
| 941 | form.value = res.data | 964 | form.value = res.data |
| 965 | if (form.value.paymentType)payType.value = null | ||
| 966 | |||
| 942 | totalFeeEn.value = res.data.totalEn | 967 | totalFeeEn.value = res.data.totalEn |
| 943 | totalFee.value = res.data.total | 968 | totalFee.value = res.data.total |
| 944 | // totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn | 969 | // totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn |
| ... | @@ -975,6 +1000,7 @@ function ScenicInfo() { | ... | @@ -975,6 +1000,7 @@ function ScenicInfo() { |
| 975 | function photographyOrder() { | 1000 | function photographyOrder() { |
| 976 | return booking.getPhotoOrderInfo({ orderId: orderId.value }).then(res => { | 1001 | return booking.getPhotoOrderInfo({ orderId: orderId.value }).then(res => { |
| 977 | form.value = res.data | 1002 | form.value = res.data |
| 1003 | if (form.value.paymentType)payType.value = null | ||
| 978 | totalFeeEn.value = res.data.totalEn | 1004 | totalFeeEn.value = res.data.totalEn |
| 979 | totalFee.value = res.data.total | 1005 | totalFee.value = res.data.total |
| 980 | // totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn | 1006 | // totalFee.value = language.value == 0 ? form.value.total : form.value.totalEn |
| ... | @@ -1280,4 +1306,21 @@ const showSJ = async() => { | ... | @@ -1280,4 +1306,21 @@ const showSJ = async() => { |
| 1280 | margin: 5px 12px; | 1306 | margin: 5px 12px; |
| 1281 | } | 1307 | } |
| 1282 | } | 1308 | } |
| 1309 | |||
| 1310 | |||
| 1311 | .minLogo{ | ||
| 1312 | display: flex; | ||
| 1313 | justify-content: space-between; | ||
| 1314 | img{ | ||
| 1315 | width: 40px; | ||
| 1316 | height: 40px; | ||
| 1317 | } | ||
| 1318 | span{ | ||
| 1319 | font-size: 16px; | ||
| 1320 | font-weight: bold; | ||
| 1321 | position: relative; | ||
| 1322 | bottom: -11px; | ||
| 1323 | margin-left: 10px; | ||
| 1324 | } | ||
| 1325 | } | ||
| 1283 | </style> | 1326 | </style> | ... | ... |
| ... | @@ -375,7 +375,8 @@ async function paymentHandle() { | ... | @@ -375,7 +375,8 @@ async function paymentHandle() { |
| 375 | ticketType: TickForm2.value.ticketType, | 375 | ticketType: TickForm2.value.ticketType, |
| 376 | contacts: orderForm.value.contacts, | 376 | contacts: orderForm.value.contacts, |
| 377 | phone: orderForm.value.phone, | 377 | phone: orderForm.value.phone, |
| 378 | price: language.value == '0' ? TickForm2.value.price : TickForm2.value.priceEn, | 378 | price: TickForm2.value.price ?? 0, |
| 379 | priceEn: TickForm2.value.priceEn ?? 0, | ||
| 379 | orderCustomerList: orderCustomerList | 380 | orderCustomerList: orderCustomerList |
| 380 | }) | 381 | }) |
| 381 | if (res.code == 200 && res.data.orderId > 0) { | 382 | if (res.code == 200 && res.data.orderId > 0) { | ... | ... |
| ... | @@ -103,7 +103,8 @@ | ... | @@ -103,7 +103,8 @@ |
| 103 | {{ b.extJsonObj.atstName }}</p> | 103 | {{ b.extJsonObj.atstName }}</p> |
| 104 | <p v-for="(p,i) in b.extJsonObj?.orderCustomerList" :key="i"> | 104 | <p v-for="(p,i) in b.extJsonObj?.orderCustomerList" :key="i"> |
| 105 | <el-tag v-if="p.deskNo" class="mr10">{{ p.deskNo }}-{{ p.seatNo }}</el-tag> | 105 | <el-tag v-if="p.deskNo" class="mr10">{{ p.deskNo }}-{{ p.seatNo }}</el-tag> |
| 106 | {{ p.name }} - {{ p.paymentType == '3' ? '€' : '¥' }}{{ b.extJsonObj.price }} | 106 | {{ p.name }} |
| 107 | <!-- - {{ p.paymentType == '3' ? '€' : '¥' }}{{ b.extJsonObj.price }}--> | ||
| 107 | </p> | 108 | </p> |
| 108 | </div> | 109 | </div> |
| 109 | <div v-if="b.orderType == 6"> | 110 | <div v-if="b.orderType == 6"> |
| ... | @@ -127,8 +128,25 @@ | ... | @@ -127,8 +128,25 @@ |
| 127 | </div> | 128 | </div> |
| 128 | </el-col> | 129 | </el-col> |
| 129 | <el-col :lg="3" :md="6" :sm="6" :xs="6" class="text-center"> | 130 | <el-col :lg="3" :md="6" :sm="6" :xs="6" class="text-center"> |
| 130 | <span class="text-warning"> {{ language == 0 ? '¥' : '€' }} | 131 | <span class="text-warning"> |
| 131 | <span class="bigMoney">{{ language == 0 ? b.total : b.totalEn }}</span> | 132 | <span v-if="b.paymentType"> |
| 133 | {{ b.paymentType == 3 ? '€': '¥' }} | ||
| 134 | |||
| 135 | </span> | ||
| 136 | <span v-else> | ||
| 137 | {{ language == 1 ? '€': '¥' }} | ||
| 138 | </span> | ||
| 139 | |||
| 140 | <span class="bigMoney"> | ||
| 141 | <span v-if="b.paymentType"> | ||
| 142 | {{ b.paymentType == 3 ? b.totalEn: b.total }} | ||
| 143 | |||
| 144 | </span> | ||
| 145 | <span v-else> | ||
| 146 | {{ language == 1 ? b.totalEn: b.total }} | ||
| 147 | |||
| 148 | </span> | ||
| 149 | </span> | ||
| 132 | </span> | 150 | </span> |
| 133 | </el-col> | 151 | </el-col> |
| 134 | <el-col :lg="6" :md="16" :sm="16" :xs="16"> | 152 | <el-col :lg="6" :md="16" :sm="16" :xs="16"> | ... | ... |
-
Please register or sign in to post a comment