wk
2024-06-29 bc283f3277c5da93684864e8fbd9f3aee262ca7a
pages/doorkeeper-page/my-page/my-page.vue
@@ -50,6 +50,13 @@
            </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"
@@ -123,7 +130,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 {
@@ -145,12 +152,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,
@@ -270,6 +282,9 @@
         },
         logout() {
            this.logoutShow = true;
         },
         switchAccounts(){
            redirectabLogin()
         },
         logoutConfirm() {
            redirectLogin();
@@ -458,7 +473,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;