return new Promise((resolve,reject)=>{
this.$api.share.create(this.model.id).then(res => {
if (res.statusCode == 200 || res.statusCode == 201) {
console.log('share api success');
this.sharePath = '/pages/share/view?id='+ res.data.id;
}
console.log('sharePath '+this.sharePath);
let config = {
title: this.model.title,
imageUrl: this.model.thumbnail,
path:this.sharePath,
content: this.model.content,
success:(e)=>{
console.log("share success e: " + JSON.stringify(e));
}
};
console.log(config);
resolve(config);
});
});
这样返回分享参数,微信小程序可以正常,百度小程序却不行。是uniAPP多问题还是百度小程序的问题,有人遇见过吗
awebcer (作者)
试了原生百度小程序,不支持,哎,难搞
2023-04-27 13:43