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   },