From 43946aca83334ac3e1c3929a2d6dcba3f2bf6446 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 17 十二月 2024 15:27:59 +0800 Subject: [PATCH] fix:小程序眼镜密码,h5历史收发单 --- pages/loadUnload-page/my-page/my-page.vue | 23 +++++++++++------------ 1 files changed, 11 insertions(+), 12 deletions(-) diff --git a/pages/loadUnload-page/my-page/my-page.vue b/pages/loadUnload-page/my-page/my-page.vue index c681efc..4948ee7 100644 --- a/pages/loadUnload-page/my-page/my-page.vue +++ b/pages/loadUnload-page/my-page/my-page.vue @@ -263,7 +263,8 @@ logoutShow: false, logoutTitle: '鎻愮ず', logoutContent: '鏄惁纭閫�鍑�', - BaseUrl + BaseUrl, + phoneList:[] }; }, onShow() { @@ -280,7 +281,7 @@ url: `${BaseUrl}/admin/dict/page`, method: 'GET', data: { - dictType:'phone' + dictType:'Setings' }, header: { Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), @@ -301,7 +302,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 => { } @@ -390,17 +395,11 @@ this.logoutShow = false; }, 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