修改验证

This commit is contained in:
na.guo
2020-08-10 13:54:01 +08:00
parent 55b6203521
commit c6addb60d9

View File

@@ -112,7 +112,7 @@
v-validate="'required|mobileLength11|mobileStartWith1|mobile'"
maxlength="11"
/>
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" placeholder="请输入短信验证码" maxlength="6">
<van-field v-model="userInfo.authCode" center clearable label name="短信验证码" v-validate="'required'" placeholder="请输入短信验证码" maxlength="6">
<van-button slot="button" size="small" type="danger" @click="getCode" :disabled="codeDisabled" v-no-more-click="1000">
{{ codeDisabled ? `${countDown}s后重新获取` : '发送验证码' }}
</van-button>
@@ -313,12 +313,23 @@
clearable
maxlength="5"
/> -->
<van-field v-model="homeName" readonly label="联系地址" name="联系地址" required right-icon="arrow" placeholder="请选择" @click="homeShow = true" />
<van-field
v-model="homeName"
readonly
label="联系地址"
name="联系地址"
required
right-icon="arrow"
placeholder="请选择"
v-validate="'required'"
@click="homeShow = true"
/>
<van-field
v-model="userInfo.homeAddress"
label
name="详细地址"
placeholder="具体到街道、门牌号、楼号、单元号、室号"
v-validate="'required|homeAddressNum|homeAddressCh'"
clearable
maxlength="30"
style="font-size: 3.5vw;"