Commit c0c1d6cf27d6642f96b0cfee985f9ce6bb7ad3dc

Authored by lxf
1 parent 96060125

fix: 支付运费

iconfont/iconfont.css
@@ -370,3 +370,9 @@ @@ -370,3 +370,9 @@
370 content: "\e722"; 370 content: "\e722";
371 } 371 }
372 372
  373 +.icon-radio-no:before {
  374 + content: "\e723";
  375 +}
  376 +.icon-radio-chose:before {
  377 + content: "\e724";
  378 +}
iconfont/iconfont.ttf
No preview for this file type
1 import Vue from 'vue'; 1 import Vue from 'vue';
2 import App from './App'; 2 import App from './App';
3 -import '@/config/umtrack.js'; 3 +// import '@/config/umtrack.js';
4 import cache from '@/utils/cache'; 4 import cache from '@/utils/cache';
5 import { formatImagePath } from '@/utils/imagePath'; 5 import { formatImagePath } from '@/utils/imagePath';
6 6
pages/me/index.vue
@@ -45,7 +45,8 @@ @@ -45,7 +45,8 @@
45 </view> 45 </view>
46 <view class="page-my__list"> 46 <view class="page-my__list">
47 <u-cell-group> 47 <u-cell-group>
48 - <u-cell v-if="$permission('/settlement/paymentPlan')" label="支付计划" is-link url="/pages/payPlan/list"> </u-cell> 48 + <!-- <u-cell v-if="$permission('/settlement/paymentPlan')" icon="file-text" title="支付申请" is-link url="/pages/payPlan/list"> </u-cell>-->
  49 + <u-cell v-if="$permission('/settlement/paymentPlan')" icon="rmb" icon-style="color:#333" title-style="color:#333" title="支付计划" is-link url="/pages/payPlan/list"> </u-cell>
49 </u-cell-group> 50 </u-cell-group>
50 </view> 51 </view>
51 <view class="page-my__login"> 52 <view class="page-my__login">
pages/payPlan/card.vue
@@ -7,9 +7,8 @@ @@ -7,9 +7,8 @@
7 <view style="display: flex"> 7 <view style="display: flex">
8 <render-dict v-if="item.payStatus" class="status" :style="{ color: colorMap[item.payStatus] }" dict="ONLINE_FREIGHT_ORDER_PAY_STATUS" :value="item.payStatus"></render-dict> 8 <render-dict v-if="item.payStatus" class="status" :style="{ color: colorMap[item.payStatus] }" dict="ONLINE_FREIGHT_ORDER_PAY_STATUS" :value="item.payStatus"></render-dict>
9 <template v-if="choseMore"> 9 <template v-if="choseMore">
10 - <u-radio-group :value="choseIds.includes(item.id) ? item.id : ''">  
11 - <u-radio :name="item.id"></u-radio>  
12 - </u-radio-group> 10 + <zui-icon v-if="choseIds.includes(item.id)" name="radio-chose" size="18px" color="#1E7B6B"></zui-icon>
  11 + <zui-icon v-else name="radio-no" size="18px"></zui-icon>
13 <!-- <u-icon v-if="choseIds.includes(item.id)" name="checkmark-circle-fill" size="20" color="#1E7B6B"></u-icon>--> 12 <!-- <u-icon v-if="choseIds.includes(item.id)" name="checkmark-circle-fill" size="20" color="#1E7B6B"></u-icon>-->
14 </template> 13 </template>
15 </view> 14 </view>
pages/payPlan/list.vue
@@ -60,13 +60,14 @@ @@ -60,13 +60,14 @@
60 笔款项 60 笔款项
61 </view> 61 </view>
62 <view class="but-view"> 62 <view class="but-view">
  63 + <u-button type="info" size="small" @click="toCancelChose">取消</u-button>
