|
|
@@ -95,7 +95,8 @@ Page({ |
|
|
|
contentType: 0, |
|
|
|
page: 1,//查询商户优惠券page |
|
|
|
idList: [], |
|
|
|
mallList: "" |
|
|
|
mallList: "", |
|
|
|
jumpToIndex: false |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 显示分享弹框 |
|
|
@@ -298,9 +299,16 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
closeAlert() { |
|
|
|
this.setData({ |
|
|
|
showCardOffer: false |
|
|
|
}) |
|
|
|
if (this.data.jumpToIndex) { |
|
|
|
wx.switchTab({ |
|
|
|
url: '/pages/theme/index1/index', |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.setData({ |
|
|
|
showCardOffer: false |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
goback: function () { |
|
|
|
let this_ = this |
|
|
@@ -530,12 +538,16 @@ Page({ |
|
|
|
that.setData({ |
|
|
|
onshow: false |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if (dealOptions && (dealOptions.couponChannelId || dealOptions.couponIds)) { |
|
|
|
if (dealOptions.couponIds) { |
|
|
|
if (dealOptions.couponChannelId == "undefined") { |
|
|
|
this.setData({ |
|
|
|
couponIds: dealOptions.couponIds |
|
|
|
couponIds: dealOptions.couponIds, |
|
|
|
jumpToIndex: true |
|
|
|
}) |
|
|
|
that.getDetail(dealOptions.couponIds, 'notendclock'); |
|
|
|
// that.getCouponInfo(dealOptions.couponIds, dealOptions.tenantId) |
|
|
|
} else { |
|
|
|
that.getDetail(dealOptions.couponChannelId, 'notendclock'); |
|
|
|
} |
|
|
@@ -581,6 +593,18 @@ Page({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// getCouponInfo(couponId, mallTenantId) { |
|
|
|
// Http.get({ |
|
|
|
// url: config.api.couponInfo, |
|
|
|
// data: { |
|
|
|
// couponId: couponId, |
|
|
|
// mallTenantId: mallTenantId |
|
|
|
// } |
|
|
|
// }).then(res => { }).catch(err => { |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
getCouponPriceAndStock(couponChannelId) {//获取券价格与库存 |
|
|
|
Http.get({ |
|
|
|