diff --git a/config/config.js b/config/config.js index 3a5e8fe..16cbb28 100755 --- a/config/config.js +++ b/config/config.js @@ -163,7 +163,12 @@ var config = { /** * 提交问卷 */ - answerQuestion:"/wxQuestion/answerQuestion" + answerQuestion:"/wxQuestion/answerQuestion", + /** + * + 获取打折商户列表 + */ + discountMerchantList:"/mall/discountMerchantList" }, weapp: { diff --git a/pages/couponorder/detail/index.js b/pages/couponorder/detail/index.js index 01c4792..18d5fb3 100644 --- a/pages/couponorder/detail/index.js +++ b/pages/couponorder/detail/index.js @@ -150,11 +150,11 @@ Page({ }); }) }, - phone: function () { + phone: function (e) { let that = this; - if (that.data.data.merchantLinkPhone) { + if (e.currentTarget.dataset.merchantlinkphone) { wx.makePhoneCall({ - phoneNumber: that.data.data.merchantLinkPhone + phoneNumber: e.currentTarget.dataset.merchantlinkphone }); } } diff --git a/pages/couponorder/detail/index.wxml b/pages/couponorder/detail/index.wxml index d969019..e7a3b65 100644 --- a/pages/couponorder/detail/index.wxml +++ b/pages/couponorder/detail/index.wxml @@ -39,17 +39,22 @@ 适用门店 -