[更新]
This commit is contained in:
@@ -19,16 +19,8 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad (options) {
|
||||
// 判断是否由分享进入
|
||||
// if(options.type == "share"){
|
||||
// // 写入缓存
|
||||
// this.setData({
|
||||
// parentId: options.parent_id
|
||||
// })
|
||||
// }
|
||||
|
||||
// 获取二维码
|
||||
wx.$api.user.publicCode('mini', 'recharge', 'pages/userStored/userStored?type=share').then(res=>{
|
||||
wx.$api.user.publicCode('mini', 'recharge', 'pages/userStored/userStored?type=shareStored').then(res=>{
|
||||
this.setData({
|
||||
qrcode : res.data.qrcode,
|
||||
userInfo : res.data.user
|
||||
@@ -173,19 +165,19 @@ Page({
|
||||
onShareAppMessage(){
|
||||
return {
|
||||
title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
imageUrl: "",
|
||||
path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=share",
|
||||
}
|
||||
path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=shareStored",
|
||||
imageUrl: "/static/img/storedCode.png"
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享朋友圈
|
||||
*/
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=share",
|
||||
imageUrl: ''
|
||||
}
|
||||
}
|
||||
// onShareTimeline: function () {
|
||||
// return {
|
||||
// title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
// path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=shareStored",
|
||||
// imageUrl: "/static/img/storedCode.png"
|
||||
// }
|
||||
// }
|
||||
})
|
||||
Reference in New Issue
Block a user