From 0becab45282781f281ad5aa04202b83039ab275e Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期五, 14 四月 2023 17:42:08 +0800 Subject: [PATCH] 增加发运统计页面,修改websocket,增加消息推送 --- pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue | 29 +++++++++++++++++++---------- 1 files changed, 19 insertions(+), 10 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue b/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue index 286b841..e0fdead 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue @@ -1,15 +1,16 @@ <template> <view class="coal-pick-up-bill"> - <view class="driver" style="background:url(../../../../../static/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;"> + <view class="driver" style="background:url(https://mx.jzeg.cn:9095/appimg/image/coalBackgroud/coal-background.png) no-repeat;background-size:100% 100%;"> <view class="driver-coalOne">鐢靛瓙鎻愮叅鍗�</view> <view class="driver-coalTwo"> - <view class="">{{ coalData.deptName || '鏆傛棤鎵�灞炵熆' }}</view> - <view class="">{{ coalData.coalName || '鏆傛棤鐓ょ' }}</view> - <view class="">{{ coalData.carNo || '鏆傛棤杞︾墝' }}</view> + <view>{{ coalData.code || '鏆傛棤璁㈠崟缂栧彿' }}</view> + <view class="bigFont">{{ coalData.deptName || '鏆傛棤鎵�灞炵熆' }}</view> + <view class="bigFont">{{ coalData.coalName || '鏆傛棤鐓ょ' }}</view> + <view class="bigFont">{{ coalData.carNo || '鏆傛棤杞︾墝' }}</view> </view> <view class="driver-coalThree"> - <view class="">{{ coalData.customerName || '鏆傛棤鍗曚綅' }}</view> - <view class="">{{ coalData.yuYueTime || '鏆傛棤鏃堕棿' }}</view> + <view>{{ coalData.customerName || '鏆傛棤鍗曚綅' }}</view> + <view>{{ coalData.yuYueTime ? coalData.yuYueTime.slice(0, 10) + ' ' + coalData.yuYueTime.slice(11, 22) : '鏆傛棤鏃堕棿' }}</view> </view> <view class="driver-coalFour"><image src="@/static/logo.gif" mode=""></image></view> </view> @@ -43,6 +44,8 @@ console.log('鑾峰彇鎻愮叅鍗曡鎯�', res); if (res.code == 0) { this.coalData = res.data[0]; + } else { + this.$u.toast('鍔犺浇澶辫触'); } }); } @@ -81,13 +84,19 @@ color: #2e363f; view:nth-child(2) { margin-top: vww(15); + font-size: 40px; } view:nth-child(3) { margin-top: vww(15); + font-size: 40px; + } + view:nth-child(4) { + margin-top: vww(15); + font-size: 40px; } } &-coalThree { - margin-top: vww(76); + margin-top: vww(46); font-size: vww(18); font-family: Source Han Sans CN, Source Han Sans CN-Bold; font-weight: 700; @@ -98,10 +107,10 @@ } } &-coalFour { - margin: vww(68) 0 0 45.5%; + margin: vww(59) 0 0 43%; image { - width: vww(35); - height: vww(35); + width: vww(52); + height: vww(52); } } } -- Gitblit v1.9.1