From 09604618b4116951a1f6556f5e48b47a59b5780a Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 14 十一月 2024 18:05:56 +0800 Subject: [PATCH] feat:库管单位修改 --- pages/loadUnload-page/my-page/my-page.vue | 85 ++++++++++++++++++++++++++++++++++++++---- 1 files changed, 77 insertions(+), 8 deletions(-) diff --git a/pages/loadUnload-page/my-page/my-page.vue b/pages/loadUnload-page/my-page/my-page.vue index a1f51b4..4948ee7 100644 --- a/pages/loadUnload-page/my-page/my-page.vue +++ b/pages/loadUnload-page/my-page/my-page.vue @@ -4,7 +4,7 @@ <view class="navgation">鎴戠殑</view> <view class="avatar"> <view class="avatar-imgage" - style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/driverava.png')no-repeat;background-size: cover;"> + style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/driverava.png')no-repeat;background-size: cover;"> </view> <view class="avatar-name">{{ userInfo.name || '' }}</view> <!-- <view class="edit-button"><u-button type="primary" @@ -18,7 +18,7 @@ <view class="information-line" @click=""> <view class="line-label"> - <image src="https://mx.jzeg.cn:9096/appimg/image/banner/personalicon.png" + <image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/personalicon.png" mode="widthFix"></image> <view class="label-text">韬唤璇佸彿</view> </view> @@ -28,7 +28,7 @@ </view> <view class="information-line"> <view class="line-label"> - <image src="https://mx.jzeg.cn:9096/appimg/image/banner/phonenum.png" + <image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/phonenum.png" mode="widthFix"></image> <view class="label-text">鎵嬫満鍙�</view> </view> @@ -38,7 +38,7 @@ </view> <view class="information-line"> <view class="line-label"> - <image src="https://mx.jzeg.cn:9096/appimg/image/banner/phonenum.png" + <image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/phonenum.png" mode="widthFix"></image> <view class="label-text">璐﹀彿</view> </view> @@ -49,7 +49,7 @@ <view class="information-line" @click="scoreCert"> <view class="line-label"> - <image src="https://mx.jzeg.cn:9096/appimg/image/banner/address.png" + <image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/address.png" mode="widthFix" style="width: 36rpx;position: relative;left: 8rpx;"></image> <view class="label-text">鏇存敼澶村儚</view> @@ -63,7 +63,7 @@ <view class="information-line last" @click="scorePass"> <view class="line-label"> - <image src="https://mx.jzeg.cn:9096/appimg/image/banner/address.png" + <image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/address.png" mode="widthFix" style="width: 36rpx;position: relative;left: 8rpx;"></image> <view class="label-text">鏇存敼瀵嗙爜</view> @@ -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" @@ -256,7 +263,8 @@ logoutShow: false, logoutTitle: '鎻愮ず', logoutContent: '鏄惁纭閫�鍑�', - BaseUrl + BaseUrl, + phoneList:[] }; }, onShow() { @@ -269,6 +277,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({ @@ -347,6 +393,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('寮圭獥鍙栨秷'); + } + }); }, } }; @@ -552,7 +611,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