<view class="container">
  <view class="form-box">
    <view class="form-center">
      <image class="userinfo-avatar" src="/static/images/logo.png" mode="cover"></image>
    </view>
    <view class="form-center">
      <text wx:if="{{!isJms}}">服务人员接单系统-<text style="color:red">全职</text></text>
      <text wx:else>服务人员接单系统-<text style="color:red">兼职</text></text>
    </view>

    <view class="form-item">
      <!-- <view class="label" style="font-size:29rpx">登录方式</view> -->
      <view class="content" style="display:flex;justify-content: center;">
        <van-checkbox value="{{ isPro }}" wx:if="{{loginType!=2&&loginType!=1}}" bind:change="onProChange">验证码登录
        </van-checkbox>
        <van-checkbox value="{{ isUat }}" wx:if="{{loginType==1}}" style="margin-left: 30rpx;"
          bind:change="onUatChange">验证登录</van-checkbox>
        <van-checkbox value="{{ isJms }}" wx:if="{{loginType==2}}" style="margin-left: 30rpx;"
          bind:change="onJmsChange">服务者</van-checkbox>
      </view>
    </view>
    <block wx:if="{{!isJms}}">
      <!-- 自营登录 -->
      <view class="form-item">
        <view class="label" style="font-size:29rpx">手机号</view>
        <view class="content">
          <input class="username"  type="number" maxlength="11" value="{{mobile}}"
            bindinput="bindMobileInput" placeholder="请输入联系手机" /> <!--disabled="{{!isUat}}"-->
        </view>
      </view>

      <view class="form-item">
        <view class="label" style="font-size:29rpx">验证码</view>
        <view class="content" style="display:flex">
          <input class="captcha" style="width: 260rpx;"  type="number" value="{{captcha}}"
            bindinput="bindcaptchaInput" placeholder="验证码" auto-focus /><!--disabled="{{!isUat}}"-->
          <button class="form-item-getPhone"  bindtap="getCaptcha" disabled="{{disabled}}">{{countdown}}</button><!--disabled="{{!isUat}}"-->
        </view>
      </view>
    </block>

    <block wx:if="{{isJms}}">
      <!-- 加盟商登录 -->

      <view class="form-item">
        <view class="label" style="font-size:29rpx">手机号</view>
        <view class="content">
          <input class="username" type="number" maxlength="11" value="{{mobile}}" bindinput="bindJmsMobileInput"
            placeholder="请输入联系手机" />
        </view>
      </view>

      <view class="form-item">
        <view class="label" style="font-size:29rpx">验证码</view>
        <view class="content" style="display:flex">
          <input class="captcha" style="width: 260rpx;" type="number" value="{{jmsCaptcha}}"
            bindinput="bindJmsCaptchaInput" placeholder="验证码" />
          <button class="form-item-getPhone" bindtap="getJmsCaptcha" disabled="{{disabled}}">{{countdown}}</button>
        </view>
      </view>
    </block>
  </view>
  <block wx:if="{{!isJms}}">
    <view style="display:flex;text-align:center">
      <button class="register-btn" wx:if="{{!isUat}}" 
			bindtap="getPhoneNumber" >登录</button>
			 <!-- open-type="getPhoneNumber"  	bindgetphonenumber="getPhoneNumber"-->
      <button class="register-btn" type="warn" wx:else="" bindtap="getUserProfile">验证登录</button>
    </view>
    <!-- <view style="width: 100%;text-align: center;text-decoration: underline;" bindtap="goShelter">报告上传</view> -->
    <view class="link-block">

      <view bindtap="goInvite">快速推荐全职保洁线索</view>
      <!-- <view  bindtap="goTemp" style="margin-left:40rpx;">加盟接单</view> -->
    </view>
  </block>
  <block wx:if="{{isJms}}">
    <view style="display:flex;text-align:center">
      <button class="register-btn" bindtap="loginTemp">登录</button>

    </view>
    <view style="margin-top:40rpx;">
      <view bindtap="checkProBtn" style="color:#09afff">《鲸致生活接单系统用户协议》</view>
    </view>
    <view class="link-block">

      <view bindtap="goRegister">申请注册-兼职</view>

    </view>

  </block>

	<button  style="margin-top:20rpx;color:red;background-color: rgb(227, 227, 236);" bindtap="chooseLogin">切换登录</button>
</view>