之前论坛里的,不太适用了,显示有点问题,没检查分享出去是不是下级
- 首页分享 在 生成的小程序 里的:pages/index/index.js
加在 onShareAppMessage: function () {...},
后面
onShareTimeline() {
return {
title: this.shareInfo.title,
imageUrl: this.shareInfo.img,
path: "/pages/index/index?id=" + this.data.id + "&spid=" + this.data.uid,
}
},
2、商品单页分享 在 生成的小程序 里的:pages/goods_details/index.js
加在 onShareAppMessage: function () {...},
后面
onShareTimeline(){
var t = this;
return t.$set(t, "actionSheetHidden", !t.actionSheetHidden), (0, s.userShare)(), {
title: t.storeInfo.store_name || "",
imageUrl: t.storeInfo.image || "",
path: "/pages/goods_details/index?id=" + t.id + "&spid=" + t.uid
}
},
新手,有改的不对的地方请指正
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}