From 97d88adcdfa7e13b2203c8716c02866fae087704 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期二, 26 九月 2023 09:38:47 +0800
Subject: [PATCH] 修改磅房忙碌问题及其他问题

---
 pages/driver-page/driver-index/driver-index.vue |  107 +++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 102 insertions(+), 5 deletions(-)

diff --git a/pages/driver-page/driver-index/driver-index.vue b/pages/driver-page/driver-index/driver-index.vue
index 774f18f..95d9614 100644
--- a/pages/driver-page/driver-index/driver-index.vue
+++ b/pages/driver-page/driver-index/driver-index.vue
@@ -6,6 +6,25 @@
 				<view class="wait-collection"
 					style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/diverbanner.png') no-repeat;background-size:contain">
 				</view>
+				<!-- 寮曞椤� -->
+				<view class="noob-tour"
+					v-if="roleType===3&&isFirstLogin">
+					<combined-title title="鎿嶄綔鎸囧紩"></combined-title>
+					<u-cell-group>
+						<u-cell title="鏂版墜鎸囧紩"
+							name='1'
+							:clickable="true"
+							@click="noobTour">
+							<u-badge type="primary"
+								value="01"
+								slot='icon'></u-badge>
+							<u-icon slot="value"
+								name="arrow-right"
+								size="30"
+								color="#b8b8b8"></u-icon>
+						</u-cell>
+					</u-cell-group>
+				</view>
 				<view class="collection-form">
 					<view class="collection-form-item"
 						v-for="(item, index) in driverBillOfLoadingData.list1"
@@ -220,6 +239,12 @@
 						</view>
 					</view>
 					<view class="white-block"></view>
+					<!-- 鍥剧墖棰勮寮瑰嚭妗� -->
+					<view class="previewImage-container">
+						<previewImage ref="previewImage"
+							:imgs="driverTourImgList"
+							:saveBtn='false'></previewImage>
+					</view>
 				</view>
 			</view>
 		</view>
@@ -229,10 +254,13 @@
 <script>
 	import { customerId } from '@/utils/status';
 	import combinedTitle from '@/components/combined-title/combined-title.vue';
-
+	import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
+	import { mapState } from 'vuex'
+	import { BaseUrl } from '@/api/publicInterface.js'
 	export default {
 		components: {
-			combinedTitle
+			combinedTitle,
+			previewImage
 		},
 		props: {
 			indexdriverBillOfLoadingData: {
@@ -249,6 +277,12 @@
 				immediate: true
 			}
 		},
+		computed: {
+			...mapState(['driverTourImgList']),
+			roleType() {
+				return uni.getStorageSync('roleType');
+			},
+		},
 		data() {
 			return {
 				driverBillOfLoadingData: {
@@ -263,7 +297,9 @@
 				qiangDanOrderPlanId: null,
 				fleetId: '',
 				xsUserId: '',
-				customerId: ''
+				customerId: '',
+				isFirstLogin: true, //鏄惁鏄涓�娆$櫥褰�
+				phone: ""
 			};
 		},
 		onShow() {
@@ -280,6 +316,7 @@
 			},
 			init() {
 				this.qiangDanList();
+				this.getLogOn()
 			},
 			// 鍙告満棣栭〉鍒楄〃
 			qiangDanList() {
@@ -337,7 +374,7 @@
 			},
 			list3CardIconClick(value) {
 				uni.navigateTo({
-					url: `/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details?orderPlanId=${value.id}&yyId=${value.yyId}`
+					url: `/pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details?orderPlanId=${value.id}&yyId=${value.yyId}&orderType=${value.orderType}`
 				});
 			},
 			// 鎻愮叅鍗曡鎯�
@@ -351,7 +388,29 @@
 				uni.navigateTo({
 					url: `/pages/driver-page/appointment/appointment?takeCoalId=${value.id}&filedId=${value.filedId}&deptId=${value.deptId}&sendDate=${value.sendDate}`
 				});
-			}
+			},
+			noobTour() {
+				this.$refs.previewImage.open('https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj1.png')
+			},
+			getLogOn() {
+				this.$reqGet('getUserEntity').then(res => {
+					this.phone = res.data.phone
+				}).then(() => {
+					uni.request({
+						url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`,
+						success: res => {
+							// res.data.data 涓�1 浠h〃绗竴娆$櫥褰�  涓�0鍙栨秷瀛︿範鎸囧紩 涓�2 浠h〃瀛樺湪
+							if (res.data.data === 1) {
+								this.noobTour()
+							} else if (res.data.data === 2) {
+								this.isFirstLogin = true
+							} else {
+								this.isFirstLogin = false
+							}
+						}
+					});
+				})
+			},
 		}
 	};
 </script>
@@ -719,11 +778,22 @@
 								color: #ffffff;
 								margin-right: vww(20);
 							}
+
+							.filedname {
+								width: 80%;
+							}
+						}
+
+						.map-icon {
+							position: absolute;
+							right: vww(-1);
+							top: vww(2)
 						}
 					}
 
 					.first-extra {
 						@include firstLine;
+						position: relative;
 
 						.main-information {
 							width: 100%;
@@ -744,6 +814,16 @@
 								color: #ffffff;
 								margin-right: vww(20);
 							}
+
+							.filedname {
+								width: 80%;
+							}
+						}
+
+						.map-icon {
+							position: absolute;
+							right: vww(-1);
+							top: vww(2)
 						}
 					}
 
@@ -751,6 +831,7 @@
 						@include firstLine;
 						margin: 0;
 						margin-left: vww(16);
+						position: relative;
 
 						.main-information {
 							width: 100%;
@@ -771,6 +852,16 @@
 								color: #ffffff;
 								margin-right: vww(20);
 							}
+
+							.filedname {
+								width: 80%;
+							}
+						}
+
+						.map-icon {
+							position: absolute;
+							right: vww(-1);
+							top: vww(2)
 						}
 					}
 
@@ -835,6 +926,12 @@
 					margin-top: vww(10);
 				}
 			}
+
+			.noob-tour {
+				margin-bottom: vww(10);
+				position: relative;
+				top: -240rpx;
+			}
 		}
 	}
 </style>
\ No newline at end of file

--
Gitblit v1.9.1