- 无法调出授权框那就把文档更新一下吧,别误人子弟了唉
https://developers.weixin.qq.com/miniprogram/dev/api/open-api/authorize/wx.authorize.html 这个文档改下吧,不能调用就改了吧
2021-01-14 - 调用chooseImage拍出来的照片无法在本地显示
[图片] [代码]chooseimage:[代码][代码]function[代码][代码](){[代码][代码] [代码][代码]var[代码] [代码]_this = [代码][代码]this[代码][代码];[代码][代码] [代码][代码]wx.chooseImage({[代码][代码] [代码][代码]count:1,[代码][代码] [代码][代码]sizeType:[[代码][代码]'original'[代码][代码]],[代码][代码] [代码][代码]sourceType:[[代码][代码]'camera'[代码][代码]],[代码][代码] [代码][代码]success:[代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]var[代码] [代码]path=res.tempFilePaths[0];[代码][代码] [代码][代码]_this.setData({[代码][代码] [代码][代码]tempFilePaths: path[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.uploadFile({[代码][代码] [代码][代码]url: [代码][代码]'https://xxxx'[代码][代码], //仅为示例,非真实的接口地址[代码][代码] [代码][代码]filePath: path,[代码][代码] [代码][代码]name: [代码][代码]'file'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]var[代码] [代码]data = res.data[代码][代码] [代码][代码]console.log(data.state);[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail:[代码][代码]function[代码][代码](e){[代码][代码] [代码][代码]console.log(e);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码]
2017-11-14