From a71f34e6888abdf106b6d20e125eb4569a63b3f0 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期一, 13 十一月 2023 17:27:58 +0800
Subject: [PATCH] 修改签到页面传参,称重页面样式

---
 pages/customer-page/customer-index/customer-index.vue |  101 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 94 insertions(+), 7 deletions(-)

diff --git a/pages/customer-page/customer-index/customer-index.vue b/pages/customer-page/customer-index/customer-index.vue
index b5e121c..858daed 100644
--- a/pages/customer-page/customer-index/customer-index.vue
+++ b/pages/customer-page/customer-index/customer-index.vue
@@ -6,11 +6,32 @@
 				<view class="wait-collection"
 					:style="{ backgroundImage: `url(${onlineurl}/appimg/image/banner/customerbanner.png)`, backgroundSize: 'contain', backgroundRepeat: 'no-repeat' }">
 				</view>
-				<view style="position: relative;top: -120px;">
+				<view style="height: 382rpx;width: 100%;"></view>
+				<!-- 寮曞椤� -->
+				<view class="noob-tour"
+					v-if="roleType===4&&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 style="position: relative;">
 					<u-empty mode="data"
 						icon="http://cdn.uviewui.com/uview/empty/data.png"
 						textSize="30"
 						iconSize="1000"
+						text="鏆傛棤鏁版嵁"
 						v-if="orderPlanData.length == 0"></u-empty>
 				</view>
 				<view class="collection-form">
@@ -83,6 +104,7 @@
 							icon="http://cdn.uviewui.com/uview/empty/data.png"
 							textSize="30"
 							iconSize="1000"
+							text="鏆傛棤鏁版嵁"
 							v-if="historyCoalData.length == 0"></u-empty>
 						<view class="history-information"
 							v-for="(item, index) in historyCoalData"
@@ -138,6 +160,14 @@
 					</scroll-view>
 				</view>
 			</view>
+			<!-- 鍥剧墖棰勮寮瑰嚭妗� -->
+			<view class="previewImage-container">
+				<view class="previewImage-container">
+					<previewImage ref="previewImage"
+						:imgs="customerTourImgList"
+						:saveBtn='false'></previewImage>
+				</view>
+			</view>
 			<!-- 棰嗗彇寮瑰嚭妗� -->
 			<u-popup :show="show"
 				@close="close"
@@ -165,6 +195,9 @@
 	import { onlineurl } from '@/api/request.js'
 	import combinedTitle from '@/components/combined-title/combined-title.vue';
 	import { customerId } from '@/utils/status';
+	import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
+	import { BaseUrl } from '@/api/publicInterface.js'
+	import { mapState } from 'vuex'
 	export default {
 		props: {
 			orderPlanDataStore: {
@@ -173,7 +206,8 @@
 			}
 		},
 		components: {
-			combinedTitle
+			combinedTitle,
+			previewImage
 		},
 		watch: {
 			orderPlanDataStore: {
@@ -185,6 +219,7 @@
 			}
 		},
 		computed: {
+			...mapState(['customerTourImgList']),
 			roleType() {
 				return uni.getStorageSync('roleType');
 			},
@@ -215,18 +250,26 @@
 				// 鍓╀綑鐨勯�氱煡鍗曟暟閲�
 				carNumSurplus: '',
 				canClick: false,
-				onlineurl: ''
+				onlineurl,
+				previewImageShow: false,
+				previewImageSrc: '',
+				phone: "",
+				isFirstLogin: true
 			};
 		},
-		onLoad() {},
+		mounted() {
+			this.getLogOn()
+		},
 		onShow() {
 			this.init();
+			
 		},
 		methods: {
 			init() {
 				this.GetOrderPlan();
 				this.getJhOrderPlanDataPage();
 				this.onlineurl = onlineurl;
+				// this.getLogOn()
 			},
 			// 鑾峰彇鍙戣繍璁″垝鍒楄〃
 			GetOrderPlan() {
@@ -349,6 +392,28 @@
 				uni
 					.navigateTo({ url: `/pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan?index=${index}` });
 			},
+			noobTour(v) {
+				this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality1.jpg')
+			},
+			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>
@@ -364,7 +429,7 @@
 	.wait-collection {
 		width: 100%;
 		height: 600rpx;
-		position: relative;
+		position: fixed;
 		top: vww(-10);
 		z-index: 0;
 	}
@@ -388,7 +453,7 @@
 	.history-numbers {
 		width: 100%;
 		position: relative;
-		top: vww(-110);
+		// top: vww(-110);
 
 		.history-information {
 			width: 690rpx;
@@ -481,6 +546,28 @@
 		}
 	}
 
+	.noob-tour {
+		margin-bottom: vww(30);
+		position: relative;
+	}
+
+	.u-popup {
+		.u-transition {
+			.u-popup__content {
+				.editDriverPopup-container-box {}
+
+				//closeIcon
+				.u-popup__content__close--top-right {
+					.u-icon {
+						.u-icon__icon {
+							font-size: vww(20) !important;
+						}
+					}
+				}
+			}
+		}
+	}
+
 	::v-deep.customer-index {
 		width: 100%;
 		margin: 0 auto;
@@ -491,7 +578,7 @@
 				width: vww(345);
 				margin: 0 vww(15);
 				position: relative;
-				top: vww(-144);
+				// top: vww(-144);
 
 				.collection-form-item {
 					width: 690rpx;

--
Gitblit v1.9.1