1     <view class="phone-wrap">
2           <input maxlength="30" class='phone phone-password' password="{{password}}" placeholder='请输入登录密码' bindinput="bindPass" value="{{passValue}}"></input>
3           <view class='form-image-wrap' style="" catchtap="bindEye">
4             <image class="form-image" src='/images/eye.png'></image>
5           </view>
6 
7         </view>
 1 data:{
 2    password:true,
 3    passValue:'',
 4 }
 5 /点击页码显示隐藏
 6   bindEye(){
 7     this.setData({
 8       password:!this.data.password
 9     })
10   },

 

相关文章:

  • 2021-11-19
  • 2021-08-16
  • 2022-12-23
  • 2021-12-04
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2021-12-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-03-15
相关资源
相似解决方案