From 2ab92240f1eccf659d7380dc524e76faca6f644c Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期三, 04 十二月 2024 15:37:44 +0800
Subject: [PATCH] feat:库管新页面提交

---
 pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue |  133 ++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 122 insertions(+), 11 deletions(-)

diff --git a/pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue b/pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue
index 93883a4..8d88e3a 100644
--- a/pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue
+++ b/pages/freight-forwarder-page/freightForwarder-my/freightForwarder-my.vue
@@ -3,6 +3,45 @@
 		<view class="driver-banner">
 			<view class="navgation">鎴戠殑</view>
 		</view>
+		<view class="information-block-box">
+			<view class="personal-information">
+				<view class="personal-information-block">
+					<view class="block-main">
+						<view class="information-line">
+							<view class="line-label">
+								<image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/phonenum.png"
+									mode="widthFix"></image>
+								<view class="label-text">鎵嬫満鍙�</view>
+							</view>
+							<view class="information-value">
+								{{ userInfo.phone || '' }}
+							</view>
+						</view>
+						<view class="information-line">
+							<view class="line-label">
+								<image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/carnum.png"
+									mode="widthFix"></image>
+								<view class="label-text">濮撳悕</view>
+							</view>
+							<view class="information-value">
+								{{ userInfo.name || '' }}
+							</view>
+						</view>
+						<view class="information-line">
+							<view class="line-label">
+								<image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/carnum.png"
+									mode="widthFix"></image>
+								<view class="label-text">瑙掕壊</view>
+							</view>
+							<view class="information-value">
+								{{ '璐т唬' }}
+							</view>
+						</view>
+					
+					</view>
+				</view>
+			</view>
+		</view>
 		<view class="personal-information">
 			<view class="personal-information-block">
 				<view class="block-main">
@@ -166,6 +205,7 @@
 				passwordModified: '',
 				// 鐢ㄦ埛淇℃伅瀵硅薄
 				userInfo: {},
+				phoneList:[]
 			};
 		},
 		onLoad() {
@@ -179,7 +219,7 @@
 					url:  `${BaseUrl}/admin/dict/page`,
 					method: 'GET',
 					data: {
-						dictType:'phone'
+						dictType:'Setings'
 					},
 					header: {
 						Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
@@ -200,7 +240,11 @@
 								'CLIENT_TOC': 'Y',
 							},
 							success: res => {
-								this.phoneList=res.data.data.records
+								res.data.data.records.forEach(item=>{
+									if(item.description.includes('鑱旂郴')){
+										this.phoneList=item.value.split(',');
+									}
+								})
 							},
 							fail: err => {
 							}
@@ -218,17 +262,11 @@
 				});
 			},
 			contactUs(){
-				let data=[]
-				this.phoneList.map(item=>{
-					item.value.split(',').map(ite=>{
-						data.push(ite)
-					})
-				})
 				uni.showActionSheet({
-				itemList: Array.from(new Set(data)),
-				success: (res) => {
+					itemList: this.phoneList,
+					success: (res) => {
 					uni.makePhoneCall({
-						phoneNumber:Array.from(new Set(data))[res.tapIndex + 1]
+						phoneNumber:this.phoneList[res.tapIndex].split(":")[1]
 					})
 				},
 				fail: (err) => {
@@ -358,6 +396,79 @@
 			}
 		}
 	}
+	.information-block-box {
+			width: 100%;
+
+			.personal-information {
+				width: 100%;
+				display: flex;
+				justify-content: center;
+				position: relative;
+				top: vww(-30);
+
+				&-block {
+					width: 690rpx;
+					height: 300rpx;
+					background: #ffffff;
+					box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
+					border-radius: 20rpx;
+					display: flex;
+					flex-direction: column;
+					justify-content: space-between;
+
+					.block-main {
+						width: 636rpx;
+						margin: vww(10) vww(14);
+					}
+
+					.information-line {
+						@include flex;
+						width: 636rpx;
+						align-items: center!important;
+						height: vww(45);
+						border-bottom: 1rpx solid #f0f1f6;
+
+						.line-label {
+							width: 50%;
+							height: 90rpx;
+							@include flex;
+							align-items: center;
+
+							image {
+								width: 50rpx;
+								height: 50rpx;
+							}
+
+							.label-text {
+								flex: 0.8;
+								font-size: 30rpx;
+								font-weight: 400;
+								color: #000000;
+								line-height: 32rpx;
+								text-align: left;
+							}
+						}
+
+						.information-value {
+							min-width: vww(125);
+							@include flex;
+							font-size: 30rpx;
+							font-weight: 400;
+							color: #000000;
+							line-height: 85rpx;
+						}
+					}
+
+					.last {
+						border-bottom: 0;
+
+						.information-value {
+							justify-content: space-between;
+						}
+					}
+				}
+			}
+		}
 
 	::v-deep.freightForwarder-my {
 		width: 100%;

--
Gitblit v1.9.1