63 <u-button type="primary" size="small" @click="toPayUrl">去支付</u-button> 64 <u-button type="primary" size="small" @click="toPayUrl">去支付</u-button>
64 </view> 65 </view>
65 </view> 66 </view>
66 <u-safe-bottom></u-safe-bottom> 67 <u-safe-bottom></u-safe-bottom>
67 </view> 68 </view>
68 </template> 69 </template>
69 - <u-popup :show="popShow" @close="popShow = false" closeable mode="center" :round="10"> 70 + <u-popup :show="popShow" @close="closePopShow" @click="closePopShow" mode="center" :round="10" :safeAreaInsetBottom="false">
70 <view class="popup"> 71 <view class="popup">
71 <view class="title">支付信息确认</view> 72 <view class="title">支付信息确认</view>
72 <view class="alert"><u-icon name="error-circle" size="12"> </u-icon>列表长按可以批量选择支付哦~ </view> 73 <view class="alert"><u-icon name="error-circle" size="12"> </u-icon>列表长按可以批量选择支付哦~ </view>
@@ -80,15 +81,15 @@ @@ -80,15 +81,15 @@
80 </view> 81 </view>
81 <view class="but"> 82 <view class="but">
82 <u-button @tap="popShow = false">取消</u-button> 83 <u-button @tap="popShow = false">取消</u-button>
83 - <u-button type="primary" @tap="(popShow = false), (pwdShow = true)">继续支付</u-button> 84 + <u-button type="primary" @tap="(pwdStr = ''), (popShow = false), (pwdShow = true)">继续支付</u-button>
84 </view> 85 </view>
85 </view> 86 </view>
86 </u-popup> 87 </u-popup>
87 - <u-popup :show="pwdShow" :closeable="false" mode="center" :round="10"> 88 + <u-popup :show="pwdShow" mode="center" :round="10" :safeAreaInsetBottom="false">
88 <view class="popup"> 89 <view class="popup">
89 <view class="title">输入密码</view> 90 <view class="title">输入密码</view>
90 <view class="row"> 91 <view class="row">
91 - <u-input v-model="pwdStr" type="password" input-align="center" placeholder="请输入支付密码"></u-input> 92 + <u-input v-model="pwdStr" type="password" input-align="center" border="bottom" placeholder="请输入支付密码"></u-input>
92 </view> 93 </view>
93 <view class="but"> 94 <view class="but">
94 <u-button @tap="(pwdShow = false), (popShow = true)">取消</u-button> 95 <u-button @tap="(pwdShow = false), (popShow = true)">取消</u-button>
@@ -271,6 +272,10 @@ export default { @@ -271,6 +272,10 @@ export default {
271 }, 272 },
272 }); 273 });
273 }, 274 },
  275 + toCancelChose() {
  276 + this.selection = [];
  277 + this.longClickFlag = false;
  278 + },
