104 lines
4.3 KiB
XML
104 lines
4.3 KiB
XML
<view class="page-body">
|
|
<view class="register-box">
|
|
<view class="regitser-title">{{t('registerTitle')}}</view>
|
|
<view class="register-body">
|
|
<l-form>
|
|
<l-form-item
|
|
label="{{t('label.loginName')}}"
|
|
label-placement="column"
|
|
l-form-item-class="formItem"
|
|
label-slot="{{true}}"
|
|
>
|
|
<view slot="label" style="margin:16rpx 0rpx">
|
|
<view class="label">
|
|
<view style="color:red">*</view>
|
|
<view>{{t('label.loginName')}}</view>
|
|
</view>
|
|
<view class="help">({{loginNameTip}})</view>
|
|
</view>
|
|
<l-input
|
|
value="{{loginName}}"
|
|
data-attr="loginName"
|
|
rules="{{loginNameRulesMp}}"
|
|
bind:lininput="setValueMp"
|
|
show-row="{{false}}"
|
|
tip-type="text"
|
|
hide-label="{{true}}"
|
|
show-row="{{false}}"
|
|
l-class="my-input"
|
|
l-input-class="input"
|
|
style="flex:1;"
|
|
/>
|
|
</l-form-item>
|
|
<l-form-item
|
|
label="{{t('label.password')}}"
|
|
label-placement="column"
|
|
l-form-item-class="formItem"
|
|
label-slot="{{true}}"
|
|
>
|
|
<view slot="label" style="margin:16rpx 0rpx">
|
|
<view class="label">
|
|
<view style="color:red">*</view>
|
|
<view>{{t('label.password')}}</view>
|
|
</view>
|
|
<view class="help">({{pwdTip}})</view>
|
|
</view>
|
|
<l-input
|
|
value="{{password}}"
|
|
type="password"
|
|
data-attr="password"
|
|
rules="{{passwordRulesMp}}"
|
|
bind:lininput="setValueMp"
|
|
show-row="{{false}}"
|
|
tip-type="text"
|
|
hide-label="{{true}}"
|
|
show-row="{{false}}"
|
|
l-class="my-input"
|
|
l-input-class="input"
|
|
style="flex:1;"
|
|
/>
|
|
</l-form-item>
|
|
<l-form-item
|
|
label="{{t('label.rePwd')}}"
|
|
label-placement="column"
|
|
l-form-item-class="formItem"
|
|
label-slot="{{true}}"
|
|
>
|
|
<view slot="label" style="margin:16rpx 0rpx">
|
|
<view class="label">
|
|
<view style="color:red">*</view>
|
|
<view>{{t('label.rePwd')}}</view>
|
|
</view>
|
|
</view>
|
|
<l-input
|
|
value="{{confirm}}"
|
|
type="password"
|
|
data-attr="confirm"
|
|
rules="{{confirmRulesMp}}"
|
|
bind:lininput="setValueMp"
|
|
show-row="{{false}}"
|
|
tip-type="text"
|
|
hide-label="{{true}}"
|
|
show-row="{{false}}"
|
|
l-class="my-input"
|
|
l-input-class="input"
|
|
style="flex:1;"
|
|
/>
|
|
</l-form-item>
|
|
<l-button
|
|
disabled="{{!(loginName && password && confirm) || loginNameHasErr || passwordHasErr || confirmHasErr}}"
|
|
catch:lintap="onConfirmMp"
|
|
size="long"
|
|
l-class="my-btn"
|
|
>
|
|
{{t('register')}}
|
|
</l-button>
|
|
</l-form>
|
|
</view>
|
|
<view class="login">
|
|
<l-button catch:lintap="goLoginMp" special="{{true}}">
|
|
<view>{{t('goLogin')}}</view>
|
|
</l-button>
|
|
</view>
|
|
</view>
|
|
</view> |