watch-input.wxml 1.4 KB

1
  1. <view class="main-list oBorder"><input class="main-input" type="{{_type}}" maxlength="{{maxlength}}" placeholder="{{placeholder}}" password="{{type==='password'&&!showPassword}}" data-event-opts="{{[['input',[['$emit',['input','$0'],['$event.target.value']]]],['blur',[['$emit',['blur','$event']]]],['focus',[['$emit',['focus','$event']]]],['longpress',[['$emit',['longpress','$event']]]],['confirm',[['$emit',['confirm','$event']]]],['tap',[['$emit',['click','$event']]]],['longtap',[['$emit',['longtap','$event']]]],['touchcancel',[['$emit',['touchcancel','$event']]]],['touchend',[['$emit',['touchend','$event']]]],['touchmove',[['$emit',['touchmove','$event']]]],['touchstart',[['$emit',['touchstart','$event']]]]]}}" value="{{value}}" bindinput="__e" bindblur="__e" bindfocus="__e" bindlongpress="__e" bindconfirm="__e" bindtap="__e" bindlongtap="__e" bindtouchcancel="__e" bindtouchend="__e" bindtouchmove="__e" bindtouchstart="__e"/><block wx:if="{{_isShowPass&&type==='password'&&!_isShowCode}}"><image data-event-opts="{{[['tap',[['showPass',['$event']]]]]}}" class="{{['img cuIcon',showPassword?'cuIcon-attention':'cuIcon-attentionforbid']}}" bindtap="__e"></image></block><block wx:if="{{_isShowCode&&!_isShowPass}}"><view data-event-opts="{{[['tap',[['setCode',['$event']]]]]}}" class="{{['vercode',[(second>0)?'vercode-run':'']]}}" bindtap="__e">{{getVerCodeSecond}}</view></block></view>