| | |
| | | </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="退出登录" |
| | | type="primary" |
| | |
| | | </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 { |
| | |
| | | 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, |
| | |
| | | }, |
| | | logout() { |
| | | this.logoutShow = true; |
| | | }, |
| | | switchAccounts(){ |
| | | redirectabLogin() |
| | | }, |
| | | logoutConfirm() { |
| | | redirectLogin(); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .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; |