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": {