<view wx:if="{{user != null}}" class="content">
  <!-- 表单验证码 -->
  <form wx:if="{{login_type_status == 1}}" bindsubmit="formSubmit">
    <input type="number" placeholder="输入手机号码" maxlength="11" name="mobile" bindinput="bind_key_input" class="mobile" />
    <view class="code clearfix">
      <input type="number" placeholder="验证码" maxlength="4" name="verify" class="verify" />
      <button type="default" hover-class="none" size="mini" loading="{{verify_loading}}" disabled="{{verify_disabled}}" bindtap="verify_send" class="verify-sub {{verify_disabled ? 'sub-disabled' : ''}}">{{verify_submit_text}}</button>
    </view>
    <button type="default" formType="submit" hover-class="none" plain loading="{{form_submit_loading}}" disabled="{{form_submit_loading}}" class="submit {{form_submit_loading ? 'my-btn-gray' : 'my-btn-default'}}">确认绑定</button>
  </form>

  <!-- 确认绑定方式 -->
  <view wx:if="{{login_type_status == 0}}" class="tc confirm-container">
    <image class="login-logo" src="{{(user.avatar || null) == null ? '/images/default-user.png' : user.avatar}}" mode="widthFix" />
    <view wx:if="{{(user.nickname || null) != null}}" class="cr-666 nickname">{{user.nickname}}</view>
    <view class="submit-list">
      <button wx:if="{{common_user_is_onekey_bind_mobile == 1}}" type="warn" class="mobile-submit" open-type="getPhoneNumber" bindgetphonenumber="confirm_phone_number_event">获取手机号码一键登录</button>
      <button type="warn" class="mobile-submit" plain="{{true}}" bindtap="confirm_verify_event">验证码登录</button>
    </view>
  </view>
</view>

<!-- 获取用户信息授权 -->
<view wx:else class="user-login tc">
  <view>确认登录授权，为您提供更优质的服务</view>
  <view class="margin-top-sm padding-bottom-xxl">
    阅读并同意 《<text class="cr-main" bindtap="agreement_event" data-value="userregister">服务协议</text>》 与 《<text class="cr-main" bindtap="agreement_event" data-value="userprivacy">隐私政策</text>》
  </view>
  <view class="margin-top-xxl">
    <navigator open-type="navigateBack" hover-class="none" class="dis-inline margin-right-lg">
      <button type="default" size="mini" class="cr-888 br" hover-class="none">取消</button>
    </navigator>
    <button type="primary" size="mini" bindtap="get_user_info_event" class="margin-left-lg">同意授权登录</button>
  </view>
</view>
