diff --git a/assets/img/common/icon-jump.png b/assets/img/common/icon-jump.png new file mode 100644 index 0000000..ef54b8d Binary files /dev/null and b/assets/img/common/icon-jump.png differ diff --git a/pages/index/index.vue b/pages/index/index.vue index 53842f2..4ce5936 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -12,27 +12,58 @@ + + 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,