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 @@