From a74a92455bcc1b279bb07de24b9a3a15c8a08b48 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Tue, 9 Apr 2019 21:41:38 +0800 Subject: [PATCH] =?UTF-8?q?[formId][=E6=96=B0=E5=A2=9E]:=E6=99=AE=E9=80=9A?= =?UTF-8?q?=E5=88=B8=E9=A2=86=E5=8F=96=E5=8F=8A=E8=B4=AD=E4=B9=B0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0formId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/coupon/detail/index.js | 10 ++++++++-- pages/coupon/detail/index.wxml | 22 ++++++++++++---------- 2 files changed, 20 insertions(+), 12 deletions(-) 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 @@ - - - - - - - - - +
+ + + + + + + + + +