水滴兑换模块开发完成
This commit is contained in:
@@ -18,7 +18,7 @@ Page({
|
||||
paySuccess : false, // 兑换成功显示
|
||||
maxcoupon : '', //拥有兑换券数量
|
||||
coupon_qty : 1, //兑换券数量
|
||||
checked : false//兑换券
|
||||
checked : false, //兑换券
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
@@ -169,6 +169,10 @@ Page({
|
||||
* 产品确认购买
|
||||
*/
|
||||
buyTap() {
|
||||
this.setData({
|
||||
disabled: false
|
||||
})
|
||||
|
||||
wx.showLoading({
|
||||
title: '加载中...',
|
||||
})
|
||||
@@ -181,9 +185,6 @@ Page({
|
||||
coupon_qty : this.data.coupon_qty
|
||||
}
|
||||
wx.$api.mall.mallAffirm(data).then(res => {
|
||||
this.setData({
|
||||
disabled: false
|
||||
})
|
||||
wx.hideLoading()
|
||||
|
||||
if(res.data.can_pay) {
|
||||
@@ -201,7 +202,8 @@ Page({
|
||||
mask:true,
|
||||
success: function () {
|
||||
that.setData({
|
||||
paySuccess: true
|
||||
paySuccess: true,
|
||||
disabled: true
|
||||
})
|
||||
setTimeout(()=>{
|
||||
wx.redirectTo({
|
||||
|
||||
Reference in New Issue
Block a user