From 0d7caa02e846d99bc07ad73979be7c4e01ba1564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Thu, 4 Jan 2024 12:12:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gasStation-uni/pagesHome/Activity/index.vue | 5 +++++ gasStation-uni/pagesHome/activeIn/index.vue | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/gasStation-uni/pagesHome/Activity/index.vue b/gasStation-uni/pagesHome/Activity/index.vue index db4ab51a7..e57141404 100644 --- a/gasStation-uni/pagesHome/Activity/index.vue +++ b/gasStation-uni/pagesHome/Activity/index.vue @@ -52,6 +52,9 @@ export default { data() { return { + query: { + storeId: '' + }, title: '', activityList: [], } @@ -60,6 +63,7 @@ }, onShow() { + this.query.storeId = uni.getStorageSync("storeId"); this.getData(); }, methods: { @@ -75,6 +79,7 @@ request({ url: 'business/marketingActivity/activeExchange/applet', method: 'get', + params: this.query }).then(res => { console.log(res); if (res.code == 200) { diff --git a/gasStation-uni/pagesHome/activeIn/index.vue b/gasStation-uni/pagesHome/activeIn/index.vue index cc41d8355..e10921e65 100644 --- a/gasStation-uni/pagesHome/activeIn/index.vue +++ b/gasStation-uni/pagesHome/activeIn/index.vue @@ -190,6 +190,9 @@ export default { data() { return { + query: { + storeId: '' + }, oilName: [], title: '', datas: [], @@ -200,6 +203,7 @@ }, onLoad(option) { + this.query.storeId = uni.getStorageSync("storeId"); this.title = option.name console.log(option.name); this.getData(option.name); @@ -224,6 +228,7 @@ request({ url: '/business/marketingActivity/activeConsumption/appletList', method: 'get', + params: this.query }).then(res => { if (res.code == 200) { this.datas = res.data, @@ -236,6 +241,7 @@ request({ url: '/business/marketingActivity/activeDiscount/appletList', method: 'get', + params: this.query }).then(res => { if (res.code == 200) { this.datas = res.data @@ -247,6 +253,7 @@ request({ url: '/business/marketingActivity/activeRecommend/applet', method: 'get', + params: this.query }).then(res => { if (res.code == 200) { this.datas = res.data @@ -258,6 +265,7 @@ request({ url: '/business/marketingActivity/activeNewlyweds/applet', method: 'get', + params: this.query }).then(res => { if (res.code == 200) { this.datas = res.data @@ -269,6 +277,7 @@ request({ url: '/business/marketingActivity/activeFullminus/appletList', method: 'get', + params: this.query }).then(res => { if (res.code == 200) { this.datas = res.data @@ -280,6 +289,7 @@ request({ url: '/business/marketingActivity/cardValue/appletList', method: 'get', + params: this.query }).then(res => { if (res.code == 200) { this.datas = res.data