Authored by 张文文

手机号提示修改

... ... @@ -11,12 +11,7 @@
></CInput>
</FormItem>
<FormItem>
<CInput
label="手机号"
place-holder="请填写手机号"
v-model="model.mobile"
:textValue="model.mobile"
></CInput>
<CInput label="手机号" place-holder="请填写手机号" v-model="model.mobile" :textValue="model.mobile"></CInput>
</FormItem>
<template>
... ... @@ -67,9 +62,7 @@
checked="model.is_default"
v-model="model.is_default"
></Radio>
<div v-if="isUpdate" class="del-address" @click="delAddress">
删除地址
</div>
<div v-if="isUpdate" class="del-address" @click="delAddress">删除地址</div>
</div>
<div :class="submitClass" @touchend="onSubmit">确 认</div>
... ... @@ -201,7 +194,12 @@ export default {
return false;
}
let reg = /^[0123456789]{11}$/;
let reg;
if (this.isUpdate) {
reg = /^[0123456789*]{11}$/;
} else {
reg = /^[0123456789]{11}$/;
}
if (!info.mobile) {
this.showToast("手机号不能为空");
... ...