From a646a2bad4aeee6e65f96ba07e603d92f8677eba Mon Sep 17 00:00:00 2001 From: xiaoguang Date: Thu, 12 May 2022 17:57:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E7=A7=92=E6=9D=80?= =?UTF-8?q?=E5=95=86=E5=93=81=E6=95=B0=E6=8D=AE=E5=8F=A6=E5=A4=96=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/img/common/icon-jump.png | Bin 0 -> 904 bytes pages/index/index.vue | 37 ++++++- pages/index/module/Pick.vue | 190 ++++++++++++++++++++++++++++++++ pages/index/module/Seckill.vue | 17 ++- 4 files changed, 237 insertions(+), 7 deletions(-) create mode 100644 assets/img/common/icon-jump.png create mode 100644 pages/index/module/Pick.vue diff --git a/assets/img/common/icon-jump.png b/assets/img/common/icon-jump.png new file mode 100644 index 0000000000000000000000000000000000000000..ef54b8dd35e732f4e2410c4a2b45f65fbefb2576 GIT binary patch literal 904 zcmV;319$w1P)Px&LPKWjbOAjm}o85n)uO5 zWC=Yp*jTcgSV|a#*;tss9}v+>K6b8o@6F84&MrG28{)L@y}9R|d+xdS5mJ79`^rTO z58VOLEr2TkO#m46j~@cO2hbLn8#p@tM4x~BN%Lz;+QhR{Q_#F803HI+lJ@)S9)OSV zwD+{Wv(xWPUjS@Qz5@7J`v=?rkqwU=;B=qt@B3nnjZzuVMxk*Tj5z?)?KAY6tlj5l zf#?Z9-MY05&~^Xd3b?fx1WaOqjjQ9J!XkhNYAy+kg-+4&Z6k zC=;Ck%+gmyJ2%K`RtE_jKg(vRu0Zf6S{D8tFf1e?0h!ZeugQ%FDIDXqD0)6&@m0&u{^nKa_%yZQncZvZS22c^d} zL-ww?Rq8J<2sS3GAl{HA$)^5O8c&M+_jWs(4#AvnyU9#Ms^LHYXbAz5vGb%<}_|>Mo3cxeQ`4Q$`w5j;C1%i2wOG e?ErF4&+~tA4gN-Mbo6fk0000 + + diff --git a/pages/index/module/Seckill.vue b/pages/index/module/Seckill.vue index 945211a..ed3cd54 100644 --- a/pages/index/module/Seckill.vue +++ b/pages/index/module/Seckill.vue @@ -76,6 +76,10 @@ export default { type: Object, default: () => ({}), }, + list: { + Type: Object, + default: () => [], + }, current: { type: Number, default: 0, @@ -91,17 +95,22 @@ export default { }; }, watch: { + list: { + deep: true, + immediate: true, + handler(val) { + if (val.length > 0) { + this.setCarouselData(val); + } + }, + }, data: { deep: true, immediate: true, handler(val) { const { - activityProductListVO: products, activityTimeVO: { activityStartTime, activityEndTime }, } = val; - if (products && products.length > 0) { - this.setCarouselData(products); - } this.setTimerInterval({ startTime: activityStartTime, endTime: activityEndTime,