phone.wxml 1.0 KB

1234567891011121314
  1. <view class="content flex-column flex-align-center">
  2. <image src="/images/phone_0{{status+1}}.png"></image>
  3. <text style="margin-bottom: 56rpx;" wx:if="{{ status == 0 }}">已绑定手机{{phone}}</text>
  4. <text style="margin-bottom: 56rpx;" wx:if="{{ status == 1 }}">请输入新的手机号码</text>
  5. <text style="margin-bottom: 56rpx;" wx:if="{{ status == 2 }}">绑定成功</text>
  6. <block wx:if="{{ status < 2 }}">
  7. <input class="number border-radius" value="{{phoneVal}}" type="number" maxlength="11" placeholder="{{ status == 0 ? '请输入手机号' : '请输入新的手机号' }}" bindinput="onChangePhone" />
  8. <view class="code border-radius flex-align-center">
  9. <input value="{{codeVal}}" type="number" maxlength="6" class="flex1" placeholder="请输入验证码" bindinput="onChangeCode" />
  10. <text bindtap="getCode">{{ c1 || '发送验证码' }}</text>
  11. </view>
  12. <view class="btn border-radius flex-center" bindtap="onCheck">{{status == 0 ? '验证' : '确认'}}</view>
  13. </block>
  14. </view>