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 | 28 ++++++++++++++++++---------- 1 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/layout/component/sidebar/components/UserInformation.vue b/src/layout/component/sidebar/components/UserInformation.vue index 5802fc4..cc37527 100644 --- a/src/layout/component/sidebar/components/UserInformation.vue +++ b/src/layout/component/sidebar/components/UserInformation.vue @@ -27,6 +27,11 @@ <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"> <div id="wechat-bind"> <div v-if="bindingCodeShow" class="flex flex-col items-center justify-center"> @@ -38,18 +43,20 @@ ></iframe> <span>浣跨敤寰俊鎵竴鎵粦瀹�</span> </div> - <div v-if="userInformationInfo.isBindWechat && !bindingCodeShow" class="flex items-center"> - <span>宸茬粦瀹�</span> - - <el-button link type="primary" @click="openWechatLogin">閲嶆柊缁戝畾</el-button> - </div> - <div v-else-if="!userInformationInfo.isBindWechat && !bindingCodeShow" class="flex items-center"> - <span>鏈粦瀹�</span> - - <el-button link type="primary" @click="openWechatLogin">鐐瑰嚮缁戝畾</el-button> - </div> + <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> @@ -148,6 +155,7 @@ handleNoAuth(); return; } + // getWechartQrCode(); userInformationInfo.value = Local.get(userInfoKey); }); -- Gitblit v1.9.3