From 37a0b120e66bcda386b0a8c256ca0fe9f09b29cb Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期四, 29 六月 2023 18:16:26 +0800 Subject: [PATCH] 司机首页添加状态,细节修改 --- pages/customer-page/customer-index/customer-index.vue | 49 ++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 38 insertions(+), 11 deletions(-) diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue index d4837a0..37f6ad4 100644 --- a/pages/customer-page/customer-index/customer-index.vue +++ b/pages/customer-page/customer-index/customer-index.vue @@ -22,10 +22,10 @@ <view class="dispatch-receive"> <view class="dispatch">{{ item.filedName||'' }}</view> </view> - <!-- <view class="point-number"> + <view class="point-number"> <text class="residue">{{ item.cars2||'' }}</text> <text>/{{ item.carNum ||''}}</text> - </view> --> + </view> </view> <view class="second-line"> <view class="coal-name"> @@ -38,18 +38,33 @@ <view class="third-line"> <view class="time-icon"> <view + style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/carNO.png') no-repeat;background-size: cover"> + </view> + </view> + <view class="car-num">{{ item.carNos||''}}</view> + </view> + <view class="third-line"> + <view class="time-icon"> + <view style="width: 24rpx;height: 24rpx;li ne-height: 24rpx;background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clock.png') no-repeat;background-size: cover"> </view> </view> <view class="send-date">{{ item.sendDate }}</view> </view> <view class="fourth-line"> - <!-- <view class="receive" - @click.stop="receiveClick(item)"> - <view class="button-image">楠岃川</view> - </view> --> + <view class="receive" + @click.stop="receiveClick(item)" + v-if="item.orderType!=='澶栬喘'"> + <view class="button-image">棰嗗彇</view> + </view> <view class="forward" - @click.stop="forwardClick(index)"> + @click.stop="forwardClick(item)" + v-if="item.orderType!=='澶栬喘'"> + <view class="button-image">杞彂</view> + </view> + <view class="forward" + @click.stop="validateClick(index)" + v-if='roleType===4'> <view class="button-image">楠岃川</view> </view> </view> @@ -322,10 +337,16 @@ }); }, // 杞彂 - forwardClick(index) { + forwardClick(obj) { + if (obj.cars2 == 0) return this.$u.toast('璇峰厛棰嗗彇鍚庡啀杞彂'); uni - .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?index=${index}` }); - } + .navigateTo({ url: `/pages/public-page/forward/forward?orderPlanId=${obj.id}&carNumSurplus1=${obj.carNumSurplus1}&carNum=${obj.carNum}&cars2=${obj.cars2}` }); + }, + // 楠岃川 + validateClick(index) { + uni + .navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?index=${index}` }); + }, } }; </script> @@ -551,7 +572,7 @@ } .third-line { - width: 40%; + width: 80%; height: vww(30); margin-left: vww(15); display: flex; @@ -567,6 +588,12 @@ font-weight: 300; color: #515151; } + + .car-num { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } } .fourth-line { -- Gitblit v1.9.1