<u-col span="12">{{ article.location }}</u-col>
//分享到朋友圈
onShareTimeline(res) {
const datas = JSON.stringify(this.articleInfos);
return {
title: this.share.title,
path: `/pages/content/index?datas=${datas}`,
imageUrl: this.share.imageUrl
};
},
//分享好友
onShareAppMessage(res) {
const datas = JSON.stringify(this.articleInfos);
return {
title: this.share.title,
path: `/pages/content/index?datas=${datas}`,
imageUrl: this.share.imageUrl
};
},
//vuex数据
...mapState({ articleInfos: state => state.allArticleInformation })
computed: {
...mapState({ articleInfos: state => state.allArticleInformation }) // 将 state 中的 buildingInformation 对象映射到组件中
},
//加载
onLoad(options) {
this.article = this.articleInfos;
if (Object.keys(options).length !== 0) {
let datasInfo = JSON.parse(options.datas);
this.allArticleInformations(datasInfo);
this.article = datasInfo;
console.log(this.article);
if (this.article) {
this.list3 = this.article?.fileURLs || [
'https://7265-rentinfo-7g40m9m580751b3e-1316990769.tcb.qcloud.la/ab5e510f6d3078fec4ec10973c1acc9.jpg?sign=065bc73c56446b477546950deb2155f0&t=1680368722'
];
} else {
}
}
}
请问为什么分享到微信朋友圈数据直接是白屏, 分享给好友能用, 大概问题找到了, 微信小程序朋友圈无法接收到传值问题,请问该怎么写能接受