水滴兑换模块开发完成

This commit is contained in:
2023-07-27 16:27:08 +08:00
parent 454b6963a4
commit a0399a8944
14 changed files with 986 additions and 887 deletions

View File

@@ -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({