From 65d1e61e0546a5a7b42381b1f11a5ad6ed2ce145 Mon Sep 17 00:00:00 2001 From: wk Date: 星期六, 29 六月 2024 13:50:15 +0800 Subject: [PATCH] feta:道路指引 --- pages/loadUnload-page/my-page/my-page.vue | 41 +++++++++++++++++++++++++++++++++-------- 1 files changed, 33 insertions(+), 8 deletions(-) diff --git a/pages/loadUnload-page/my-page/my-page.vue b/pages/loadUnload-page/my-page/my-page.vue index 713b932..36eb693 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:9095/appimg/image/banner/driverava.png')no-repeat;background-size: cover;"> + style="background: url('https://mx.jzeg.cn:9096/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:9095/appimg/image/banner/personalicon.png" + <image src="https://mx.jzeg.cn:9096/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:9095/appimg/image/banner/phonenum.png" + <image src="https://mx.jzeg.cn:9096/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:9095/appimg/image/banner/phonenum.png" + <image src="https://mx.jzeg.cn:9096/appimg/image/banner/phonenum.png" mode="widthFix"></image> <view class="label-text">璐﹀彿</view> </view> @@ -48,7 +48,7 @@ </view> <view class="information-line last"> <view class="line-label"> - <image src="https://mx.jzeg.cn:9095/appimg/image/banner/weighnum.png" + <image src="https://mx.jzeg.cn:9096/appimg/image/banner/weighnum.png" mode="widthFix"></image> <view class="label-text">浣撻噸</view> </view> @@ -59,6 +59,13 @@ </view> </view> </view> + </view> + <view class="switch-accounts"> + <view class="loginout-main"><u-button text="鍒囨崲璐﹀彿" + type="primary" + @click="switchAccounts" + shape="circle" + plain></u-button></view> </view> <view class="loginout"> <view class="loginout-main"><u-button text="閫�鍑虹櫥褰�" @@ -142,7 +149,7 @@ </template> <script> - import { customerId, userInfo, redirectLogin } from '@/utils/status'; + import { customerId, userInfo, redirectLogin,redirectabLogin } from '@/utils/status'; import { BaseUrl } from '@/api/publicInterface.js'; import { mapMutations } from 'vuex'; export default { @@ -165,12 +172,17 @@ userId: '' }, rules: { - name: { + name: [{ type: 'string', required: true, message: '璇峰~鍐欏鍚�', trigger: ['blur', 'change'] }, + { + pattern: /^[\u4e00-\u9fa5\s]+$/, + message: '濮撳悕鍙兘鏄腑鏂�', + trigger: ['blur', 'change'] + }], idCard: [{ type: 'string', required: true, @@ -296,6 +308,9 @@ }, logout() { this.logoutShow = true; + }, + switchAccounts(){ + redirectabLogin() }, logoutConfirm() { redirectLogin(); @@ -485,7 +500,17 @@ } } } - + .switch-accounts{ + width: 100%; + height: 80rpx; + @include flex; + justify-content: center; + position: relative; + bottom: vww(-400); + .loginout-main { + width: 84%; + } + } .loginout { width: 100%; height: 74rpx; -- Gitblit v1.9.1