From af436aa050f76584cd5cb88e413e45cd08c15d50 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 14:14:04 +0800
Subject: [PATCH] 修改部分错误,增加新功能

---
 pages/public-page/forward/forward.vue                                                         |   19 ++++++---
 pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue       |   11 ++++-
 pages/driver-page/drvier-my/drvier-my.vue                                                     |    2 
 pages/public-page/mapRoute/mapRoute.vue                                                       |   20 ++++++++--
 pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill.vue |    4 +-
 pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue              |    3 +
 pages/customer-page/customer-my/customer-my.vue                                               |   18 +--------
 pages/driver-page/driver-index/driver-index.vue                                               |   38 ++++++++++++++++---
 8 files changed, 77 insertions(+), 38 deletions(-)

diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index af45c40..5867f1f 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -13,14 +13,7 @@
 						<view class="huodai-list">
 							<u-swipe-action>
 								<u-cell-group :border="false">
-									<u-swipe-action-item
-										:options="options1"
-										v-for="(item, index) in huoDaiData"
-										:index="item.userId"
-										:name="item.userId"
-										:key="index"
-										@click="deleteHuoDaiClick"
-									>
+									<u-swipe-action-item :options="options1" v-for="(item, index) in huoDaiData" :key="item.userId" :name="item.userId" @click="deleteHuoDaiClick">
 										<u-cell :title="item.name" value="璇︽儏" @click="toFreightForwarderDetails(item.userId)">
 											<u-icon name="arrow-right" color="#999999" size="30" slot="right-icon"></u-icon>
 										</u-cell>
@@ -42,14 +35,7 @@
 						<view class="fleet-list">
 							<u-swipe-action>
 								<u-cell-group :border="false">
-									<u-swipe-action-item
-										:options="options1"
-										v-for="(item, index) in fleetData"
-										:index="item.id"
-										:name="item.id"
-										:key="index"
-										@click="deleteFleetClick"
-									>
+									<u-swipe-action-item :options="options1" v-for="(item, index) in fleetData" :key="item.id" :name="item.id" @click="deleteFleetClick">
 										<u-cell :title="item.name" :value="item.userSijisum + '杈�'" @click="tofleetDetails(item.id)">
 											<u-icon name="arrow-right" color="#999999" size="30" slot="right-icon"></u-icon>
 										</u-cell>
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 78cd944..d8006c0 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
@@ -150,6 +150,9 @@
 	onShow() {
 		this.init();
 	},
+	onHide() {
+		clearInterval(this.interval);
+	},
 	beforeDestroy() {
 		clearInterval(this.interval);
 	},
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 dc142ea..833583d 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
@@ -75,7 +75,7 @@
 			color: #896227;
 		}
 		&-coalTwo {
-			width: 84%;
+			width: 80%;
 			margin-top: 20%;
 			margin: 20% auto 0;
 			font-size: vww(20);
@@ -110,8 +110,8 @@
 			justify-content: center;
 			align-items: center;
 			position: absolute;
+			width: 100%;
 			bottom: 161rpx;
-			left: 42.5%;
 			image {
 				width: vww(52);
 				height: vww(52);
diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
index 5ddce20..88689f6 100644
--- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
+++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue
@@ -298,7 +298,7 @@
 			}
 		},
 		sideline() {
-			return this.weighList.orderType == '鍐呰喘' || this.weighList.orderType == '杞嚭';
+			return this.weighList.orderType == '鍐呰喘' || this.weighList.orderType == '杞叆';
 		}
 	},
 	methods: {
@@ -324,6 +324,9 @@
 					}
 					if (this.weighData.coalContactHair > 0 && this.weighData.coalContactSkin > 0) {
 						this.isInputOrigin = true;
+						if (this.isInputOrigin) {
+							this.$u.toast('淇℃伅宸插~鍐�');
+						}
 					}
 				}
 			});
