//分享
$('.share').click(function (){
if(isMini){
console.log('跳转分享');
wx.miniProgram.navigateTo({
url:'/pages/share/share?id=' + my_id,
success:function (res) {
console.log('success',res);
},
fail:function (res) {
console.log('fail',res);
},
complete:function (res) {
console.log('complete',res);
}
})
}else{
}
})
如上,iOS和开发工具完美运行,安卓有时fail返回invokeMiniProgramAPI:permission denied;跪求发生原因和解决方案