diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 4833f0a..965151f 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -254,10 +254,12 @@ Page({ */ gotopay: function(e) { let that = this; + let formId = e.detail.formId; var discount = e.currentTarget.dataset.discount; that.setData({ queueData: null, - showbutton: true + showbutton: true, + formId: formId }) Http.get({ url: config.api.getQuestion, @@ -587,22 +589,26 @@ Page({ var data = { couponChannelId: "" + that.data.couponChannelId, couponId: "" + that.data.couponId, + formId: "" + that.data.formId, press: true } } else if (discount == 'discount1') { var data = { couponChannelId: "" + that.data.couponChannelId, couponId: "" + that.data.couponId, + formId: "" + that.data.formId, press: false } } else if (that.data.couponChannelId == null) { var data = { - couponId: "" + that.data.couponId + couponId: "" + that.data.couponId, + formId: "" + that.data.formId, }; } else { var data = { couponChannelId: "" + that.data.couponChannelId, couponId: "" + that.data.couponId, + formId: "" + that.data.formId, } } /** diff --git a/pages/coupon/detail/index.wxml b/pages/coupon/detail/index.wxml index f79c968..5397c00 100644 --- a/pages/coupon/detail/index.wxml +++ b/pages/coupon/detail/index.wxml @@ -92,16 +92,18 @@ - - - - - - - - - +
+ + + + + + + + + +