预期:用户输入密码,可以通过点击按钮来切换显示和隐藏密码的状态(按钮应该是小眼睛睁眼和闭眼,我这里随意用了两张图代替)。canvas如何导入缩放的图片,让它自适应.。
模拟器上有效,真机上(ios 11.2.2,iphone7,微信6.6.1)无效。查看vconsole中input的password属性,后面true false正确切换但是组件没有刷新,即文本没有显示出来。

这是input,通过show来控制文案是否显示

这是两个按钮


本文来自微信小程序开发者论坛 微信小程序工厂 http://www.xcxgc.com 转载请保留。
微信小程序开发者回答:
精***:
input焦点问题, 你点击显示按钮的时候,键盘会自动下去, 当键盘上去的时候就会显示密码了!
本文网址:http://www.91bianli.com/weixinxiaochengxu/58030.html