| | |
| | | <span class="use_name">{{ firstUserCharacter }}</span> |
| | | </div> |
| | | <div class="isShow_Profile" v-show="isShowExitLogin"> |
| | | <div class="exit" @click="feedbackClick"><i class="ywifont ywicon-youxiang"></i> 用户反馈</div> |
| | | <div class="exit" @click="logoutClick"><i class="ywifont ywicon-tuichu"></i> 退出登录</div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="expand-sidebar" @click="toggleSidebar" v-if="!isSharePage"> |
| | | <i class="text-[#fff] transition-all ywifont ywicon-zuoyoujiantou1" ></i> |
| | | <i class="text-[#fff] transition-all ywifont ywicon-zuoyoujiantou1"></i> |
| | | </div> |
| | | <el-dialog v-model="userFeedbackVisible" title="用户反馈" width="500" :before-close="handleCloseFeedback"> |
| | | <el-input v-model="userFeedbackText" :rows="8" type="textarea" placeholder="欢迎说说你的想法" /> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button @click="handleCloseFeedback">取消</el-button> |
| | | <el-button type="primary" @click="confirmFeedback" :disabled="is_input_title"> 确 定 </el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | gotoRoute({ name: 'AboutUs' }); |
| | | }; |
| | | //#endregion |
| | | //#region ====================== 用户反馈 ====================== |
| | | const userFeedbackVisible = ref(false); |
| | | const userFeedbackText = ref(''); |
| | | const is_input_title = computed(() => { |
| | | return userFeedbackText.value == '' ? true : false; |
| | | }); |
| | | const feedbackClick = () => { |
| | | userFeedbackVisible.value = true; |
| | | }; |
| | | const handleCloseFeedback = () => { |
| | | userFeedbackVisible.value = false; |
| | | }; |
| | | const confirmFeedback = () => { |
| | | const data = { |
| | | content: userFeedbackText.value, |
| | | contact: '用户反馈', |
| | | }; //TODO 发送用户反馈 |
| | | handleCloseFeedback(); |
| | | }; |
| | | |
| | | //#endregion |
| | | //#region ====================== 显示/退出登录 ====================== |
| | | //登录 |
| | | const openLoginDlg = async () => { |
| | |
| | | isLoginStatus.value = false; |
| | | LoginInfo.remove(); |
| | | }; |
| | | |
| | | const toggleExitLoginBtnRef = ref<HTMLDivElement>(null); |
| | | |
| | | onClickOutside(toggleExitLoginBtnRef, () => { |
| | |
| | | padding: 16px 12px; |
| | | gap: 8px; |
| | | cursor: pointer; |
| | | &:hover { |
| | | background-color: rgba(0, 0, 0, 0.04); |
| | | } |
| | | } |
| | | } |
| | | } |