<!--pages/register/register.wxml-->
<view class='main'>
  <image class='main_image' src='/images/login.png'></image>
  <view class='context'>
    <view class="logo_view"><image class="login_logo1" src="/images/login_logo1.png"></image></view>
    <view class="logo_view"><image class="login_logo2" src="/images/login_logo2.png"></image></view>
    <view class='context_input'>
      <!-- <view class='input_view'>
        <image class='account_img' src='/images/account.png'></image><div class="line"></div>
        <input placeholder='请设置账号' bindinput='inputAccount' maxlength='20' focus='true' placeholder-class='placeholder'></input>
      </view> -->

      <view class='input_view'>
        <image class='phone_img' src='/images/phone.png'></image><div class="line"></div>
        <input placeholder='请输手机号' maxlength='11' bindinput='inputPhone' type='number' placeholder-class='placeholder'></input>
      </view>  

      <view class='input_view'>
        <image class='phone_img' src='/images/vcode.png'></image><div class="line"></div>
        <input class="vcode_input" placeholder='请输入验证码' maxlength='6' bindinput='inputVcode' type='number' placeholder-class='placeholder'></input>
        <view class='{{vcodeFlag&&timeing?"vcode_button":"vcode_button_disable"}}' bindtap="{{vcodeFlag&&timeing?'sendVcode':''}}">{{vcode_button_text}}</view>
      </view>  

      <!-- <view class='input_view'>
        <image class='email_img' src='/images/email1.png'></image><div class="line"></div>
        <input placeholder='请输入邮箱' maxlength='48' bindinput='inputEmail' type='text' placeholder-class='placeholder'></input>
      </view>  -->
      <!-- 
        <view class='input_view'>
          <image class='man_img' src='/images/man.png'></image>
          <input placeholder='请选择性别' maxlength='16' bindinput='checkPassword' type='password' placeholder-class='placeholder'></input>
        </view> 
      -->  
    <!-- <view class='input_view'>
        <image class='carNum_img' src='/images/car.png'></image><div class="line"></div>
        <input placeholder='请输入车牌号' maxlength='8' bindinput='inputCarNum' type='text' placeholder-class='placeholder'></input>
      </view> -->
      <view class='input_view'>
        <image class='password_img' src='/images/password.png'></image><div class="line"></div>
        <input placeholder='请设置密码' maxlength='20' bindinput='inputPassword' type='password' placeholder-class='placeholder'></input>
      </view>
      <view class='input_view'>
        <image class='password_img' src='/images/password.png'></image><div class="line"></div>
        <input placeholder='请确认密码' maxlength='20' bindinput='inputRepassword' type='password' placeholder-class='placeholder'></input>
      </view>
    </view>
    <view class="errorMsg"><text wx:if="{{showMsg}}">{{errorMsg}}</text></view>
    <!--<button class='{{checkPass?"login_button":"login_button_disable"}}' bindtap="{{checkPass?'getUserProfile':''}}">-->
      <button class='login_button' bindtap="getUserProfile">
      注册
    </button>  
  
    <view style="width: 100%;text-align: center;padding:20rpx 0;display: flex;flex-direction: row;align-items:center;justify-content:center;">
        <van-checkbox value="{{ checked }}" icon-size="28rpx" bind:change="onCheckBoxChange" custom-class="vanCheckBox"></van-checkbox>
        <text style="display: inline;font-size:28rpx">已阅读并同意<text style="color:#00a8dc" bindtap="userAgreement">用户使用协议</text></text>
    </view>
    <view class='phone_call_class' bindtap="phoneCall">
          <span>联系客服:  {{servicetel}}</span>
  </view>
    <!-- <view style="width: 100%;margin-top:50rpx">
      <ad unit-id="adunit-8eb13875bcf592b0" ad-intervals="30"></ad>
    </view> -->
  </view>
  <van-toast id="van-toast" />
</view>