Showing
1 changed file
with
8 additions
and
10 deletions
@@ -11,12 +11,7 @@ | @@ -11,12 +11,7 @@ | ||
11 | ></CInput> | 11 | ></CInput> |
12 | </FormItem> | 12 | </FormItem> |
13 | <FormItem> | 13 | <FormItem> |
14 | - <CInput | ||
15 | - label="手机号" | ||
16 | - place-holder="请填写手机号" | ||
17 | - v-model="model.mobile" | ||
18 | - :textValue="model.mobile" | ||
19 | - ></CInput> | 14 | + <CInput label="手机号" place-holder="请填写手机号" v-model="model.mobile" :textValue="model.mobile"></CInput> |
20 | </FormItem> | 15 | </FormItem> |
21 | 16 | ||
22 | <template> | 17 | <template> |
@@ -67,9 +62,7 @@ | @@ -67,9 +62,7 @@ | ||
67 | checked="model.is_default" | 62 | checked="model.is_default" |
68 | v-model="model.is_default" | 63 | v-model="model.is_default" |
69 | ></Radio> | 64 | ></Radio> |
70 | - <div v-if="isUpdate" class="del-address" @click="delAddress"> | ||
71 | - 删除地址 | ||
72 | - </div> | 65 | + <div v-if="isUpdate" class="del-address" @click="delAddress">删除地址</div> |
73 | </div> | 66 | </div> |
74 | 67 | ||
75 | <div :class="submitClass" @touchend="onSubmit">确 认</div> | 68 | <div :class="submitClass" @touchend="onSubmit">确 认</div> |
@@ -201,7 +194,12 @@ export default { | @@ -201,7 +194,12 @@ export default { | ||
201 | return false; | 194 | return false; |
202 | } | 195 | } |
203 | 196 | ||
204 | - let reg = /^[0123456789]{11}$/; | 197 | + let reg; |
198 | + if (this.isUpdate) { | ||
199 | + reg = /^[0123456789*]{11}$/; | ||
200 | + } else { | ||
201 | + reg = /^[0123456789]{11}$/; | ||
202 | + } | ||
205 | 203 | ||
206 | if (!info.mobile) { | 204 | if (!info.mobile) { |
207 | this.showToast("手机号不能为空"); | 205 | this.showToast("手机号不能为空"); |
-
Please register or login to post a comment