Browse Source

消费卡购买成功页面添加微信转赠入口

tags/富茂链客4.1.0
刘晖 6 years ago
parent
commit
5e28c439b6
5 changed files with 25 additions and 19 deletions
  1. +1
    -1
      config/config.js
  2. +1
    -1
      pages/coupon/detail/index.js
  3. +21
    -15
      pages/order/detail/index.js
  4. +1
    -1
      pages/order/detail/index.wxml
  5. +1
    -1
      project.config.json

+ 1
- 1
config/config.js View File

@@ -227,7 +227,7 @@ var config = {
cardAccept:'/couponOrder/cardAccept'
},
weapp: {
AppId: "wx453ae0d37f3550d0"
AppId: "wxea71200db93d756b"
},
ErrorCode: {
NICK_NOT_AUTH: 11004,


+ 1
- 1
pages/coupon/detail/index.js View File

@@ -430,7 +430,7 @@ Page({
wx.navigateTo({
url: `/pages/order/detail/index?orderId=${
orderId
}`
}&cardIf=true`
});
} else if (type == 'free') {
wx.navigateTo({


+ 21
- 15
pages/order/detail/index.js View File

@@ -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: "加载中"
});


+ 1
- 1
pages/order/detail/index.wxml View File

@@ -79,5 +79,5 @@
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
</view>
</view>
<!-- <button type="primary" open-type="share" wx:if="{{order.type == 100 && supportTransfer==1}}" class='support-tansfer'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button> -->
<button type="primary" open-type="share" wx:if="{{order.type == 100 && supportTransfer==1&&cardIf}}" class='support-tansfer'><image src="{{weixinTitle}}" class='share' mode="widthFix"></image>转赠给微信好友</button>
</view>

+ 1
- 1
project.config.json View File

@@ -13,7 +13,7 @@
},
"compileType": "miniprogram",
"libVersion": "2.0.9",
"appid": "wx453ae0d37f3550d0",
"appid": "wxea71200db93d756b",
"projectname": "C",
"isGameTourist": false,
"condition": {


Loading…
Cancel
Save