From 77b15609b62c9bcd80fcdfd65f134a06252920b9 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期一, 14 四月 2025 17:11:21 +0800 Subject: [PATCH] 48px --- src/layout/component/sidebar/components/UserInformation.vue | 24 +++++++++++++++++++----- 1 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/layout/component/sidebar/components/UserInformation.vue b/src/layout/component/sidebar/components/UserInformation.vue index 8ab5bef..cc37527 100644 --- a/src/layout/component/sidebar/components/UserInformation.vue +++ b/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); }); -- Gitblit v1.9.3