From 7e7e77134aa0324993ce7d9db9884eab4d8f98fe Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期五, 06 九月 2024 11:41:21 +0800
Subject: [PATCH] feat:分配日计划样式更新

---
 pages/customer-page/customer-my/customer-my.vue |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index 89df8e2..c32790d 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -59,7 +59,7 @@
 					</view>
 				</view>
 			</view>
-			<view class="personal-information-block">
+			<!-- <view class="personal-information-block">
 				<view class="block-main">
 					<view class="huodai">
 						<combined-title title="鎴戠殑鎵胯繍鍟�"
@@ -90,7 +90,7 @@
 						</view>
 					</view>
 				</view>
-			</view>
+			</view> -->
 			<view class="personal-information-block">
 				<view class="block-main">
 					<view class="fleet-container">
@@ -129,7 +129,7 @@
 			<view class="statistics"><u-button text="鐢ㄦ埛绠$悊"
 					type="primary"
 					@click="userManage"
-					v-if="roleType == 1 && userEntity.isHostUser === '0'"></u-button></view>
+					v-if="roleType == 1 && userInfo.isHostUser === 0"></u-button></view>
 			<view class="logout"><u-button text="淇敼瀵嗙爜"
 					type="primary"
 					@click="modifyPwd"></u-button></view>
@@ -259,6 +259,9 @@
 		computed: {
 			roleType() {
 				return uni.getStorageSync('roleType');
+			},
+			userInfo(){
+					return uni.getStorageSync('userInfo');
 			}
 		},
 		methods: {
@@ -274,7 +277,7 @@
 					url:  `${BaseUrl}/admin/dict/page`,
 					method: 'GET',
 					data: {
-						dictType:'phone'
+						dictType:'Setings'
 					},
 					header: {
 						Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
@@ -295,7 +298,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 => {
 							}
@@ -480,17 +487,11 @@
 				this.logoutShow = true;
 			},
 			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) => {

--
Gitblit v1.9.1