diff --git a/common/common.js b/common/common.js index 7272fe7..f01e588 100755 --- a/common/common.js +++ b/common/common.js @@ -163,7 +163,10 @@ const func = { "token": app.globalData.token }, method: "Post", - data: JSON.stringify({"couponId": couponId}), + data: { + couponId: couponId, + token: app.globalData.token + }, success: function (res) { resolve(res) }, diff --git a/pages/coupons/details/index.js b/pages/coupons/details/index.js index cb36cc9..64c261d 100644 --- a/pages/coupons/details/index.js +++ b/pages/coupons/details/index.js @@ -20,6 +20,7 @@ Page({ wx.showLoading({ title: '加载中...', }) + console.log(this.data.couponId) Common.orderSave(''+this.data.couponId) .then(res => { wx.hideLoading();