<cu-custom bgColor="bg-color" isBack="{{true}}" title="注册">
  <!-- <view slot="content">注册</view> -->
</cu-custom>
<view class="toptip bg-red {{tipStaus}} text-white {{tipType}}" style='top:{{CustomBar}}px;'>{{tipText}}</view>
<view class="reg_top">
  <view class="reg_top_txt">
    <view>完善您的身份信息 </view>
    <text>所有信息仅用于平台，绝不对外提供</text>
  </view>
  <image src="/img/reg_img1.png"></image>
</view>
<view class="reg_form">
  <view class="reg_form_item">
    <view>手机号</view>
    <input placeholder="请输入手机号" type='number' bindinput="setLoginName" value='{{loginName}}'></input>
  </view>
  <view class="reg_form_item">
    <view>请输入验证码</view>
    <input placeholder="" class='reg_form_code' type='number' bindinput='setCode' value='{{code}}'></input>
    <button class='cu-btn {{canClick?"line-color":"line-grey"}}' bindtap='getValidCode'>{{codeBtnTxt}}</button>
  </view>
  <view class="reg_form_item">
    <view>请输入密码</view>
    <input placeholder="请输入密码" password type="text" adjust-position="{{false}}" bindinput="setPwd" value='{{password}}'></input>
  </view>
  <view class="reg_form_item">
    <view>再次确认密码</view>
    <input placeholder="请确认密码" password type="text" adjust-position="{{false}}" bindinput="setPwd2" value='{{password2}}'></input>
  </view>
  <view class="reg_form_item">
    <view>姓名</view>
    <input placeholder="请输入姓名" type='text' bindinput="setNickName" value='{{nickName}}'></input>
  </view>
  <view class="reg_form_item">
    <view>身份证号</view>
    <input placeholder="请输入身份证号码" type='text' bindinput="cardNoChange" value='{{cardNo}}'></input>
  </view>
  <view class="reg_form_item">
    <view>工作单位</view>
    <input placeholder="请输入工作单位" type='text' bindinput="setWorkUnit" value="{{workUnit}}"></input>
  </view>
  <view class="reg_form_item">
    <view>选择上级所属单位</view>
		<picker bindchange="setDept" value="{{deptindex}}" range="{{deptList}}" range-key="deptName">
			<view class="picker">
				{{deptindex ? deptList[deptindex].deptName : '请选择'}}
			</view>
		</picker>
  </view>
  <view class="reg_form_tip">密码确保至少6个字(包括数字和大小写字母）</view>
  <view class='cu-btn bg-color lg reg_form_btn' bindtap="goReg">提交</view>
</view>
