<view class="content-pad">
  <view class="cell">
    <view class="cell-title">手机号</view>
    <view class="cell-value">
    <input class="cell-value-input" value="{{loginName}}" maxlength="11" placeholder="请输入新的手机号" type="number" bindinput="loginNameInput"/>
    </view>
  </view>
  <view class="cell">
    <view class="cell-title">短信验证码</view>
    <view class="cell-value flex">
      <input class="cell-value-input" value="{{code}}" maxlength="6" placeholder="请输入验证码" type="number" bindinput="codeInput"/>
      <button class="cell-value-button {{time<=0?'button-warn':'button-gray'}}" bindtap="sendCode">{{time<=0?'发送验证码':'已发送('+time+'s)'}}</button>
    </view>
  </view>
</view>
<view class="content-pad">
  <button class='button button-radius button-subtitle' bindtap='submit'>完成绑定</button>
</view>
<view class="baby-tip">
  <image src='https://img.bbztx.com/miniProgram/challengeFamily/loginLogo.png'></image>
</view>