<view class="container">
  <!-- logo -->
  <view class="flex-center phone_logo">
    <image src="{{iurl}}/miniapp/images/userinfo/phone_logo.png"></image>
  </view>

  <view class="fs30">
    <!-- 手机号码 -->
    <view class="flex-vertical phone">
      <image src="{{iurl}}/miniapp/images/userinfo/phone.png"></image>
      <block wx:if="{{inputxphone==0}}">
        <view class="inphone">{{mobile}}</view>
      </block>
      <block wx:else>
        <input bindinput="getphoneValue"  class="inphone" placeholder="输入新手机号" type="number" maxlength="11" value="{{change_phone}}" />
      </block>
    </view>

    <!-- 发送手机验证码 -->
    <view class="flex-vertical code">
      <image src="{{iurl}}/miniapp/images/userinfo/code.png"></image>
      <input placeholder="请输入验证码" bindinput="getCodeValue" type="number" maxlength="6" value="{{code}}" />
      <view class="flex-center Obtain">
        <block wx:if="{{getvcode.length>3}}">
          <view bindtap="Ver_phone">{{getvcode}}</view>
        </block>
        <block wx:else>
          <view>{{getvcode}}s</view>
        </block>
      </view>
    </view>
  </view>

  <!-- 提示语 -->
  <view class="Tips fs28">
    <view>温馨提示:</view>
    <view>1.更换手机号后下次可使用新手机号登录。
    </view>
    <view>3.收到验证码而非本人操作时请及时更改密码。
    </view>
  </view>

  <view class="flex-center go fs32">
    <block wx:if="{{inputxphone==0}}">
      <view class="flex-center lower" bindtap="ver_code">
        <view>下一步</view>
      </view>
    </block>
    <block wx:else>
      <navigator url="{{url}}" class="flex-center lower" bindtap="change_phone">
        <view>确定更换</view>
      </navigator>
    </block>
  </view>

</view>
<warn id="warn"></warn>