@@ -569,7 +572,8 @@
 		}
 	}
 	.bottom-block {
-		width: 690rpx;
+		width: calc(100% - 60rpx);
+		box-sizing: border-box;
 		height: 630rpx;
 		margin: 0 vww(15) vww(45) vww(15);
 		background: #ffffff;
@@ -577,6 +581,7 @@
 		border-radius: 20rpx;
 		@include flex;
 		justify-content: center;
+		overflow: hidden;
 		.block-main {
 			width: 94%;
 			height: 565rpx;
@@ -585,6 +590,7 @@
 			justify-content: space-around;
 			align-items: flex-start;
 			flex-direction: column;
+			overflow: hidden;
 			.main-information {
 				width: 100%;
 				height: 28rpx;
@@ -593,6 +599,7 @@
 				color: #303030;
 				@include flex;
 				justify-content: flex-start;
+				overflow: hidden;
 				.prefix {
 					min-width: vww(60);
 				}
diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue
index 65ca4f9..116235f 100644
--- a/pages/driver-page/driver-index/driver-index.vue
+++ b/pages/driver-page/driver-index/driver-index.vue
@@ -31,12 +31,15 @@
 								</view>
 							</view>
 						</view>
-						<view class="second-line">
+						<!-- <view class="second-line">
 							<view class="coal-name">{{ item.coalName }}</view>
-						</view>
+						</view> -->
 						<view class="third-line">
 							<view class="time-icon"><u-icon name="clock" color="#515151" size="40"></u-icon></view>
 							<view class="send-date">{{ item.sendDate }}</view>
+							<view class="type">
+								<view class="coal-name">{{ item.coalName }}</view>
+							</view>
 						</view>
 						<view class="fourth-line" @click="qiangDanBtn(item)" v-if="item.carNum - item.taskNum !== 0"><view class="button-img">绔嬪嵆鎶㈠崟</view></view>
 					</view>
@@ -505,10 +508,33 @@
 						width: 148rpx;
 						height: 24rpx;
 						margin-left: vww(14);
+						margin-right: vww(56);
 						line-height: 24rpx;
 						font-size: 28rpx;
 						font-weight: 300;
 						color: #515151;
+					}
+					.type {
+						flex: 1;
+						margin-right: vww(10);
+						display: flex;
+						justify-content: center;
+						align-items: center;
+						.coal-name {
+							width: 120rpx;
+							height: 42rpx;
+							line-height: 42rpx;
+							border: 2px solid #035cfb;
+							border-radius: 4rpx;
+							font-size: 28rpx;
+							font-weight: 300;
+							color: #035cfb;
+							text-align: center;
+							padding: vww(3) vww(11);
+							white-space: nowrap;
+							overflow: hidden;
+							text-overflow: ellipsis;
+						}
 					}
 				}
 				.fourth-line {
@@ -518,8 +544,8 @@
 					display: flex;
 					justify-content: flex-end;
 					position: relative;
-					left: vww(190);
-					bottom: vww(10);
+					left: vww(203);
+					bottom: vww(3);
 					.button-img {
 						width: 100%;
 						height: 100%;
@@ -608,9 +634,9 @@
 					justify-content: flex-start;
 					margin-left: vww(18);
 					.clock {
-						width: 33%;
+						width: 40%;
 						height: vww(21);
-						margin-right: vww(70);
+						margin-right: vww(50);
 						line-height: vww(21);
 						@include flex;
 						justify-content: flex-start;
diff --git a/pages/driver-page/drvier-my/drvier-my.vue b/pages/driver-page/drvier-my/drvier-my.vue
index 213d57c..430b999 100644
--- a/pages/driver-page/drvier-my/drvier-my.vue
+++ b/pages/driver-page/drvier-my/drvier-my.vue
@@ -3,7 +3,7 @@
 		<view class="driver-banner">
 			<view class="navgation">鎴戠殑</view>
 			<view class="avatar">
-				<view class="avatar-imgage" style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/avatar.png')no-repeat;background-size: cover;"></view>
+				<view class="avatar-imgage" style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/driverava.png')no-repeat;background-size: cover;"></view>
 				<view class="avatar-name">{{ userInfo.name || '' }}</view>
 				<view class="edit-button"><u-button type="primary" @click="editBtnClick" shape="circle" plain>缂栬緫涓汉璧勬枡</u-button></view>
 			</view>
diff --git a/pages/public-page/forward/forward.vue b/pages/public-page/forward/forward.vue
index 1774faf..7466107 100644
--- a/pages/public-page/forward/forward.vue
+++ b/pages/public-page/forward/forward.vue
@@ -17,9 +17,9 @@
 		<view v-else-if="roleType == 2" class="notice-bar"><u-notice-bar :text="text1" :fontSize="30"></u-notice-bar></view>
 		<view class="card-main">
 			<view class="card-block">
-				<view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList" :key="index">
+				<view class="forward-card" v-for="(val, index) in jhOrderPlanForwardList" :key="val.vid">
 					<u-swipe-action>
-						<u-swipe-action-item :options="options1" @click="deleteGroup(index, val)" :index="index" :name="val.xsUserId || val.fleetId">
+						<u-swipe-action-item :options="options1" @click="deleteGroup(index, val)" :name="val.vid">
 							<view class="card-content">
 								<u--form labelPosition="left" :model="forwardForm" ref="form1">
 									<u-form-item label="杞彂瀵硅薄" labelWidth="21%" ref="item1" @click="forwardObjectClick(index)">
@@ -111,7 +111,8 @@
 						carNum: item.carNum,
 						xsUserId: item.xsUserId === null ? 0 : item.xsUserId,
 						fleetId: item.fleetId === null ? 0 : item.fleetId,
-						checkboxValue1: ''
+						checkboxValue1: '',
+						vid: new Date().getTime()
 					};
 				});
 			} else if (res.data.length !== 0 && this.roleType == 2) {
@@ -123,7 +124,8 @@
 						carNum: item.carNum,
 						xsUserId: item.xsUserId === null ? 0 : item.xsUserId,
 						fleetId: item.fleetId === null ? 0 : item.fleetId,
-						checkboxValue1: ''
+						checkboxValue1: '',
+						vid: new Date().getTime()
 					};
 				});
 			} else {
@@ -131,7 +133,8 @@
 					if (!v.orderPlanId) {
 						return {
 							...v,
-							orderPlanId: params.orderPlanId
+							orderPlanId: params.orderPlanId,
+							vid: new Date().getTime()
 						};
 					}
 				});
