8f109315 by lttnew

订单

1 parent a3ab5d87
...@@ -17,12 +17,12 @@ ...@@ -17,12 +17,12 @@
17 <view class="yearRow"> 17 <view class="yearRow">
18 <view class="label">缴费年限</view> 18 <view class="label">缴费年限</view>
19 <view class="control"> 19 <view class="control">
20 <image v-if="form.renewYear > 1" :src="config.loginImage_api + '/fs/static/dd_02.png'" class="icon" 20 <image v-if="form.renewYear > 1 && !payForm.id" :src="config.loginImage_api + '/fs/static/dd_02.png'" class="icon"
21 mode="widthFix" 21 mode="widthFix"
22 @click="minusYear"></image> 22 @click="minusYear"></image>
23 <image v-else :src="config.loginImage_api + '/fs/static/dd_02_g.png'" class="icon" mode="widthFix"></image> 23 <image v-else :src="config.loginImage_api + '/fs/static/dd_02_g.png'" class="icon" mode="widthFix"></image>
24 <text class="num">{{ form.renewYear }}</text> 24 <text class="num">{{ form.renewYear }}</text>
25 <image v-if="form.renewYear < 5" :src="config.loginImage_api + '/fs/static/btn_03.png'" class="icon" 25 <image v-if="form.renewYear < 5 && !payForm.id" :src="config.loginImage_api + '/fs/static/btn_03.png'" class="icon"
26 mode="widthFix" 26 mode="widthFix"
27 @click="plusYear"></image> 27 @click="plusYear"></image>
28 <image v-else :src="config.loginImage_api + '/fs/static/btn_03_g.png'" class="icon" mode="widthFix"></image> 28 <image v-else :src="config.loginImage_api + '/fs/static/btn_03_g.png'" class="icon" mode="widthFix"></image>
......
...@@ -79,8 +79,16 @@ ...@@ -79,8 +79,16 @@
79 <view class="divider"></view> 79 <view class="divider"></view>
80 <view class="single-info"> 80 <view class="single-info">
81 <view class="label">缴费方式</view> 81 <view class="label">缴费方式</view>
82 <view class="value " style="color:blue" @click="getPayWay(item)" v-if="item.ziZhangBu">对公转账</view> 82 <view class="value" :class="{ 'b2b-text-disabled': item.payType == '3' && item.payStatus == '2' }">
83 <view class="value" v-else>民生付</view> 83 {{ item.payType == '3' ? '对公转账' : '民生付' }}
84 </view>
85 <button
86 v-if="item.payType == '3' && item.payStatus != '2'"
87 class="b2b-btn"
88 @click.stop="getPayWay(item)"
89 >
90 查看
91 </button>
84 </view> 92 </view>
85 <view class="divider"></view> 93 <view class="divider"></view>
86 <view class="single-info"> 94 <view class="single-info">
...@@ -634,6 +642,25 @@ const goToDetail = (item) => { ...@@ -634,6 +642,25 @@ const goToDetail = (item) => {
634 font-size: 26rpx; 642 font-size: 26rpx;
635 } 643 }
636 644
645 // 对公转账按钮禁用样式
646 .b2b-btn {
647 background: transparent;
648 border: none;
649 padding: 0;
650 font-size: 24rpx;
651 color: #1890ff;
652 line-height: 1;
653 margin-left: 8rpx;
654
655 &::after {
656 border: none;
657 }
658 }
659
660 .b2b-text-disabled {
661 color: #bbb;
662 }
663
637 // 弹窗遮罩层 664 // 弹窗遮罩层
638 .popup-mask { 665 .popup-mask {
639 position: fixed; 666 position: fixed;
......
...@@ -306,17 +306,32 @@ function formatDate(value) { ...@@ -306,17 +306,32 @@ function formatDate(value) {
306 return dateText || '——' 306 return dateText || '——'
307 } 307 }
308 308
309 function commitFN(row) { 309 async function commitFN(row) {
310 if (String(row.auditStatus) !== '0') { 310 if (String(row.auditStatus) === '0') {
311 openModal('是否确认去支付', () => { 311 try {
312 uni.showLoading({ title: '校验中...', mask: true })
313 const res = await api.getNewCountByRangeId(row.rangId)
314 const countData = res?.data || {}
315 if (Number(countData.all || 0) <= 0) {
316 uni.showToast({ title: '请添加缴费学员', icon: 'none' })
317 return
318 }
312 uni.navigateTo({ 319 uni.navigateTo({
313 url: buildPayOrderUrl(row) 320 url: buildPayOrderUrl(row)
314 }) 321 })
315 }) 322 return
316 return 323 } catch (e) {
324 uni.showToast({ title: '校验失败,请稍后重试', icon: 'none' })
325 return
326 } finally {
327 uni.hideLoading()
328 }
317 } 329 }
318 uni.navigateTo({ 330
319 url: buildPayOrderUrl(row) 331 openModal('是否确认去支付', () => {
332 uni.navigateTo({
333 url: buildPayOrderUrl(row)
334 })
320 }) 335 })
321 } 336 }
322 337
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!