1、使用方法
onShareAppMessage() {
return {
title: this.dataSource.content,
imageUrl: "",
path: ``
}
},
onShareTimeline() {
return {
title: "",
query:`id=${this.id}`,
imageUrl: ""
}
}
2、会出现的问题
想要判断是从朋友圈访问的还是普通分享访问的?
需要使用场景值进行判断。
onLoad(){
var scene = uni.getLaunchOptionsSync().scene;
if (scene == 1154) {
}
}