|
|
@@ -5,12 +5,12 @@
|
|
|
}" :rules="[
|
|
|
{
|
|
|
required: true,
|
|
|
- message: '手机号不能为空'
|
|
|
+ message: '用户名不能为空'
|
|
|
}
|
|
|
] as ClFormRule[]
|
|
|
">
|
|
|
<cl-input clearable class="" :pt="{ className: '!h-[40px] !rounded-xxl !px-4 !w-[80vw]' }" v-model="form.username"
|
|
|
- placeholder="请输入手机号(必填)"></cl-input>
|
|
|
+ placeholder="请输入用户名(必填)"></cl-input>
|
|
|
</cl-form-item>
|
|
|
<cl-form-item prop="password" required :pt="{
|
|
|
className: '!mb-4'
|
|
|
@@ -45,6 +45,12 @@
|
|
|
password placeholder="请确认密码(必填)">
|
|
|
</cl-input>
|
|
|
</cl-form-item>
|
|
|
+ <cl-form-item prop="phone" required :pt="{
|
|
|
+ className: '!mb-4'
|
|
|
+ }">
|
|
|
+ <cl-input clearable class="" :pt="{ className: '!h-[40px] !rounded-xxl !px-4 !w-[80vw]' }" v-model="form.phone"
|
|
|
+ placeholder="请输入验证码手机号"></cl-input>
|
|
|
+ </cl-form-item>
|
|
|
<cl-form-item prop="code" required :pt="{
|
|
|
className: '!mb-4'
|
|
|
}" :rules="[
|
|
|
@@ -58,16 +64,9 @@
|
|
|
type="number" placeholder="请输入验证码(必填)">
|
|
|
</cl-input>
|
|
|
<view class="absolute right-0">
|
|
|
- <sms-btn :ref="refs.set('smsBtn')" :phone="form.username"></sms-btn>
|
|
|
+ <sms-btn :ref="refs.set('smsBtn')" :phone="form.phone"></sms-btn>
|
|
|
</view>
|
|
|
</cl-form-item>
|
|
|
- <cl-form-item :pt="{
|
|
|
- className: '!mb-4'
|
|
|
- }" prop="nickName">
|
|
|
- <cl-input clearable :pt="{ className: '!h-[40px] !rounded-xxl !px-4 !w-[80vw]' }" v-model="form.nickName"
|
|
|
- placeholder="请输入昵称(可选)"></cl-input>
|
|
|
- </cl-form-item>
|
|
|
-
|
|
|
|
|
|
</view>
|
|
|
</template>
|