1     <view class="phone-wrap">
2           <input class='phone phone-number' placeholder='请输入手机号码' maxlength='20' value="{{phoneValue}}" bindinput="bindPhone">
3           </input>
4           <view hidden="{{phoneValue==''}}" class='form-image-wrap' style="" catchtap="catchClose">
5             <image class="form-image" src='/images/close.png'></image>
6           </view>
7         </view>
 1 data:{
 2  phoneValue:''
 3 
 4 }
 5  bindPhone(e){
 6     let value = e.detail.value
 7     apiname.rePhone(value)
 8     this.setData({
 9       phoneValue :value
10     })
11   },