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

拼团分享链接修改

tags/富茂链客4.1.0
刘晖 пре 6 година
родитељ
комит
ed7d371649
2 измењених фајлова са 24 додато и 6 уклоњено
  1. +1
    -3
      pages/joinFrDpell/index.js
  2. +23
    -3
      pages/spellDetail/index.js

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

@@ -222,9 +222,7 @@ Page({
/**
* 拼团订单
*/
if (orderGroupId == 0) {
data.orderGroupId = orderGroupId
}
data.orderGroupId = orderGroupId
var that = this;
Http.post({
url: config.api.checkPhoneStatus,


+ 23
- 3
pages/spellDetail/index.js Прегледај датотеку

@@ -30,7 +30,9 @@ Page({
this.setData({
paramData:options
})
this.getDetail(options)
this.getDetail(options);
// 关闭来自于左上角的分享
wx.hideShareMenu()
},
/**
* 拼团状态字段转换
@@ -158,7 +160,25 @@ Page({
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {

// paramData
onShareAppMessage: function (res) {
if (res.from === 'button') {
console.log(res, 3333333333333333333333)
// 来自页面内转发按钮
let _this = this;
return {
title: '拼团',
path: `/pages/index/index?couponId=${this.data.couponId}&orderGroupId=${this.data.orderGroupId}&couponChannelId=${this.data.couponChannelId}`,
imageUrl: this.data.data.coverImg,
success: function (res) {
// 转发成功
},
fail: function (res) {
// 转发失败
}
}
} else {
console.log(res, 444444444444444444)
}
}
})

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