From 862d0e21522842e19cb3ebbb07c944631b4aec12 Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Mon, 16 May 2022 18:04:54 +0800 Subject: [PATCH 01/23] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=96=B0=E5=BC=80=E6=B5=8F=E8=A7=88=E5=99=A8=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/module/header/HeaderCategory.vue | 10 +++------- layouts/module/header/HeaderInfoBar.vue | 8 ++++---- layouts/module/header/index.vue | 13 ++++++++++--- pages/index/module/Banner.vue | 15 ++++++++------- pages/index/module/Pick.vue | 15 ++++++++------- pages/index/module/Seckill.vue | 6 +----- pages/seckill/index.vue | 2 +- 7 files changed, 35 insertions(+), 34 deletions(-) diff --git a/layouts/module/header/HeaderCategory.vue b/layouts/module/header/HeaderCategory.vue index 51e7d3f..ea9810b 100644 --- a/layouts/module/header/HeaderCategory.vue +++ b/layouts/module/header/HeaderCategory.vue @@ -125,13 +125,9 @@ export default { onCategoryClick(id, levelType) { this.categroyVisible = false; this.categroyTwoVisible = false; - this.$router.push({ - path: "/goods/list", - query: { - id, - levelType, - }, - }); + window.open( + `${location.origin}/goods/list?id=${id}&levelType=${levelType}` + ); }, // 一级分类是否可见 handleCategoryChange(val) { diff --git a/layouts/module/header/HeaderInfoBar.vue b/layouts/module/header/HeaderInfoBar.vue index 5c24306..f3e3593 100644 --- a/layouts/module/header/HeaderInfoBar.vue +++ b/layouts/module/header/HeaderInfoBar.vue @@ -138,10 +138,10 @@ export default { handleCommandClick(event) { switch (event) { case MENU_VALUE.PERSONAL: - this.$router.push("/account/home"); + window.open(`${location.origin}/account/home`); break; case MENU_VALUE.ADDRESS: - this.$router.push("/account/address"); + window.open(`${location.origin}/account/address`); break; case MENU_VALUE.LOGON_OUT: this.$store.dispatch("logout"); @@ -153,7 +153,7 @@ export default { if (!this.$isLoginValidate()) { return; } - this.$router.push(`/account/${path}`); + window.open(`${location.origin}/account/${path}`); }, }, }; @@ -162,7 +162,7 @@ export default { .header-info-bar__dropdown, .header-info-bar__popover { .popper__arrow { - display: none; + display: none !important; } } diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index 2706262..daf0ba9 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -30,7 +30,7 @@ src="~/assets/img/layout/icon-search-sticky.png" @click="$router.push('/goods/list')" /> -
+
+ @keyup.enter.native="onSearch" + > +
@@ -175,7 +179,7 @@ export default { onTabSelect(value) { this.tabPath = value; this.searchContent = ""; - this.$router.push({ path: value }); + window.open(`${location.origin}${value}`); }, onSearch() { this.$router.push({ @@ -185,6 +189,9 @@ export default { }, }); }, + onOpenCartPage() { + window.open(`${location.origin}/cart`); + }, }, }; diff --git a/pages/index/module/Banner.vue b/pages/index/module/Banner.vue index fa02d41..b8bfb2c 100644 --- a/pages/index/module/Banner.vue +++ b/pages/index/module/Banner.vue @@ -9,12 +9,12 @@