From 5e28c439b6eb352c540a866ca2a7eb6399eb24c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=99=96?= Date: Thu, 21 Feb 2019 11:39:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E8=B4=B9=E5=8D=A1=E8=B4=AD=E4=B9=B0?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E8=BD=AC=E8=B5=A0=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.js | 2 +- pages/coupon/detail/index.js | 2 +- pages/order/detail/index.js | 36 ++++++++++++++++++++--------------- pages/order/detail/index.wxml | 2 +- project.config.json | 2 +- 5 files changed, 25 insertions(+), 19 deletions(-) diff --git a/config/config.js b/config/config.js index a55403e..6dce31a 100755 --- a/config/config.js +++ b/config/config.js @@ -227,7 +227,7 @@ var config = { cardAccept:'/couponOrder/cardAccept' }, weapp: { - AppId: "wx453ae0d37f3550d0" + AppId: "wxea71200db93d756b" }, ErrorCode: { NICK_NOT_AUTH: 11004, diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js index 60f8803..9a3a0cb 100644 --- a/pages/coupon/detail/index.js +++ b/pages/coupon/detail/index.js @@ -430,7 +430,7 @@ Page({ wx.navigateTo({ url: `/pages/order/detail/index?orderId=${ orderId - }` + }&cardIf=true` }); } else if (type == 'free') { wx.navigateTo({ diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js index a8fe6e1..75e87c9 100644 --- a/pages/order/detail/index.js +++ b/pages/order/detail/index.js @@ -25,7 +25,8 @@ Page({ showPage:false, showButton:false, cardDetail:null, - supportTransfer:'' + supportTransfer:'', + cardIf:false }, phone: function (e) { @@ -54,20 +55,20 @@ Page({ }) }) }, - // onShareAppMessage: function (res) { - // let _this = this; - // return { - // title: '领取卡', - // path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + this.data.order.productId + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate, - // imageUrl: this.data.order.coverImg, - // success: function (res) { - // // 转发成功 - // }, - // fail: function (res) { - // // 转发失败 - // } - // } - // }, + onShareAppMessage: function (res) { + let _this = this; + return { + title: '领取卡', + path: '/pages/index/index?couponChannelId=' + this.data.order.couponChannelId + '&cuserId=' + this.data.order.cuserId + '&couponId=' + this.data.order.productId + '&coverImg=' + this.data.order.coverImg + '&userName=' + this.data.userName + '&avatarUrl=' + this.data.avatarUrl + '&couponOrderId=' + this.data.order.couponOrderId + '&updateDate=' + this.data.order.updateDate, + imageUrl: this.data.order.coverImg, + success: function (res) { + // 转发成功 + }, + fail: function (res) { + // 转发失败 + } + } + }, powerDrawer: function (e) { let that = this; console.log(e) @@ -140,6 +141,11 @@ Page({ this.setData({ orderId: options.orderId }); + if(options.cardIf){ + this.setData({ + cardIf:true + }) + } wx.showLoading({ title: "加载中" }); diff --git a/pages/order/detail/index.wxml b/pages/order/detail/index.wxml index cfc1d73..05b03a6 100644 --- a/pages/order/detail/index.wxml +++ b/pages/order/detail/index.wxml @@ -79,5 +79,5 @@ - + \ No newline at end of file diff --git a/project.config.json b/project.config.json index 33eca38..4e30ca0 100644 --- a/project.config.json +++ b/project.config.json @@ -13,7 +13,7 @@ }, "compileType": "miniprogram", "libVersion": "2.0.9", - "appid": "wx453ae0d37f3550d0", + "appid": "wxea71200db93d756b", "projectname": "C", "isGameTourist": false, "condition": {