From 34b154be6ee139490d82920f0cee2cd03945267a Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 28 十月 2024 09:06:49 +0800 Subject: [PATCH] feat:库管确认装卸单位显示 --- pages/quality-inspection-page/qualityMy/quality-my.vue | 73 +++++++++++++++++++++++++++++++++++- 1 files changed, 71 insertions(+), 2 deletions(-) diff --git a/pages/quality-inspection-page/qualityMy/quality-my.vue b/pages/quality-inspection-page/qualityMy/quality-my.vue index 8078bfb..a31d171 100644 --- a/pages/quality-inspection-page/qualityMy/quality-my.vue +++ b/pages/quality-inspection-page/qualityMy/quality-my.vue @@ -92,6 +92,13 @@ shape="circle" plain></u-button></view> </view> + <view class="loginout-we"> + <view class="loginout-main"><u-button text="鑱旂郴鎴戜滑" + type="primary" + shape="circle" + plain + @click="contactUs()"></u-button></view> + </view> <!-- 淇敼寮瑰嚭妗� --> <view class="editDriverPopup-container"> <u-popup :show="editDriverPopupShow" @@ -240,7 +247,8 @@ logoutShow: false, logoutTitle: '鎻愮ず', logoutContent: '鏄惁纭閫�鍑�', - BaseUrl + BaseUrl, + phoneList:[] }; }, onShow() { @@ -253,6 +261,44 @@ ...mapMutations(['changeisUploadimg']), init() { this.getUserEntity(); + uni.request({ + url: `${BaseUrl}/admin/dict/page`, + method: 'GET', + data: { + dictType:'Setings' + }, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), + clientToc: 'Y', + 'CLIENT_TOC': 'Y', + }, + success: res => { + let dictId=res.data.data?.records[0].id + uni.request({ + url: `${BaseUrl}/admin/dict/item/page`, + method: 'GET', + data: { + dictId:dictId + }, + header: { + Authorization: 'Bearer' + ' ' + uni.getStorageSync('token'), + clientToc: 'Y', + 'CLIENT_TOC': 'Y', + }, + success: res => { + res.data.data.records.forEach(item=>{ + if(item.description.includes('鑱旂郴')){ + this.phoneList=item.value.split(',') + } + }) + }, + fail: err => { + } + }) + }, + fail: err => { + } + }) }, getUserEntity() { uni.showLoading({ @@ -331,6 +377,19 @@ }, logoutCancel() { this.logoutShow = false; + }, + contactUs(){ + uni.showActionSheet({ + itemList: this.phoneList, + success: (res) => { + uni.makePhoneCall({ + phoneNumber:this.phoneList[res.tapIndex].split(":")[1] + }) + }, + fail: (err) => { + console.log('寮圭獥鍙栨秷'); + } + }); }, } }; @@ -544,7 +603,17 @@ width: 84%; } } - + .loginout-we{ + width: 100%; + height: 74rpx; + @include flex; + justify-content: center; + position: relative; + bottom: vww(-500); + .loginout-main { + width: 84%; + } + } // 琛ㄥ崟 .personal-information-form { margin-top: vww(200); -- Gitblit v1.9.1