<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
  <view slot="info" class="main">
    <view class="onea">
      <cover-image src='/image/back.png' class="back" bindtap='back'></cover-image>
    </view>
    <view class="one">
      <view class="word">
        <text>注册，</text>
      </view>
      <view class="word2">
        <text>团队比赛小程序</text>
      </view>
    </view>
    <view class="two">
      <form bindsubmit="onSubmit">
        <view class="content">
          <view class="left">
            <input class="input" type='number' name="phone" value="{{form.phone}}" maxlength="11" placeholder='账号：' placeholder-class="placeholder"></input>
          </view>
          <view class="right">
            <view class="line"></view>
          </view>
        </view>
        <view class="content">
          <view class="left">
            <input class="input" type='text' name="password" value="{{form.password}}" password placeholder='密码：' placeholder-class="placeholder"></input>
          </view>
          <view class="right">
            <view class="line"></view>
          </view>
        </view>
        <view class="content">
          <view class="left">
            <input class="input" type='text' name="passagain" password placeholder='再次输入密码：' placeholder-class="placeholder"></input>
          </view>
          <view class="right">
            <view class="line"></view>
          </view>
        </view>
        <view class="content">
          <view class="left1" >
          用户类别
          <view class="line"></view>
          </view>
          <view class="right1">
            <picker mode="selector" bindchange="bindCatePickerChange" value="{{cateIndex}}" range-key="type" range="{{cateArray}}">
              <view class="weui-select">{{cateArray[cateIndex].type}}</view>
            </picker>
            <view class="right">
            <view class="line"></view>
          </view>
          </view>
        </view>
        <view class="save">
          <button class="button" form-type="submit">注册</button>
        </view>
      </form>
    </view>
  </view>
</mobile-main>