From 186b108e883e6ca885e0fd6924f0946da0ef0856 Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Wed, 11 May 2022 22:08:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E7=A7=92?= =?UTF-8?q?=E6=9D=80=E6=A8=A1=E5=9D=97=E6=B7=BB=E5=8A=A0=E5=80=92=E8=AE=A1?= =?UTF-8?q?=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/default.vue | 9 ++++- layouts/module/header/index.vue | 24 +++++++++++-- pages/index/module/Seckill.vue | 60 +++++++++++++++++++++++++++++---- pages/seckill/index.vue | 26 ++++++++++++-- pages/seckill/module/TabBar.vue | 6 ++-- 5 files changed, 110 insertions(+), 15 deletions(-) diff --git a/layouts/default.vue b/layouts/default.vue index 26e8b66..a050cd4 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -10,7 +10,8 @@
@@ -45,6 +46,12 @@ export default { isHomePage() { return this.$route.path === "/"; }, + isHideBarLinePage() { + return ["/", "/seckill"].includes(this.$route.path); + }, + isHideSeckillPage() { + return this.$route.path === "/seckill"; + }, showCategroyTab() { return !CATEGROY_HIDE_PAGES.some((reg) => { return reg.test(this.$route.path); diff --git a/layouts/module/header/index.vue b/layouts/module/header/index.vue index 525cd51..e81305e 100644 --- a/layouts/module/header/index.vue +++ b/layouts/module/header/index.vue @@ -2,7 +2,10 @@
-