From b2fb3b39ee0a5b94167f49c6349b6caef08bfdeb Mon Sep 17 00:00:00 2001
From: wk
Date: 星期三, 14 八月 2024 10:24:31 +0800
Subject: [PATCH] feat:联系我们

---
 pages/customer-page/customer-my/customer-my.vue |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/pages/customer-page/customer-my/customer-my.vue b/pages/customer-page/customer-my/customer-my.vue
index 89df8e2..56cae2e 100644
--- a/pages/customer-page/customer-my/customer-my.vue
+++ b/pages/customer-page/customer-my/customer-my.vue
@@ -274,7 +274,7 @@
 					url:  `${BaseUrl}/admin/dict/page`,
 					method: 'GET',
 					data: {
-						dictType:'phone'
+						dictType:'Setings'
 					},
 					header: {
 						Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'),
@@ -295,7 +295,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 +484,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