@@ -411,7 +414,8 @@
 					xsUserId: 0,
 					fleetId: 0,
 					checkboxValue1: '',
-					ischecked: false
+					ischecked: false,
+					vid: new Date().getTime()
 				});
 			} else {
 				this.jhOrderPlanForwardList.push({
@@ -421,7 +425,8 @@
 					xsUserId: 0,
 					fleetId: 0,
 					checkboxValue1: '',
-					ischecked: true
+					ischecked: true,
+					vid: new Date().getTime()
 				});
 			}
 			this.calculate(this.jhOrderPlanForwardList);
diff --git a/pages/public-page/mapRoute/mapRoute.vue b/pages/public-page/mapRoute/mapRoute.vue
index 43ffafb..573718e 100644
--- a/pages/public-page/mapRoute/mapRoute.vue
+++ b/pages/public-page/mapRoute/mapRoute.vue
@@ -2,7 +2,16 @@
 	<view>
 		<view class="page-body" style="margin-top: 4rpx;">
 			<view class="page-section page-section-gap">
-				<map style="width: 100%; height: 600px;" :latitude="latitude" :longitude="longitude" :markers="markers" :polyline="polyline"></map>
+				<map
+					style="width: 100%; height: 600px;"
+					:latitude="latitude"
+					:longitude="longitude"
+					:markers="markers"
+					:polyline="polyline"
+					@markertap="awaken"
+					@callouttap="awaken"
+					@tap="awaken"
+				></map>
 			</view>
 		</view>
 		<view class="tip">
@@ -238,14 +247,13 @@
 
 <style lang="scss" scoped>
 .tip {
-	margin-top: 60rpx;
 	width: 94%;
-	height: 40rpx;
 	font-size: 40rpx;
+	margin: vww(22) auto;
 	display: flex;
 	justify-content: space-around;
 	.first {
-		color: #c78a64;
+		color: #515151;
 		text {
 			font-size: 45rpx;
 			color: #f81414;
@@ -259,6 +267,10 @@
 	justify-content: center;
 	/deep/.u-button {
 		width: 300rpx;
+		border: 1px solid #3b56eb;
+		border-radius: 37rpx 37rpx 37rpx 37rpx;
+		background-color: transparent;
+		color: #3b56eb;
 	}
 }
 </style>

--
Gitblit v1.9.1