<view class="login-top">
    <view class="top-logo-content">
        手机号快捷登录
    </view>
    未注册的手机号码将自动注册
</view>
<!-- 输入手机号相关 -->
<view class="inputs phone">
    <label class="label">+86</label>
    <input type="number" placeholder="输入您的手机号码" maxlength="11" name="phone" bindinput="bindInput" class="inputs-phone" />
</view>
<view class="inputs sms">
    <input type="number" placeholder="输入短信验证码" maxlength="4" name="code" class="inputs-sms" bindinput="bindCode"  />
    <button class="sms-btn" type="default" size="mini" disabled="{{phone == '' || getSms}}" bindtap="getPhoneCode">{{codename}}</button>
</view>
<view class="inputs" wx:if="{{newUser}}">
    <input placeholder="邀请码 (选填)" maxlength="10" value="{{parentId}}" bindinput="parentInput" />
</view>
<button class="btn" type="default" disabled="{{phone == '' || code == ''}}" bindtap="login">登录</button>
<!-- 用户登录注册协议 -->
<view class="agreement">
    <checkbox-group bindchange="radioChange">
        <checkbox color="#4490ff" checked="{{checked}}" size='10' class="radioGroup" />
    </checkbox-group>
    <view class="agreement-text">
        我已阅读并同意<navigator hover-class="none" url="./agreement/agreement?type=secret">《隐私协议》</navigator>和<navigator hover-class="none" url="./agreement/agreement?type=protocol">《服务协议》</navigator>
    </view>
</view>
