From e24a07c0fbc1ce84b9497da897077b42d7276bed Mon Sep 17 00:00:00 2001 From: wangh <9483> Date: Thu, 30 Nov 2023 18:11:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=95=86=E5=9F=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pagesHome/PointsMall/PointsMall.vue | 83 +++++++++++++------ .../pagesHome/Pointsdetail/Pointsdetail.vue | 22 ++--- .../pagesHome/editress/editress.vue | 40 +++++++-- .../pagesHome/goodsDetails/goodsDetails.vue | 66 ++++++++++++--- gasStation-uni/pagesHome/order/order.vue | 51 ++++++++++-- 5 files changed, 200 insertions(+), 62 deletions(-) diff --git a/gasStation-uni/pagesHome/PointsMall/PointsMall.vue b/gasStation-uni/pagesHome/PointsMall/PointsMall.vue index 5d217c377..2a8ceda66 100644 --- a/gasStation-uni/pagesHome/PointsMall/PointsMall.vue +++ b/gasStation-uni/pagesHome/PointsMall/PointsMall.vue @@ -47,27 +47,42 @@ - - {{item.categoryName}} - + + 全部 + + + + {{item.categoryName}} + - + - + - {{item.goodsName}} + {{item.giftName}} - + - 1992 + + {{item.exchangePoints}} + + + ¥{{item.exchangeAmount}} + + + + 库存:{{item.remainingInventory === -1?"不限":item.remainingInventory}} - 库存190 立即兑换 @@ -84,18 +99,19 @@ diff --git a/gasStation-uni/pagesHome/Pointsdetail/Pointsdetail.vue b/gasStation-uni/pagesHome/Pointsdetail/Pointsdetail.vue index 2837a9efd..d6ea275c2 100644 --- a/gasStation-uni/pagesHome/Pointsdetail/Pointsdetail.vue +++ b/gasStation-uni/pagesHome/Pointsdetail/Pointsdetail.vue @@ -8,9 +8,10 @@ - {{setting.signInRules}} - + + + @@ -22,19 +23,19 @@ data() { return { title: '', - setting:{} - + setting: {}, + pointsRules: '', } }, components: { }, - created() { - this.getSettings(); + async onLoad() { + await this.getSettings(); }, methods: { - + // 根据店铺查询积分设置 // business/integral/integralSettings/getSettings getSettings() { @@ -42,10 +43,9 @@ url: '/business/integral/integralSettings/getByStoreId', method: 'get', // params:data - }).then((res)=>{ - if(res.code == 200){ + }).then((res) => { + if (res.code == 200) { this.setting = res.data - console.log("hello world",res) } }) }, @@ -58,9 +58,11 @@