From 01413795feed90bf84afc4ceb520f52a6511cb6a Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期五, 26 七月 2024 11:36:20 +0800 Subject: [PATCH] 1 --- src/components/headNav/headNav.vue | 53 +++++++++++++++++++++++++++-------------------------- 1 files changed, 27 insertions(+), 26 deletions(-) diff --git a/src/components/headNav/headNav.vue b/src/components/headNav/headNav.vue index 37ff5c2..64c56dd 100644 --- a/src/components/headNav/headNav.vue +++ b/src/components/headNav/headNav.vue @@ -82,12 +82,9 @@ class="search-logo" @click="toggleSearch" :style="{ - backgroundColor: searchBg == true ? '#244A7B' : '#DA7A2B' + backgroundColor: searchBg == true ? '#244A7B' : '#DA7A2B', }" - style=" - background-color: #000; - border-radius: 50%; - " + style="background-color: #000; border-radius: 50%" ></view> </view> <el-dropdown trigger="click" @command="handleCommand"> @@ -178,32 +175,32 @@ type: String, default() { return "鏍囬"; - } + }, }, searchBg: { type: Boolean, default() { return true; - } + }, }, bg: { type: String, default() { return "/static/image/topBg.png"; - } + }, }, bg1: { type: String, default() { return "/static/image/line.png"; - } + }, }, idIndex: { type: String, default() { return "1"; - } - } + }, + }, }, data() { return { @@ -211,7 +208,7 @@ searchInput: "", // 鎼滅储妗嗚緭鍏ョ殑鍐呭 menuNav: false, dialogVisible: false, - isCommand: true + isCommand: true, }; }, methods: { @@ -236,13 +233,13 @@ if (res.confirm) { setTimeout(() => { uni.reLaunch({ - url: "/pages/Login/Login" + url: "/pages/Login/Login", }); }, 1500); } else if (res.cancel) { // console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷'); } - } + }, }); } // uni.navigateTo({ @@ -256,7 +253,7 @@ handleCommand(int) { if (int == 1) { uni.navigateTo({ - url: "/pages/changePassword/changePassword" + url: "/pages/changePassword/changePassword", }); } else if (int == 2) { uni.showModal({ @@ -273,40 +270,44 @@ //閫�鍑烘垚鍔燂紒骞惰烦杞埌鍏朵粬椤甸潰 this.$message.success("閫�鍑烘垚鍔�"); uni.reLaunch({ - url: "/pages/Login/Login" + url: "/pages/Login/Login", }); }); } else if (res.cancel) { // console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷'); } - } + }, }); } }, handleSelect(index) { if (index === "0") { uni.navigateTo({ - url: "/pages/index/index?id=" + 0 + url: "/pages/index/index?id=" + 0, }); } else if (index === "1") { uni.navigateTo({ - url: "/pages/character/index?id=" + 1 + url: "/pages/character/index?id=" + 1, }); } else if (index === "2") { uni.navigateTo({ - url: "/pages/inherit/index?id=" + 2 + url: "/pages/inherit/index?id=" + 2, }); } else if (index === "3") { uni.navigateTo({ - url: "/pages/academicGenres/index?id=" + 3 + url: "/pages/academicGenres/index?id=" + 3, }); } else if (index === "4") { uni.navigateTo({ - url: "/pages/territory/territory?id=" + 4 + url: "/pages/territory/territory?id=" + 4, }); } else if (index === "5") { uni.navigateTo({ - url: "/pages/TcmSystem/TcmSystem?id=" + 5 + url: "/pages/TcmSystem/TcmSystem?id=" + 5, + }); + } else if (index === "6") { + uni.navigateTo({ + url: "/pages/academicSchools/index", }); } }, @@ -322,13 +323,13 @@ if (this.searchInput.trim() !== "") { uni.navigateTo({ url: - "/pages/knowledgeBase/knowledgeBase?keyword=" + this.searchInput + "/pages/knowledgeBase/knowledgeBase?keyword=" + this.searchInput, }); } this.searchInput = ""; }); - } - } + }, + }, }; </script> -- Gitblit v1.9.1