<view class="toptip {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<cu-custom bgColor="bg-color" canGoHome="{{true}}">
  <!-- <view slot="content"></view> -->
</cu-custom>
<view class="login_top bg-color">
  <view class="login_tit">
    <view class="login_tit_en">welcome to</view>
    <view class="login_tit_cn">欢迎来到冷链追溯系统</view>
  </view>
  <image class="login_logo" src="/img/logo.png"></image>
</view>
<scroll-view class="login_win">
  <view class="login_navs">
    <view class="login_navs_item {{loginNav == 'pwd' && ' sec'}}" bindtap="setNav" data-type="pwd">账号登录</view>
    <view class="login_navs_item {{loginNav == 'code' && ' sec'}}" bindtap="setNav" data-type="code">验证码登录</view>
  </view>
  <view class="login_form" wx:if="{{loginNav == 'pwd'}}">
    <view class="login_form_item">
      <image src="/img/icon_phone.png"></image>
      <input placeholder="请输入手机号" type='number' bindinput="setLoginName" value='{{loginName}}'></input>
    </view>
    <view class="login_form_item">
      <image src="/img/icon_lock.png"></image>
      <input placeholder="请输入密码" password type="text" adjust-position="{{false}}" bindinput="setLoginPwd"
        value='{{loginPwd}}'></input>
    </view>
    <view class="login_form_item">
      <input placeholder="请输入图形验证码" type='text' bindinput="setCaptChaImage" value='{{code}}'></input>
      <image class="captChaImage" src="{{img}}" bindtap="getCaptchaImage"></image>
    </view>
    <view class="login_fpwd">
      <navigator url="/pages/user/pwdEdit">忘记密码</navigator>
    </view>
    <view class='cu-btn bg-color lg login_form_btn' bindtap="loginIn">立即登录</view>
    <!-- <view class="login_form_reg">
      <navigator url="/pages/register/register">立即注册</navigator>
    </view> -->
  </view>
  <form wx:if="{{loginNav == 'code'}}">
    <view class="login_form">
      <view class="login_form_item">
        <image src="/img/icon_phone.png"></image>
        <input placeholder="请输入手机号" type='number' bindinput="setLoginName" value='{{loginName}}'></input>
      </view>
      <view class="login_form_item">
        <image src="/img/icon_lock.png"></image>
        <input placeholder="请输入验证码" class='radius' type='number' bindinput='setCode' value='{{code}}'></input>
        <button class='cu-btn {{canClick?"line-color":"line-grey"}}  shadow'
          bindtap='getValidCode'>{{codeBtnTxt}}</button>
      </view>
      <view class="login_fpwd"></view>
      <view class='cu-btn bg-color lg login_form_btn' bindtap="loginIn">立即登录</view>
      <!-- <view class="login_form_reg">
        <navigator>立即注册</navigator>
      </view> -->
    </view>
  </form>
</scroll-view>
<navigator class="login_foot" url="/pages/article/yinsizc">
  <text>登录即同意</text>
  <text class="login_foot_xy">隐私协议</text>
</navigator>