From bb4cd7749f4a14a3ba11ddf79dcab247d79cac5c Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Thu, 12 May 2022 16:08:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E7=A7=92=E6=9D=80?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=B4=BB=E5=8A=A8=E5=B7=B2=E7=BB=93=E6=9D=9F?= =?UTF-8?q?/=E5=B7=B2=E5=BC=80=E5=A7=8B=E5=88=A4=E6=96=AD=E4=BB=A5?= =?UTF-8?q?=E5=8F=8A=E9=A1=B5=E9=9D=A2=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/seckill/index.vue | 60 +++++++++++++++++++------ pages/seckill/module/DialogEnd.vue | 71 ++++++++++++++++++++++++++++++ pages/seckill/module/TabBar.vue | 9 ++-- 3 files changed, 121 insertions(+), 19 deletions(-) create mode 100644 pages/seckill/module/DialogEnd.vue diff --git a/pages/seckill/index.vue b/pages/seckill/index.vue index f008ab7..1190e06 100644 --- a/pages/seckill/index.vue +++ b/pages/seckill/index.vue @@ -9,9 +9,9 @@
@@ -21,9 +21,9 @@ >
@@ -85,6 +85,7 @@ 确定 + @@ -308,7 +340,7 @@ export default { .seckill-products-wrap { width: 24%; background: #ffffff; - margin: 15px 0 60px 0; + margin-bottom: 16px; cursor: pointer; &:not(:nth-child(4n)) { margin-right: calc(4% / 3); diff --git a/pages/seckill/module/DialogEnd.vue b/pages/seckill/module/DialogEnd.vue new file mode 100644 index 0000000..bfe5ab1 --- /dev/null +++ b/pages/seckill/module/DialogEnd.vue @@ -0,0 +1,71 @@ + + + diff --git a/pages/seckill/module/TabBar.vue b/pages/seckill/module/TabBar.vue index b7feb2f..4ede728 100644 --- a/pages/seckill/module/TabBar.vue +++ b/pages/seckill/module/TabBar.vue @@ -6,7 +6,7 @@ @click="onTabClick(item.id)" class="sckill-header-tabbar__item flex flex-middle flex-center" :class="{ - 'sckill-header-tabbar__item--active': item.id === value, + 'sckill-header-tabbar__item--active': item.id === tabId, }" > {{ item.timeName }} @@ -24,7 +24,7 @@ export default { type: Array, default: () => [], }, - value: { + tabId: { type: Number, default: 0, }, @@ -32,11 +32,10 @@ export default { methods: { onTabClick(id) { // 点击同一个tab - if (id === this.value) { + if (id === this.tabId) { return; } - this.$emit("input", id); - this.$emit("tab-click"); + this.$emit("tab-change", id); }, }, };