From ecd81752593af269d92454426b673de6ace9b9ad Mon Sep 17 00:00:00 2001 From: ronger Date: Wed, 2 Jun 2021 19:24:28 +0800 Subject: [PATCH] =?UTF-8?q?:poop:=20=E6=90=9C=E7=B4=A2=E6=A1=86=20UI=20?= =?UTF-8?q?=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/layouts/pc/header.vue | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/components/layouts/pc/header.vue b/components/layouts/pc/header.vue index a9c546c..478cede 100644 --- a/components/layouts/pc/header.vue +++ b/components/layouts/pc/header.vue @@ -14,6 +14,16 @@ 首页 专题 作品集 + + + 淘宝店铺 + + + + + + + @@ -27,8 +37,7 @@ trigger="click" v-model="showPopover" @show="handleShowPopover"> - + @@ -82,9 +91,9 @@ placement="bottom" width="400" trigger="click" - v-model="showPopover"> - + v-model="showPopover" + @show="handleShowPopover"> + @@ -181,7 +190,7 @@ export default { }, handleShowPopover() { setTimeout(function () { - document.getElementById("searchInput").focus() + document.getElementsByName("searchInput")[0].focus() }, 500); }, handleSelectMenu(item) { @@ -201,7 +210,9 @@ export default { break; case 'github': window.open("https://github.com/rymcu"); - return false; + break; + case 'taobao': + window.open("https://rymcu.taobao.com?utm_source=rymcu.com"); break; default: _ts.$router.push(