
<!-- 未登录 -->
<view class="no_login" wx:if='{{status == 0}}'>
    <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
    <view class='avatar'>
            <image src="../../images/logo.png"></image>
    </view>
    <view class="login">
        <!-- <input bindinput='inputchange' placeholder="请输入您的代码" value="{{usercode}}"></input> -->
        <button bindtap="login">登录</button>
      </view>
      <!-- <button class="contactus" open-type="contact">咨询</button> -->
</view>
<view class="no_login" wx:if='{{status == 1}}'>
    <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
    <view class='avatar'>
          <image src="../../images/logo.png"></image>
    </view>
    <view class="login">
        <view><input type="number" placeholder-style="color:#999" bindinput='inputchange' placeholder="请输入手机号"></input></view>
        <view class="yzm">
          <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
          <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
          <view class="disabled" wx:else>{{text}}</view>
        </view>
        <button bindtap="login1">登录</button>
      </view>
</view>
<view class="no_login" wx:if='{{status == 2}}'>
    <view class="title" style="margin-bottom: 50rpx;">为了账号安全，请先绑定手机号</view>
    <view class="login">
        <view><input type="number" placeholder-style="color:#999" bindinput='inputchange' placeholder="请输入手机号"></input></view>
        <view class="yzm">
          <input type="number" placeholder-style="color:#999" bindinput='codechange' placeholder="请输入验证码"></input>
          <view bindtap="getcode" wx:if="{{text=='获取验证码'}}">{{text}}</view>
          <view class="disabled" wx:else>{{text}}</view>
        </view>
        <button bindtap="login2">绑定</button>
      </view>
</view>


<view class="no_login" wx:if='{{status == 3}}'>
  <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
    <view class='avatar'>
            <image src="../../images/logo.png"></image>
    </view>
  <navigator url="../apply/apply?type=2"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>  注册选手(报名参赛)</navigator>
  <navigator  style="background: none;color:#D94B24;" url="../apply/apply?type=1"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>  注册游客(浏览系统)</navigator>
  <navigator style="background: none;color:#D94B24;" url="../message/message"><image style="width: 18px;" mode="widthFix" src="../../images/zx.png"></image>  咨询顽主</navigator>
</view>

<!-- 上传头像和昵称 -->
<view wx:if='{{status == 10}}'>
  <text class="weui-input">头像:</text>
  <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
  <image class="avatar" src="{{avatarUrl}}"></image>
  </button> 
  <view class="weui-input"><text>昵称：</text><input type="nickname"  bindinput="nameChange" placeholder="请输入昵称"/>
  </view>
  <button class="btn" bindtap="register">登录</button>
</view>

