<image class="loginImg" src="/static/imgs/loginImg.png" mode="widthFix"></image>
<view class="loginTitle">
    <image class="loginImg" src="/static/imgs/loginTitle.png" mode="widthFix"></image>
</view>
<form bindsubmit="registerForm" class="site-form">
    <!-- 输入手机号相关 -->
    <view class="inputs">
        <input type="number" placeholder="请输入手机号" maxlength="11" bindinput="bindInput" />
    </view>
    <view class="inputs">
        <input type="number" placeholder="请输入验证码" maxlength="4" name="code" class="inputs-sms" />
        <button class="sms-btn" type="default" size="mini" disabled="{{phone == '' || smsDisabled}}" bindtap="getPhoneCode">{{codename}}</button>
    </view>
    <view class="inputs">
        <input type="text" placeholder="密码须包含大小写，最少8位" name="password" password="{{passwordState}}" />
        <image class="inputs-see" bindtap="seeClick" src="{{seeState ? '/static/icons/see_active.png' : '/static/icons/see.png'}}" mode="aspectFill"></image>
    </view>
    <view class="inputs">
        <input type="text" placeholder="密码须包含大小写，最少8位" name="password_confirmation" password="{{passwordAgain}}" />
        <image class="inputs-see" bindtap="seeAgain" src="{{againState ? '/static/icons/see_active.png' : '/static/icons/see.png'}}" mode="aspectFill"></image>
    </view>
    <button class="btn" type="default" form-type="submit">立即注册</button>
</form>

<view class="refertoEject {{successHide ? 'active' : ''}}" catchtouchmove='true'></view>
<view class="refertoCont {{successHide ? 'active' : ''}}" catchtouchmove='true'>
    <view class="refertoWrite">
        <image class="refertoCont-img" src="https://cdn.douhuofalv.com/images/2023/08/04/b099539e6c5d6d89b69516002412a4d9.png" mode="widthFix"></image>
        <view class="refertoCont-name">
            <view class="refertoCont-title">注册成功</view>
            <view class="refertoCont-text">恭喜您已完成注册，点击按钮返回</view>
            <navigator class="refertoCont-go" hover-class="none" open-type="navigateBack" delta="2">确定</navigator>
        </view>
    </view>
</view>