From 8c4dd05b10fcaeb94c09613699aab923318a1c6d Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期日, 02 七月 2023 18:13:27 +0800
Subject: [PATCH] 称重逻辑简化,提高可读性

---
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
index 3ef21f0..78d101b 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -1,7 +1,7 @@
 <template>
 	<view class="bill-of-lading-details">
 		<view class="top-banner"
-			style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
+			:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/loadingbanner.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 		</view>
 		<view class="top-information">
 			<view class="cutomer-name"
@@ -21,8 +21,7 @@
 				<view class="basic">
 					<view class="coalName">{{ coalDetailsData.coalName||'' }}</view>
 					<view class="status-button"
-						style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/statusbutton.png') no-repeat;
-										background-size: cover;">
+						:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/statusbutton.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 						{{ coalStatus[coalDetailsData.statusWeigh] || '' }}
 					</view>
 				</view>
@@ -58,19 +57,19 @@
 					<view class="item-block">
 						<view class="item">
 							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
+								:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/skin.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 								鐨�</view>
 							<view class="num">{{ item.skin }}</view>
 						</view>
 						<view class="item">
 							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
+								:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/hair.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 								姣�</view>
 							<view class="num">{{ item.hair }}</view>
 						</view>
 						<view class="item">
 							<view class="concrete"
-								style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
+								:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/clean.png)`, backgroundSize: 'cover', backgroundRepeat: 'no-repeat' }">
 								鍑�</view>
 							<view class="num">{{ item.clean }}</view>
 						</view>
@@ -153,6 +152,7 @@
 </template>
 
 <script>
+	import { onlineurl } from '@/api/request.js'
 	import { webSocketUrl } from '@/api/request.js';
 	import { mapState, mapMutations } from 'vuex';
 	export default {
@@ -195,7 +195,7 @@
 					openId: null,
 					openName: ''
 				},
-				coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚'], // 鐘舵��
+				coalStatus: ['鏈О閲�', '绉伴噸涓�', '楠岃川涓�', '绉伴噸瀹屾垚', '楠岃川瀹屾垚'], // 鐘舵��
 				weighHouseCode: '',
 				// 鏀剧┖寮圭獥鎺у埗鍙橀噺
 				evacuationModalShow: false,
@@ -227,7 +227,8 @@
 				completeOutSaleShow: false,
 				overTmWaixiao: null,
 				// 鍒よ缃戠粶鐘舵�侊紝
-				normalCode: true
+				normalCode: true,
+				onlineurl,
 			};
 		},
 		onShow() {

--
Gitblit v1.9.1