Merge remote-tracking branch 'origin/master'

This commit is contained in:
齐天大圣 2023-12-05 11:22:02 +08:00
commit a318f0ca31
2 changed files with 34 additions and 8 deletions

View File

@ -57,12 +57,19 @@
}) })
}, },
getData() { getData() {
uni.showLoading({
title: '加载中'
});
request({ request({
url: 'business/marketingActivity/activeExchange/applet', url: 'business/marketingActivity/activeExchange/applet',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
console.log(res); console.log(res);
this.activityList = res.data if (res.code == 200) {
this.activityList = res.data
uni.hideLoading();
}
}) })
}, },
getactvity(url) { getactvity(url) {

View File

@ -58,12 +58,19 @@
}, },
methods: { methods: {
getData(name) { getData(name) {
uni.showLoading({
title: '加载中'
});
if (name == '消费有礼活动') { if (name == '消费有礼活动') {
request({ request({
url: '/business/marketingActivity/activeConsumption/appletList', url: '/business/marketingActivity/activeConsumption/appletList',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
this.datas = res.data if (res.code == 200) {
this.datas = res.data
uni.hideLoading();
}
}) })
} }
if (name == '折扣营销活动') { if (name == '折扣营销活动') {
@ -71,7 +78,10 @@
url: '/business/marketingActivity/activeDiscount/appletList', url: '/business/marketingActivity/activeDiscount/appletList',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
this.datas = res.data if (res.code == 200) {
this.datas = res.data
uni.hideLoading();
}
}) })
} }
if (name == '推荐有礼活动') { if (name == '推荐有礼活动') {
@ -79,7 +89,10 @@
url: '/business/marketingActivity/activeRecommend/applet', url: '/business/marketingActivity/activeRecommend/applet',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
this.datas = res.data if (res.code == 200) {
this.datas = res.data
uni.hideLoading();
}
}) })
} }
if (name == '新人有礼活动') { if (name == '新人有礼活动') {
@ -87,7 +100,10 @@
url: '/business/marketingActivity/activeNewlyweds/applet', url: '/business/marketingActivity/activeNewlyweds/applet',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
this.datas = res.data if (res.code == 200) {
this.datas = res.data
uni.hideLoading();
}
}) })
} }
if (name == '满减营销活动') { if (name == '满减营销活动') {
@ -95,7 +111,10 @@
url: '/business/marketingActivity/activeFullminus/appletList', url: '/business/marketingActivity/activeFullminus/appletList',
method: 'get', method: 'get',
}).then(res => { }).then(res => {
this.datas = res.data if (res.code == 200) {
this.datas = res.data
uni.hideLoading();
}
}) })
} }