32edc977 by 张猛

级位支付

1 parent a463bd31
...@@ -76,14 +76,14 @@ ...@@ -76,14 +76,14 @@
76 <view class="section-title">支付方式</view> 76 <view class="section-title">支付方式</view>
77 <view class="payment-methods"> 77 <view class="payment-methods">
78 <radio-group @change="onPayTypeChange"> 78 <radio-group @change="onPayTypeChange">
79 <label class="payment-item" :class="{ selected: payType === '1' }"> 79 <label :class="{ selected: payType === '0' }" class="payment-item">
80 <radio :checked="payType === '1'" value="1" /> 80 <radio :checked="payType === '0'" value="0"/>
81 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image> 81 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image>
82 <text class="payment-name ml10">民生付</text> 82 <text class="payment-name ml10">民生付</text>
83 <!-- <view v-if="payType === '1'" class="check-icon"></view> --> 83 <!-- <view v-if="payType === '1'" class="check-icon"></view> -->
84 </label> 84 </label>
85 <label class="payment-item" :class="{ selected: payType === '3' }"> 85 <label :class="{ selected: payType === '3' }" class="payment-item">
86 <radio :checked="payType === '3'" value="3" /> 86 <radio :checked="payType === '3'" value="3"/>
87 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image> 87 <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image>
88 <text class="payment-name ml10">对公转账</text> 88 <text class="payment-name ml10">对公转账</text>
89 <!-- <view v-if="payType === '3'" class="check-icon"></view> --> 89 <!-- <view v-if="payType === '3'" class="check-icon"></view> -->
...@@ -91,16 +91,16 @@ ...@@ -91,16 +91,16 @@
91 </radio-group> 91 </radio-group>
92 </view> 92 </view>
93 </view> 93 </view>
94 94
95 <!-- 对公转账表单 --> 95 <!-- 对公转账表单 -->
96 <view v-if="payType === '3'" class="info-card transfer-form"> 96 <view v-if="payType === '3'" class="info-card transfer-form">
97 <view class="form-item"> 97 <view class="form-item">
98 <text class="form-label">联系人</text> 98 <text class="form-label">联系人</text>
99 <input class="form-input" v-model="formData.contactPerson" placeholder="请输入联系人" /> 99 <input v-model="formData.contactPerson" class="form-input" placeholder="请输入联系人"/>
100 </view> 100 </view>
101 <view class="form-item"> 101 <view class="form-item">
102 <text class="form-label">联系方式</text> 102 <text class="form-label">联系方式</text>
103 <input class="form-input" v-model="formData.contactTel" type="number" placeholder="请输入联系方式" /> 103 <input v-model="formData.contactTel" class="form-input" placeholder="请输入联系方式" type="number"/>
104 </view> 104 </view>
105 </view> 105 </view>
106 </view> 106 </view>
...@@ -239,7 +239,7 @@ const handleSubmit = async () => { ...@@ -239,7 +239,7 @@ const handleSubmit = async () => {
239 if (!selectedAddress.value.id) { 239 if (!selectedAddress.value.id) {
240 return uni.showToast({title: '请先选择地址', icon: 'none'}); 240 return uni.showToast({title: '请先选择地址', icon: 'none'});
241 } 241 }
242 242
243 // 对公转账校验 243 // 对公转账校验
244 if (payType.value === '3') { 244 if (payType.value === '3') {
245 if (!formData.value.contactPerson) { 245 if (!formData.value.contactPerson) {
...@@ -253,7 +253,7 @@ const handleSubmit = async () => { ...@@ -253,7 +253,7 @@ const handleSubmit = async () => {
253 return uni.showToast({title: '请输入正确的手机号', icon: 'none'}); 253 return uni.showToast({title: '请输入正确的手机号', icon: 'none'});
254 } 254 }
255 } 255 }
256 256
257 uni.showModal({ 257 uni.showModal({
258 title: '提示', 258 title: '提示',
259 content: `确定提交订单吗?`, 259 content: `确定提交订单吗?`,
...@@ -271,7 +271,7 @@ const handleSubmit = async () => { ...@@ -271,7 +271,7 @@ const handleSubmit = async () => {
271 contactPerson: formData.value.contactPerson, 271 contactPerson: formData.value.contactPerson,
272 contactTel: formData.value.contactTel 272 contactTel: formData.value.contactTel
273 }) 273 })
274 274
275 // 对公转账 275 // 对公转账
276 if (commitRes.data.payFlag == 2) { 276 if (commitRes.data.payFlag == 2) {
277 uni.hideLoading(); 277 uni.hideLoading();
...@@ -280,7 +280,7 @@ const handleSubmit = async () => { ...@@ -280,7 +280,7 @@ const handleSubmit = async () => {
280 }); 280 });
281 return; 281 return;
282 } 282 }
283 283
284 // 民生付 284 // 民生付
285 if (commitRes.data.payResult && commitRes.data.payResult.encryptedData) { 285 if (commitRes.data.payResult && commitRes.data.payResult.encryptedData) {
286 const res = await minShengPay(commitRes.data.orderId, commitRes.data.payResult.encryptedData) 286 const res = await minShengPay(commitRes.data.orderId, commitRes.data.payResult.encryptedData)
...@@ -293,7 +293,7 @@ const handleSubmit = async () => { ...@@ -293,7 +293,7 @@ const handleSubmit = async () => {
293 }, 1500) 293 }, 1500)
294 } 294 }
295 } 295 }
296 296
297 } catch (e) { 297 } catch (e) {
298 uni.hideLoading(); 298 uni.hideLoading();
299 console.error('提交失败', e); 299 console.error('提交失败', e);
...@@ -492,7 +492,7 @@ const handleSubmit = async () => { ...@@ -492,7 +492,7 @@ const handleSubmit = async () => {
492 border-radius: 16rpx; 492 border-radius: 16rpx;
493 padding: 30rpx; 493 padding: 30rpx;
494 margin-bottom: 20rpx; 494 margin-bottom: 20rpx;
495 495
496 .section-title { 496 .section-title {
497 font-size: 32rpx; 497 font-size: 32rpx;
498 font-weight: 600; 498 font-weight: 600;
...@@ -500,7 +500,7 @@ const handleSubmit = async () => { ...@@ -500,7 +500,7 @@ const handleSubmit = async () => {
500 margin-bottom: 20rpx; 500 margin-bottom: 20rpx;
501 position: relative; 501 position: relative;
502 padding-left: 20rpx; 502 padding-left: 20rpx;
503 503
504 &::before { 504 &::before {
505 content: ''; 505 content: '';
506 position: absolute; 506 position: absolute;
...@@ -513,28 +513,28 @@ const handleSubmit = async () => { ...@@ -513,28 +513,28 @@ const handleSubmit = async () => {
513 border-radius: 3rpx; 513 border-radius: 3rpx;
514 } 514 }
515 } 515 }
516 516
517 .payment-methods { 517 .payment-methods {
518 background: #f8f9fa; 518 background: #f8f9fa;
519 border-radius: 12rpx; 519 border-radius: 12rpx;
520 padding: 20rpx; 520 padding: 20rpx;
521 521
522 .payment-item { 522 .payment-item {
523 display: flex; 523 display: flex;
524 align-items: center; 524 align-items: center;
525 padding: 16rpx; 525 padding: 16rpx;
526 border-radius: 12rpx; 526 border-radius: 12rpx;
527 border: 2rpx solid transparent; 527 border: 2rpx solid transparent;
528 528
529 &.selected { 529 &.selected {
530 border-color: #e4393c; 530 border-color: #e4393c;
531 background: #fff; 531 background: #fff;
532 532
533 .check-icon { 533 .check-icon {
534 display: flex; 534 display: flex;
535 } 535 }
536 } 536 }
537 537
538 // 覆盖原生 radio 样式 538 // 覆盖原生 radio 样式
539 ::v-deep radio .wx-radio-input, 539 ::v-deep radio .wx-radio-input,
540 ::v-deep radio .uni-radio-input { 540 ::v-deep radio .uni-radio-input {
...@@ -542,26 +542,26 @@ const handleSubmit = async () => { ...@@ -542,26 +542,26 @@ const handleSubmit = async () => {
542 height: 36rpx; 542 height: 36rpx;
543 border-color: #ccc !important; 543 border-color: #ccc !important;
544 } 544 }
545 545
546 ::v-deep radio .wx-radio-input.wx-radio-input-checked, 546 ::v-deep radio .wx-radio-input.wx-radio-input-checked,
547 ::v-deep radio .uni-radio-input-checked { 547 ::v-deep radio .uni-radio-input-checked {
548 border-color: #e4393c !important; 548 border-color: #e4393c !important;
549 background: #e4393c !important; 549 background: #e4393c !important;
550 } 550 }
551 551
552 .payment-icon { 552 .payment-icon {
553 width: 48rpx; 553 width: 48rpx;
554 height: 48rpx; 554 height: 48rpx;
555 margin-right: 16rpx; 555 margin-right: 16rpx;
556 } 556 }
557 557
558 .payment-name { 558 .payment-name {
559 flex: 1; 559 flex: 1;
560 font-size: 30rpx; 560 font-size: 30rpx;
561 color: #333; 561 color: #333;
562 font-weight: 500; 562 font-weight: 500;
563 } 563 }
564 564
565 .check-icon { 565 .check-icon {
566 width: 40rpx; 566 width: 40rpx;
567 height: 40rpx; 567 height: 40rpx;
...@@ -633,19 +633,19 @@ const handleSubmit = async () => { ...@@ -633,19 +633,19 @@ const handleSubmit = async () => {
633 align-items: center; 633 align-items: center;
634 padding: 20rpx 0; 634 padding: 20rpx 0;
635 border-bottom: 1rpx solid #f5f5f5; 635 border-bottom: 1rpx solid #f5f5f5;
636 636
637 &:last-child { 637 &:last-child {
638 border-bottom: none; 638 border-bottom: none;
639 } 639 }
640 } 640 }
641 641
642 .form-label { 642 .form-label {
643 font-size: 28rpx; 643 font-size: 28rpx;
644 color: #333; 644 color: #333;
645 width: 140rpx; 645 width: 140rpx;
646 flex-shrink: 0; 646 flex-shrink: 0;
647 } 647 }
648 648
649 .form-input { 649 .form-input {
650 flex: 1; 650 flex: 1;
651 font-size: 28rpx; 651 font-size: 28rpx;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!