274 choseItemFun(id) { 279 choseItemFun(id) {
275 if (this.longClickFlag) { 280 if (this.longClickFlag) {
276 if (this.selection.includes(id)) { 281 if (this.selection.includes(id)) {
@@ -278,9 +283,6 @@ export default { @@ -278,9 +283,6 @@ export default {
278 } else { 283 } else {
279 this.selection.push(id); 284 this.selection.push(id);
280 } 285 }
281 - if (this.selection.length === 0) {  
282 - this.longClickFlag = false;  
283 - }  
284 } 286 }
285 }, 287 },
286 longClick(item) { 288 longClick(item) {
@@ -316,19 +318,28 @@ export default { @@ -316,19 +318,28 @@ export default {
316 uni.$u.api.paymentPlan 318 uni.$u.api.paymentPlan
317 .checkPayPassword({ payPassword: this.pwdStr }) 319 .checkPayPassword({ payPassword: this.pwdStr })
318 .then(res => { 320 .then(res => {
319 - uni.$u.api.paymentPlan.pay(this.selection).then(res => {  
320 - this.loading = false;  
321 - this.pwdStr = '';  
322 - uni.showToast({ title: '提交成功' });  
323 - this.search();  
324 - this.pwdShow = false;  
325 - this.popShow = false;  
326 - }); 321 + uni.$u.api.paymentPlan
  322 + .pay(this.selection)
  323 + .then(res => {
  324 + this.loading = false;
  325 + this.pwdStr = '';
  326 + uni.showToast({ title: '提交成功' });
  327 + this.onSearch();
  328 + this.pwdShow = false;
  329 + this.popShow = false;
  330 + })
  331 + .catch(() => {
  332 + this.loading = false;
  333 + });
327 }) 334 })
328 .catch(() => { 335 .catch(() => {
329 this.loading = false; 336 this.loading = false;
330 }); 337 });
331 }, 338 },
  339 + closePopShow() {
  340 + console.info('close');
  341 + this.popShow = false;
  342 + },
332 toPayUrl() { 343 toPayUrl() {
333 uni.showLoading({ title: '加载中' }); 344 uni.showLoading({ title: '加载中' });
334 let selection = this.selection; 345 let selection = this.selection;
@@ -481,7 +492,9 @@ export default { @@ -481,7 +492,9 @@ export default {
481 .popup { 492 .popup {
482 padding-left: $padding-md; 493 padding-left: $padding-md;
483 padding-right: $padding-md; 494 padding-right: $padding-md;
  495 + padding-bottom: $padding-lg;
484 width: 70vw; 496 width: 70vw;
  497 + z-index: 100;
485 .title { 498 .title {
486 padding-top: $padding-xs; 499 padding-top: $padding-xs;
487 padding-bottom: $padding-xs; 500 padding-bottom: $padding-xs;
@@ -528,7 +541,9 @@ export default { @@ -528,7 +541,9 @@ export default {
528 justify-content: space-between; 541 justify-content: space-between;
529 padding: 10px; 542 padding: 10px;
530 .but-view { 543 .but-view {
531 - max-width: 100px; 544 + display: flex;
  545 + gap: 10px;
  546 + max-width: 210px;
532 } 547 }
533 } 548 }
534 } 549 }
pages/payPlan/paySubmit.vue
@@ -49,13 +49,13 @@ @@ -49,13 +49,13 @@
49 </view> 49 </view>
50 </template> 50 </template>
51 <template #footer> 51 <template #footer>
52 - <u-button :loading="loading" type="primary" @tap="pwdShow = true">继续支付</u-button> 52 + <u-button :loading="loading" type="primary" @tap="(pwdStr = ''), (pwdShow = true)">继续支付</u-button>
53 </template> 53 </template>
54 - <u-popup :show="pwdShow" :closeable="false" mode="center" :round="10"> 54 + <u-popup :show="pwdShow" :closeable="false" mode="center" :round="10" :safeAreaInsetBottom="false">
55 <view class="popup"> 55 <view class="popup">
56 <view class="title">输入密码</view> 56 <view class="title">输入密码</view>
57 <view class="row"> 57 <view class="row">
58 - <u-input v-model="pwdStr" type="password" input-align="center" placeholder="请输入支付密码"></u-input> 58 + <u-input v-model="pwdStr" type="password" input-align="center" border="bottom" placeholder="请输入支付密码"></u-input>
59 </view> 59 </view>
60 <view class="but"> 60 <view class="but">
61 <u-button @tap="pwdShow = false">取消</u-button> 61 <u-button @tap="pwdShow = false">取消</u-button>
@@ -147,7 +147,7 @@ export default { @@ -147,7 +147,7 @@ export default {
147 margin: 10px; 147 margin: 10px;
148 display: flex; 148 display: flex;
149 .label { 149 .label {
150 - width: 140rpx; 150 + width: 180rpx;
151 } 151 }
152 } 152 }
153 } 153 }
@@ -202,6 +202,7 @@ export default { @@ -202,6 +202,7 @@ export default {
202 .popup { 202 .popup {
203 padding-left: $padding-md; 203 padding-left: $padding-md;
204 padding-right: $padding-md; 204 padding-right: $padding-md;
  205 + padding-bottom: $padding-lg;
205 width: 70vw; 206 width: 70vw;
206 .title { 207 .title {
207 padding-top: $padding-xs; 208 padding-top: $padding-xs;