- 已关联微信公众号不能正常打开微信公众号文章!
webview 指向网页的链接。可打开关联的公众号的文章,其它网页需登录小程序管理后台配置业务域名。 已经关联微信公众号,但是无法正常访问! 报不能访问非业务域名,但是mp.weixin.qq.com这个域名我怎么添加到业务域名啊??? 咋解决? https://mp.weixin.qq.com/profile?src=3×tamp=1532070340&ver=1&signature=AQGl2gEmYWAYvHR2KG1N0QlID0KnCyB4zRQzgjeN6Mdbu9vAiruSbrbttlDFLcnozBVdduAxYcm4cDm-SXlTQQ==&new=1&key=185c49f4f0446215b8778add9dcca65e1af10c1816da979dd8738efc75e1dc59d45c3695ecd4f592e98cf1cd7750a954673dadc0dc94a2b1fe44c0a2d46b9f6e50bf399e7f0023eeff9131f799b2d52f&lang=zh_CN
2018-07-20 - login:fail Error: system error
使用个人小程序账户,调用登录接口wx.login 一直失败 前几天还是可以的。 login:fail Error: system error
2018-06-03 - 清除工具及手机授权数据失败
[图片] 清除工具及手机授权数据失败 Error: system error,Error: 系统错误,错误码:10015 [代码]wx.login({[代码][代码] [代码][代码]success: async (res) => {[代码][代码] [代码][代码]console.log(res);[代码][代码] [代码][代码]if[代码] [代码](res.code) {[代码][代码] [代码][代码]//发起网络请求[代码][代码] [代码][代码]const result = await auth.GetOpenID(res.code);[代码][代码] [代码][代码]const loginUD = {[代码][代码] [代码][代码]openId: result.OpenID,[代码][代码] [代码][代码]sessionKey: result.Session_Key,[代码][代码] [代码][代码]userD: loginDd.Data,[代码][代码] [代码][代码]OperationType: 2[代码][代码] [代码][代码]}[代码][代码] [代码][代码]// 写入缓存[代码][代码] [代码][代码]wepy.setStorageSync([代码][代码]'loginDa'[代码][代码], loginUD);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]写入缓存失败,这边程序就没有走下去
2018-06-03 - 上传文件接口打开调试模式才可以正常上传
- 上传文件接口打开调试模式才可以正常上传,关闭调试模式就没有成功 小程序开发工具上都可以正常上传图片,一预览或者上传代码体验,就不行了 - [代码]async photo() {[代码][代码] [代码][代码]const size = [代码][代码]this[代码][代码].pictures.length;[代码][代码] [代码][代码]if[代码] [代码](size >= 4) {[代码] [代码] [代码][代码]await Tips.alert([代码][代码]'最多选择四张图片'[代码][代码]);[代码][代码] [代码][代码]return[代码][代码];[代码][代码] [代码][代码]}[代码][代码] [代码][代码]const param = {[代码][代码] [代码][代码]count: 4,[代码][代码] [代码][代码]sizeType: [[代码][代码]'compressed'[代码][代码]][代码][代码] [代码][代码]};[代码][代码] [代码][代码]const tempFilePaths = await WxUtils.chooseImage(param, [代码][代码]this[代码][代码].maxSize);[代码][代码] [代码][代码]// this.Thumbnail = tempFilePaths;[代码][代码] [代码][代码]// var tempFilePaths = res.tempFilePaths;[代码][代码] [代码][代码]this[代码][代码].FilePaths = [];[代码][代码] [代码][代码]const imglista = [];[代码] [代码] [代码][代码]wx.uploadFile({[代码][代码] [代码][代码]url: [代码][代码]'url'[代码][代码], [代码][代码]//仅为示例,非真实的接口地址[代码][代码] [代码][代码]filePath: tempFilePaths[0],[代码][代码] [代码][代码]name: [代码][代码]'file'[代码][代码],[代码][代码] [代码][代码]formData: {[代码][代码] [代码][代码]'user'[代码][代码]: [代码][代码]'test'[代码][代码] [代码][代码]},[代码][代码] [代码][代码]success: (res) => {[代码][代码] [代码][代码]// Tips.alert(res.data);[代码][代码] [代码][代码]var[代码] [代码]data = JSON.parse(res.data);[代码][代码] [代码][代码]var[代码] [代码]imgTitle = data.Data.FileName;[代码][代码] [代码][代码]var[代码] [代码]SPath = data.Data.ServerPath;[代码][代码] [代码][代码]this[代码][代码].FilePaths.push(SPath);[代码][代码] [代码][代码]this[代码][代码].imglist.push(imgTitle);[代码] [代码] [代码][代码]// console.log(this.imglist);[代码] [代码] [代码][代码]const pictures = [代码][代码]this[代码][代码].FilePaths.map(item => {[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]temp: [代码][代码]true[代码][代码],[代码][代码] [代码][代码]url: item[代码][代码] [代码][代码]}[代码][代码] [代码][代码]});[代码][代码] [代码][代码]this[代码][代码].pictures = [代码][代码]this[代码][代码].pictures.concat(pictures);[代码][代码] [代码][代码]if[代码] [代码]([代码][代码]this[代码][代码].pictures.length == 4) {[代码][代码] [代码][代码]this[代码][代码].photos = [代码][代码]false[代码][代码];[代码] [代码] [代码][代码]}[代码][代码] [代码][代码]this[代码][代码].$apply();[代码][代码] [代码][代码]// Tips.modal(data.Message);[代码][代码] [代码][代码]}[代码][代码] [代码][代码]// , fail: (res) => {[代码][代码] [代码][代码]// Tips.alert(res);[代码][代码] [代码][代码]// }, complete: (res) => {[代码][代码] [代码][代码]// Tips.alert(res);[代码][代码] [代码][代码]// }[代码] [代码] [代码][代码]});[代码] [代码] [代码][代码]}[代码]- - [图片]
2018-06-03