wujingjing
2025-04-14 77b15609b62c9bcd80fcdfd65f134a06252920b9
src/layout/component/sidebar/components/UserInformation.vue
@@ -27,12 +27,15 @@
            <el-form-item label="邮箱" prop="email">
               <el-input v-model="userInformationInfo.email" readonly></el-input>
            </el-form-item>
            <el-form-item v-if="userInformationInfo.wechatNickname" label="微信昵称" prop="wechatNickname">
               <el-input v-model="userInformationInfo.wechatNickname" readonly></el-input>
            </el-form-item>
            <el-form-item label="微信绑定" prop="wechat">
               <el-button link type="primary" v-if="userInformationInfo.isBindWechat">已绑定</el-button>
               <div v-else id="wechat-bind">
               <div id="wechat-bind">
                  <div v-if="bindingCodeShow" class="flex flex-col items-center justify-center">
                     <iframe
                        v-if="bindingCodeShow"
                        ref="wechatQrRef"
                        sandbox="allow-top-navigation allow-scripts"
                        style="width: 200px; height: 170px; overflow: hidden"
@@ -40,10 +43,20 @@
                     ></iframe>
                     <span>使用微信扫一扫绑定</span>
                  </div>
                  <el-button v-else link type="primary" @click="openWechatLogin">点击绑定</el-button>
                  <template v-else>
                     <div v-if="userInformationInfo.isBindWechat" class="flex items-center">
                        <span>已绑定</span>
                        <el-button link type="primary" @click="openWechatLogin">重新绑定</el-button>
                     </div>
                     <div v-else class="flex items-center">
                        <span>未绑定</span>
                        <el-button link type="primary" @click="openWechatLogin">点击绑定</el-button>
                     </div>
                  </template>
               </div>
            </el-form-item>
            <!-- <el-form-item label="角色" prop="role">
               <el-select v-model="userInformationInfo.role" placeholder="请选择角色" disabled>
                  <el-option label="角色A" value="roleA"></el-option>
@@ -142,6 +155,7 @@
      handleNoAuth();
      return;
   }
   // getWechartQrCode();
   userInformationInfo.value = Local.get(userInfoKey);
});