Commit 5655bd75 by 高淑倩

限量精品

parent cc380989
...@@ -52,9 +52,28 @@ wxService.page({ ...@@ -52,9 +52,28 @@ wxService.page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
this.initIntegralCouponList() this.initIntegralProductList()
// this.initIntegralCouponList()
},
// 查询所有生效中的活动 限量精品
initIntegralProductList() {
wx.showLoading({
title: '加载中'
})
wxService.get(`/coupon/pointsRedemptionProductSetting/getAllValid`).then(res => {
if (res) {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
this.setData({
integralCouponList: data.reverse()
})
}
}
}).finally(() => {
wx.hideLoading();
})
}, },
// 积分兑换优惠券列表 // 积分兑换优惠券列表
initIntegralCouponList() { initIntegralCouponList() {
wx.showLoading({ wx.showLoading({
...@@ -73,7 +92,6 @@ wxService.page({ ...@@ -73,7 +92,6 @@ wxService.page({
// }).finally(() => { // }).finally(() => {
// wx.hideLoading(); // wx.hideLoading();
// }) // })
// 查询所有生效中的活动
wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => { wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment