Преглед изворни кода

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

tags/富茂链客4.1.0
刘晖 пре 6 година
родитељ
комит
5e28c439b6
5 измењених фајлова са 25 додато и 19 уклоњено
  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 Прегледај датотеку

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


+ 1
- 1
pages/coupon/detail/index.js Прегледај датотеку

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


+ 21
- 15
pages/order/detail/index.js Прегледај датотеку

@@ -25,7 +25,8 @@ Page({
showPage:false, showPage:false,
showButton:false, showButton:false,
cardDetail:null, cardDetail:null,
supportTransfer:''
supportTransfer:'',
cardIf:false
}, },


phone: function (e) { 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) { powerDrawer: function (e) {
let that = this; let that = this;
console.log(e) console.log(e)
@@ -140,6 +141,11 @@ Page({
this.setData({ this.setData({
orderId: options.orderId orderId: options.orderId
}); });
if(options.cardIf){
this.setData({
cardIf:true
})
}
wx.showLoading({ wx.showLoading({
title: "加载中" title: "加载中"
}); });


+ 1
- 1
pages/order/detail/index.wxml Прегледај датотеку

@@ -79,5 +79,5 @@
<image src="{{newUrl}}" class='gameimg' mode='widthFix'></image> <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
</view> </view>
</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> </view>

+ 1
- 1
project.config.json Прегледај датотеку

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


Loading…
Откажи
Сачувај