ios微信7.0.15 jssdk config失败,安卓和iOS7.0.13都是正常的
getShareInfo(params).then(res=>{
console.log( "getShareInfo === " + JSON.stringify(res) )
if(res.res && res.res.code === 10000 && res.body&& res.body.appid){
// util.showToast( " res.body.url=== " +res.body.url,60000);
wx.config({
debug: true,
appId: res.body.appid +'', // 必填,公众号的唯一标识
timestamp: res.body.timestamp+'', // 必填,生成签名的时间戳,精确到秒
nonceStr: res.body.nonceStr+'', // 必填,生成签名的随机串
signature: res.body.signature+'', // 必填,签名
jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage','updateAppMessageShareData','updateTimelineShareData','chooseImage', 'uploadImage','downloadImage','chooseWXPay','checkJsApi', 'scanQRCode','hideMenuItems','hideOptionMenu','getLocation']
})
wx.error(function(res){
// util.showToast("错误信息== error " + res.errMsg,6000);
console.log('in error '+ JSON.stringify(res) );
});
wx.ready(()=>{
console.log("in wx.ready")
wx.hideMenuItems({
menuList: ["menuItem:openWithQQBrowser","menuItem:openWithSafari","menuItem:share:QZone","menuItem:share:weiboApp"] // 要隐藏的菜单项,只能隐藏“传播类”和“保护类”按钮
});
})
}
})