From fb3120d818688cf76be2b4c51d0ed66ac3f22475 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 2 Oct 2024 11:46:50 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E3=80=91=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E=EF=BC=9A?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B4=BB=E5=8A=A8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 13 +- pages/activity/point/list.vue | 115 +-- .../s-point-block/s-point-block.vue | 4 +- .../components/s-point-card/s-point-card.vue | 718 ++++++++---------- 4 files changed, 390 insertions(+), 460 deletions(-) diff --git a/pages.json b/pages.json index 88ac0f4a..1d433ed6 100644 --- a/pages.json +++ b/pages.json @@ -652,7 +652,18 @@ "title": "秒杀活动", "group": "营销活动" } - } + }, + { + "path": "point/list", + "style": { + "navigationBarTitleText": "积分商城" + }, + "meta": { + "sync": true, + "title": "积分商城", + "group": "营销活动" + } + } ] } ], diff --git a/pages/activity/point/list.vue b/pages/activity/point/list.vue index 8b1e1bf9..243c5dd3 100644 --- a/pages/activity/point/list.vue +++ b/pages/activity/point/list.vue @@ -1,77 +1,80 @@ diff --git a/sheep/components/s-point-block/s-point-block.vue b/sheep/components/s-point-block/s-point-block.vue index dd1ab3b9..9de154cf 100644 --- a/sheep/components/s-point-block/s-point-block.vue +++ b/sheep/components/s-point-block/s-point-block.vue @@ -91,7 +91,7 @@ :topRadius="data.borderRadiusTop" :bottomRadius="data.borderRadiusBottom" :titleWidth="330 - marginLeft - marginRight" - @click="sheep.$router.go('/pages/goods/seckill', { id: item.activityId })" + @click="sheep.$router.go('/pages/goods/point', { id: item.activityId })" @getHeight="calculateGoodsColumn($event, 'left')" > @@ -121,7 +121,7 @@ :topRadius="data.borderRadiusTop" :bottomRadius="data.borderRadiusBottom" :titleWidth="330 - marginLeft - marginRight" - @click="sheep.$router.go('/pages/goods/seckill', { id: item.activityId })" + @click="sheep.$router.go('/pages/goods/point', { id: item.activityId })" @getHeight="calculateGoodsColumn($event, 'right')" > diff --git a/sheep/components/s-point-card/s-point-card.vue b/sheep/components/s-point-card/s-point-card.vue index c7380de5..d3111343 100644 --- a/sheep/components/s-point-card/s-point-card.vue +++ b/sheep/components/s-point-card/s-point-card.vue @@ -1,458 +1,374 @@ + + + // 动态更新 property + watch(() => props.property, (newVal) => { + state.property = { ...state.property, ...newVal }; + }, { immediate: true, deep: true }); + const { layoutType, btnBuy } = state.property || {}; + const { marginLeft, marginRight } = state.styles || {}; - -- Gitee From da4cd2238e20e1b3c9986f2aa3305177cb703d5c Mon Sep 17 00:00:00 2001 From: puhui999 Date: Wed, 2 Oct 2024 12:15:53 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E5=96=84=E3=80=91=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E=EF=BC=9A?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B4=BB=E5=8A=A8=E5=88=97=E8=A1=A8=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=88=87=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/point/list.vue | 45 ++++++++++++++++--- .../components/s-point-card/s-point-card.vue | 43 ++++++++---------- 2 files changed, 58 insertions(+), 30 deletions(-) diff --git a/pages/activity/point/list.vue b/pages/activity/point/list.vue index 243c5dd3..5aee96fd 100644 --- a/pages/activity/point/list.vue +++ b/pages/activity/point/list.vue @@ -1,6 +1,18 @@