this.jsLog('1click_wx_up');
wx.checkJsApi({
jsApiList: ['chooseImage','uploadImage'],
success: function(res) {
self.jsLog('2_1checkwxApi',JSON.stringify(res));
},
fail:function(res){
self.jsLog('2_2checkwxApi_fail',JSON.stringify(res));
},
complete:function(e){
self.jsLog('2_3checkwxApi_com',JSON.stringify(e));
}
});
this.jsLog('3wx_choose',wx.chooseImage,len);
wx.chooseImage({
count: 1,
sizeType: ['original', 'compressed'],
sourceType: ['album', 'camera'],
success: function(res) {
self.jsLog('4_1wxchoose_suc',JSON.stringify(res));
}
},
fail: function(e) {
toast.inform("微信选择图片失败" + e.errMsg);
self.jsLog('4_2wxchoose_fail',e.errMsg);
},
complete:function(e){
self.jsLog('4_3wxchoose_complete',e.errMsg);
}
});
1click_wx_up
3wx_choose,function(e){M("chooseImage"略
也就是在该手机上,wx.checkJsApi wx.chooseImage 都没执行
请看下是什么原因。试了下不是wxconfig的问题,config如果出错会执行这两个api
用户点击时间:09:56:06
微信js版本为1.6.0