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

小程序之输入框文本内容图片显示

 

相关文章:

  • 2021-06-05
  • 2022-01-02
  • 2022-12-23
  • 2021-04-05
  • 2021-06-20
  • 2022-12-23
  • 2021-12-04
  • 2021-11-17
猜你喜欢
  • 2022-01-12
  • 2022-12-23
  • 2022-01-19
  • 2021-12-05
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
相关资源
相似解决方案