个人案例
- TSforAC
与蓝牙4.0模块通信
蓝牙应用扫码体验
- 机务笔记
民航飞机相关信息,机务快速排故参考
机务笔记扫码体验
https://developers.weixin.qq.com/s/KZ4aWAme7r50
"pageOrientation": "landscape" 报错,无法预览- 当前 Bug 的表现(可附上截图) 调式基础库:2.5.0 app.json "window": { "pageOrientation": "landscape" } 或者 page.json { "pageOrientation": "landscape" } 预览报错 [图片] 文档: [图片]
2019-01-21我也有同样的问题,手机:小米5,2.1.1库。win10系统 wxml [代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cells weui-cells_after-title"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell weui-cell_input"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell__bd"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]type[代码][代码]=[代码][代码]"text"[代码] [代码]class[代码][代码]=[代码][代码]"weui-input"[代码] [代码]bindinput[代码][代码]=[代码][代码]"bindKeyInput"[代码] [代码]value[代码][代码]=[代码][代码]"{{inputValue}}"[代码] [代码]/>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cells weui-cells_after-title"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell weui-cell_input"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell__bd"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]type[代码][代码]=[代码][代码]"text"[代码] [代码]class[代码][代码]=[代码][代码]"weui-input"[代码] [代码]bindinput[代码][代码]=[代码][代码]""[代码] [代码]value[代码][代码]=[代码][代码]"{{inputValue0}}"[代码] [代码]/>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码] [代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cells weui-cells_after-title"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell weui-cell_input"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"weui-cell__bd"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]input[代码] [代码]type[代码][代码]=[代码][代码]"text"[代码] [代码]class[代码][代码]=[代码][代码]"weui-input"[代码] [代码]bindinput[代码][代码]=[代码][代码]""[代码] [代码]value[代码][代码]=[代码][代码]"{{test}}"[代码] [代码]/>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码]JS: [代码]data: {[代码][代码] [代码][代码]inputValue: [代码][代码]'B-'[代码][代码],[代码][代码] [代码][代码]inputValue0: [代码][代码]""[代码][代码],[代码][代码] [代码][代码]test: [代码][代码]""[代码][代码]},[代码] [代码]bindKeyInput: [代码][代码]function[代码][代码](e) {[代码][代码] [代码][代码]var[代码] [代码]val = e.detail.value[代码][代码] [代码][代码]var[代码] [代码]code = e.detail.keyCode[代码][代码] [代码][代码]var[代码] [代码]valLength = val.length[代码][代码] [代码][代码]if[代码] [代码](valLength < 2) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]inputValue: [代码][代码]'B-'[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](valLength > 2 && valLength < 6) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]test: [代码][代码]'暂停任务'[代码] [代码]+ code,[代码][代码] [代码][代码]inputValue0: val[代码][代码] [代码][代码]})[代码][代码] [代码][代码]} [代码][代码]else[代码] [代码]if[代码] [代码](valLength == 6) {[代码][代码] [代码][代码]this[代码][代码].setData({[代码][代码] [代码][代码]test: [代码][代码]'开始任务'[代码] [代码]+ code[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码]},[代码]还有开发工具里没有detail.keyCode。
安卓输入框 input 组件<input type='text' id='create-input' value='{{name}}' bindinput='getInputName' maxlength='10'></input> 安卓 input 组件, 回退删除的时候, getInputName 里面的参数, e.detail.value 为空, 导致判断失误, 而输入框明明有内容
2018-06-28