- Wi-Fi接口无errCode返回
小程序连接指定Wi-Fi时,startWifi 、connectWifi 等接口均未返回 errCode,导致无法对对应的情况作出反馈
2018-03-05 - 1、Forgot to add page route in app.json.
[图片] 今天打开小程序,什么都没改,预览一下就报错了
2018-03-05 - 分包加载
使用了分包加载,总包小于4M,单个分包小于2M 本地代码 2794KB, 上周可以上传,今天上传提示源码包超出最大限制 调试基础库1.91
2018-01-29 - picker mode = region 在真机上无法弹出选择区域
picker mode = region 真机(安卓,ios)上不能正常呼出选择区,报错如图 [图片] [图片] [代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"address-item"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"address-title"[代码] [代码]style[代码][代码]=[代码][代码]"color: {{shopColor.color2}}"[代码][代码]>选择地区</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]picker[代码] [代码]class[代码][代码]=[代码][代码]"picker-box"[代码] [代码]mode[代码][代码]=[代码][代码]"region"[代码] [代码]value[代码][代码]=[代码][代码]"{{region}}"[代码] [代码]bindchange[代码][代码]=[代码][代码]"bindRegionChange"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"picker"[代码][代码]>[代码][代码] [代码][代码]{{region[0]}}{{region[1]}}{{region[2]}}[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]picker[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]/**[代码][代码] [代码][代码]* 省市区选择[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]bindRegionChange: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]region: e.detail.value[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码]
2018-01-10 - 表单提交后能保持软键盘打开状态吗
目前一个聊天功能,发送消息后软键盘关闭了, 修改了一下,发送消息成功后设置input focus为true,软件盘会先关闭再打开,体验不好
2017-11-01 - 【安卓】button的disabled在调起支付时失效
快速多次点击支付按钮 点击支付按钮后立即将button设置为disabled为true,在ios上生效了,在安卓上会多次调起支付 [代码]pay: [代码][代码]function[代码] [代码](e) {[代码][代码] [代码][代码]let self = [代码][代码]this[代码][代码] [代码][代码]self.setData({[代码][代码] [代码][代码]paydisabled: [代码][代码]true[代码][代码] [代码][代码]})[代码][代码] [代码][代码]wx.request({[代码][代码] [代码][代码]url: url,[代码][代码] [代码][代码]method: [代码][代码]'GET'[代码][代码],[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]if[代码] [代码](res.data.code == 0) {[代码][代码] [代码][代码]let timeStamp = res.data.data.timeStamp.toString()[代码][代码] [代码][代码]let nonceStr = res.data.data.nonceStr[代码][代码] [代码][代码]let pkg = res.data.data.pkg[代码][代码] [代码][代码]let signType = res.data.data.signType[代码][代码] [代码][代码]let paySign = res.data.data.paySign[代码][代码] [代码][代码]wx.requestPayment({[代码][代码] [代码][代码]'timeStamp'[代码][代码]: timeStamp,[代码][代码] [代码][代码]'nonceStr'[代码][代码]: nonceStr,[代码][代码] [代码][代码]'package'[代码][代码]: pkg,[代码][代码] [代码][代码]'signType'[代码][代码]: signType,[代码][代码] [代码][代码]'paySign'[代码][代码]: paySign,[代码][代码] [代码][代码]'success'[代码][代码]:[代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]self.setData({[代码][代码] [代码][代码]paydisabled: [代码][代码]false[代码][代码] [代码][代码]})[代码][代码] [代码][代码]// dosomething...[代码][代码] [代码][代码]},[代码][代码] [代码][代码]'fail'[代码][代码]:[代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]self.setData({[代码][代码] [代码][代码]paydisabled: [代码][代码]false[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]console.log(res.data.message)[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码]
2017-10-31 - 安卓图片预览点击图片会退出小程序
安卓图片预览点击图片会退出小程序
2017-10-09 - globalData数值问题
let app = getApp() [图片] [图片] 为什么这个number的值单独获取就变成1了
2017-09-20 - Page[pages/index/index] not found.
Page[pages/index/index] not found. May be caused by: 1. Forgot to add page route in app.json 2. Invoke page() in async task. 查了一下,好像早上出过这个问题,现在又出现了
2017-09-05 - 关于wx.checkSession(OBJECT)一直失败
[代码]if[代码] [代码](token) {[代码][代码] [代码][代码]wx.checkSession({[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](){[代码][代码] [代码][代码]console.log([代码][代码]'hasSession'[代码][代码])[代码][代码] [代码][代码]self.getHomeData()[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](res){[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]console.log([代码][代码]'noSession'[代码][代码])[代码][代码] [代码][代码]self.login();[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]{[代码][代码] [代码][代码]console.log([代码][代码]'noToken'[代码][代码])[代码][代码] [代码][代码]self.login();[代码][代码] [代码][代码]}[代码]Object {errMsg: "checkSession:fail session time out, need relogin"}errMsg: "checkSession:fail session time out, need relogin"__proto__: Object index.js [sm]:63 noSession 每次都是走fail,请问是什么原因
2017-08-31