<!--pages/login/phone_login/phone_login.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='phone_img' src='/images/phone.png'></image>
        <input placeholder='请输入您的手机号' bindinput='inputPhone' maxlength='11' focus='true' type='number' placeholder-class='placeholder'></input>
      </view>
      <view class='input_view'>
        <image class='password_img' src='/images/password.png'></image>
        <input name="phoneCode" placeholder="请输入验证码" type='number' focus="{{varificatCodeFocus}}"  placeholder-class='placeholder' bindinput="inputVerificatrCode" />
        <view bindtap='{{vcodeFlag?"getVerificateCode":""}}' class='varification_button {{vcodeFlag?"getCode":"getCode_disable"}}'>{{vcode_button_text}}</view>
        <view class="errorMsg"><text>{{errorMsg}}</text></view>
      </view>
    </view>
    <button class='{{checkCode?"login_button":"login_button_disable"}}' bindtap="{{checkCode?'loginUser':''}}" >登录</button>
    <view class="other_button">
      <text class='account_login'  bindtap='goToAccountLogin'>账户密码登录</text>
      <text class='register_view'  bindtap='goToRegister'>注册账户</text>
      <text class='forget_view'  bindtap='goToForget'>忘记密码</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>
</view>
