- 小程序input组件聚焦状态下会隐藏末尾空格
<view style="display:flex;"> <input style="flex:1;text-align: right;" /> </view> input 组件在聚焦状态下,如果末尾有空格的情况下,ios 会隐藏后面空格,andriod 不会隐藏后面空格。
2019-09-18 - 对小程序审核结果有疑问
[图片] 请问这次审核拒绝,是需要我们改小程序内容 还是改服务类目还是改提审的功能页?
2018-09-10 - 远程调试bug
在执行wx.navigateTo 的时候,预览模式可以正常跳转,但是远程调试模式无法正常跳转,出现白屏加报错问题,报错如下:(andriod ios 手机都出现了如下情况,基础库版本为1.9.91) [图片] 运用了分包加载,页面跳转是从一个主包页面前往一个分包页面,路径确认书写正确。
2018-02-28 - 微信6.6.3 ios8.4.1 iPhone6s navigateBack白屏
BUG:体验者版本,苹果在调用navigateBack时出现白屏问题。 代码: let pages = getCurrentPages(); wx.navigateBack({ delta: pages.length - 1 }) 安卓表现正常,ios白屏,且右下角打开的vConsole消失。无法看到错误的日志。 后来用安卓机打印出pages.length-1 为6,页面栈共有7个页面。
2018-02-07 - 部分机型调用接口fail
很多手机都会调用这个接口,目前观测到如下两台手机会一直fail,其他手机都是正常调用成功。 机型1为:微信版本:6.5.16 手机:1+ A0001 andriod 版本:4.3 机型2为: 微信版本:6.5.13 手机:华为M7 andriod的版本4.4.2 这是体验者版本下,都添加了体验者权限。在调用接口时一直fail,请问能否解决这一兼容问题,代码如下: wx.showLoading({ title: '登录中', mask:true }) //下面的url是一个全局变量,这个已经打印出来过了。 wx.request({ url: url + '/userInfo/activeCodeLogin?phone=' + that.data.phone + '&activeCode=' + that.data.code, method: 'POST', header:{ 'request': 'wechat', 'content-type': 'application/json' }, success: function (res) { console.log(res) wx.hideLoading() if (res.data.httpCode === 200) { wx.setStorage({ key: 'userId', data: res.data.data.userId, }) wx.redirectTo({ url: '../changePassword/changePassword?type=2&activeCode=' + that.data.code + '&phoneNum=' + that.data.phone, }) } else { that.setData({ showAlert: true, //showmodal alertLoadInf: res.data.msg || '邀请码或手机号错误' //showmodal信息 }) } }, fail: function () { wx.hideLoading() that.setData({ showAlert: true, //showmodal alertLoadInf: '服务器错误,请稍后重试' //showmodal信息 }) }, complete:function(){ } })
2017-10-21 - 手机拍照上传图片闪退
在体验者版本,用真机实测的时候,部分机型(就是许多手机是可以正常执行的,以下代码也在编译器里运行正常)在拍照上传图片的时候会出现闪退的问题,请问有什么官方解决方案么? 测试手机:iphone6 微信版本6.5.18 代码如下:这是小程序一个页面的代码有两个拍照上传的区域,第一次的拍照上传不会有闪退,第二次的会直接闪退,两次都是拍照,不是相册。后来同一套代码,第二次的如果改成相册选图就不会闪退。 chooseImg(e){ var that = this; if (that.data.companyDisabled === 'yes'){ that.setData({ alertLoadInf: '状态为审核中或审核通过时,不可修改', //模拟弹出框 showAlert: true }) return; //阻止修改 } console.log(e) var imgTag = e.currentTarget.dataset.img; wx.chooseImage({ count: 1, sizeType: ['compressed'], sourceType: ['album', 'camera'], success: function (res) { // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 var tempFilePaths = res.tempFilePaths var isSuccess = false; if (imgTag == 1){ var sortId = 'A0007' }else{ var sortId = 'A0008' } wx.showLoading({ mask:true, title: '图片上传中', }) wx.uploadFile({ //上传图片 法人身份证相关 url: url + '/mediainfo/upLoadtoPic?sortId=' + sortId + '&businessKey=&relationId=&relationIdType=CUST_ID&type=', filePath: tempFilePaths[0], name: 'FILES', header: { 'cookie': 'jsid=' + wx.getStorageSync('session'), 'request': 'wechat', 'content-type': 'application/json' }, success: function (res) { console.log(res) if(JSON.parse(res.data).httpCode === 200){ wx.showToast({ title: '上传成功', duration:800 }) isSuccess = true; } else if (JSON.parse(res.data).httpCode === 314) { console.log('登录失效') wx.showToast({ title: '登录失效,请重登', mask: true, duration: 1000, icon: 'loading' }) setTimeout(function () { wx.navigateBack({ delta: 1 }) }, 1000) var pages = getCurrentPages(); pages[0].setData({ redirectPage: "login" }) return; }else{ wx.showToast({ title: '上传失败', duration: 800, icon:'loading' }) } }, fail:function(){ wx.showToast({ title: '上传失败', duration: 800, icon: 'loading' }) }, complete:function(){ // wx.hideLoading() if(isSuccess){ that.setData({ ['img' + imgTag]: tempFilePaths[0] }) console.log(that.data['img' + imgTag]) } } }) } }) }
2017-10-21