[更新]
This commit is contained in:
@@ -22,15 +22,12 @@ Page({
|
||||
*/
|
||||
onLoad (options) {
|
||||
this.setData({
|
||||
rightId: options.rightid,
|
||||
rightId : options.rightid,
|
||||
parentId: options.parent_id
|
||||
})
|
||||
|
||||
// 判断是否由分享进入
|
||||
// if(options.type == "share"){}
|
||||
|
||||
// 获取二维码
|
||||
wx.$api.user.publicCode('mini', 'goods', 'pages/userGoods/goodsDet/goodsDet?rightid=' + options.rightid + '&type=share').then(res=>{
|
||||
wx.$api.user.publicCode('mini', 'goods', 'pages/userGoods/goodsDet/goodsDet?rightid=' + options.rightid + '&type=shareGoods').then(res=>{
|
||||
this.setData({
|
||||
qrcode : res.data.qrcode,
|
||||
userInfo : res.data.user
|
||||
@@ -203,19 +200,19 @@ Page({
|
||||
onShareAppMessage(){
|
||||
return {
|
||||
title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
imageUrl: this.data.pageShare,
|
||||
path : "/pages/userGoods/goodsDet/goodsDet?parent_id=" + this.data.userInfo.user_id + "&rightid=" + this.data.rightId + "&type=share",
|
||||
path : "/pages/userGoods/goodsDet/goodsDet?parent_id=" + this.data.userInfo.user_id + "&rightid=" + this.data.rightId + "&type=shareGoods",
|
||||
imageUrl: this.data.pageShare
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享朋友圈
|
||||
*/
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
path : "/pages/userGoods/goodsDet/goodsDet?parent_id=" + this.data.userInfo.user_id + "&rightid=" + this.data.rightId + "&type=share",
|
||||
imageUrl: this.data.pageShare
|
||||
}
|
||||
}
|
||||
// onShareTimeline: function () {
|
||||
// return {
|
||||
// title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
// path : "/pages/userGoods/goodsDet/goodsDet?parent_id=" + this.data.userInfo.user_id + "&rightid=" + this.data.rightId + "&type=shareGoods",
|
||||
// imageUrl: this.data.pageShare
|
||||
// }
|
||||
// }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user