From ae1aad66a165ee7253bed2127a3b53baa40c2361 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期三, 17 五月 2023 08:35:33 +0800
Subject: [PATCH] 修复错误,增加验证

---
 pages/driver-page/drvier-my/drvier-my.vue |   45 +++++++++++++++++++++------------------------
 1 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/pages/driver-page/drvier-my/drvier-my.vue b/pages/driver-page/drvier-my/drvier-my.vue
index d47aead..213d57c 100644
--- a/pages/driver-page/drvier-my/drvier-my.vue
+++ b/pages/driver-page/drvier-my/drvier-my.vue
@@ -3,8 +3,8 @@
 		<view class="driver-banner">
 			<view class="navgation">鎴戠殑</view>
 			<view class="avatar">
-				<view class="avatar-imgage"></view>
-				<view class="avatar-name">{{ userInfo.name }}</view>
+				<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-name">{{ userInfo.name || '' }}</view>
 				<view class="edit-button"><u-button type="primary" @click="editBtnClick" shape="circle" plain>缂栬緫涓汉璧勬枡</u-button></view>
 			</view>
 			<view class="personal-information">
@@ -16,8 +16,8 @@
 								<view class="label-text">韬唤璇佸彿</view>
 							</view>
 							<view class="information-value">
-								{{ userInfo.idCard }}
-								<u-icon name="arrow-right" color="#999999" size="30"></u-icon>
+								{{ userInfo.idCard || '' }}
+								<!-- <u-icon name="arrow-right" color="#999999" size="30" v-if="userInfo.idCard"></u-icon> -->
 							</view>
 						</view>
 						<view class="information-line">
@@ -26,8 +26,8 @@
 								<view class="label-text">鎵嬫満鍙�</view>
 							</view>
 							<view class="information-value">
-								{{ userInfo.phone }}
-								<u-icon name="arrow-right" color="#999999" size="30"></u-icon>
+								{{ userInfo.phone || '' }}
+								<!-- <u-icon name="arrow-right" color="#999999" size="30" v-if="userInfo.phone"></u-icon> -->
 							</view>
 						</view>
 						<view class="information-line">
@@ -36,8 +36,8 @@
 								<view class="label-text">杞︾墝鍙�</view>
 							</view>
 							<view class="information-value">
-								{{ userInfo.carNo }}
-								<u-icon name="arrow-right" color="#999999" size="30"></u-icon>
+								{{ userInfo.carNo || '' }}
+								<!-- <u-icon name="arrow-right" color="#999999" size="30" v-if="userInfo.carNo"></u-icon> -->
 							</view>
 						</view>
 						<view class="information-line">
@@ -46,8 +46,8 @@
 								<view class="label-text">杞﹁酱鏁�</view>
 							</view>
 							<view class="information-value">
-								{{ userInfo.axleNum }}
-								<u-icon name="arrow-right" color="#999999" size="30"></u-icon>
+								{{ userInfo.axleNum || '' }}
+								<!-- <u-icon name="arrow-right" color="#999999" size="30" v-if="userInfo.axleNum"></u-icon> -->
 							</view>
 						</view>
 						<view class="information-line last">
@@ -56,8 +56,8 @@
 								<view class="label-text">浣撻噸</view>
 							</view>
 							<view class="information-value">
-								{{ userInfo.weight }}
-								<u-icon name="arrow-right" color="#999999" size="30"></u-icon>
+								{{ userInfo.weight || '' }}
+								<!-- <u-icon name="arrow-right" color="#999999" size="30" v-if="userInfo.weight"></u-icon> -->
 							</view>
 						</view>
 					</view>
@@ -370,10 +370,9 @@
 		position: fixed;
 		top: 0;
 		.navgation {
-			width: 77rpx;
+			width: 80rpx;
 			height: 37rpx;
 			font-size: 40rpx;
-			font-family: Adobe Heiti Std;
 			font-weight: normal;
 			color: #ffffff;
 			line-height: 69rpx;
@@ -389,23 +388,23 @@
 			.avatar-imgage {
 				width: 98rpx;
 				height: 98rpx;
-				background: #fcfcfc;
-				border: 4px solid #ffffff;
-				border-radius: 50%;
 				margin-left: vww(18);
+				@include flex;
+				justify-content: center;
 			}
 			.avatar-name {
-				width: 136rpx;
+				width: 200rpx;
+				display: flex;
+				flex-wrap: wrap;
 				height: 32rpx;
 				font-size: 34rpx;
-				font-family: Source Han Sans CN;
 				font-weight: bold;
 				color: #ffffff;
 				margin-left: vww(17);
 			}
 			.edit-button {
 				position: relative;
-				left: vww(94);
+				left: vww(73);
 				top: vww(4);
 			}
 		}
@@ -441,19 +440,17 @@
 							height: 50rpx;
 						}
 						.label-text {
-							width: 118rpx;
+							width: 120rpx;
 							font-size: 30rpx;
-							font-family: Source Han Sans CN;
 							font-weight: 400;
 							color: #000000;
 							line-height: 85rpx;
 						}
 					}
 					.information-value {
-						width: vww(125);
+						min-width: vww(125);
 						@include flex;
 						font-size: 30rpx;
-						font-family: Source Han Sans CN;
 						font-weight: 400;
 						color: #000000;
 						line-height: 85rpx;

--
Gitblit v1.9.1