|
|
<template>
|
|
|
<LayoutApp title="添加地址" :show-back="true">
|
|
|
<LayoutApp :title="title" :show-back="true">
|
|
|
<div class="pane-body">
|
|
|
<FormItem>
|
|
|
<CInput
|
...
|
...
|
@@ -110,6 +110,7 @@ export default { |
|
|
return {
|
|
|
isShowPop: false,
|
|
|
isUpdate: false,
|
|
|
title: "添加地址",
|
|
|
model: {
|
|
|
addressId: "",
|
|
|
receiverName: "",
|
...
|
...
|
@@ -199,9 +200,7 @@ export default { |
|
|
return false;
|
|
|
}
|
|
|
|
|
|
let reg = this.isUpdate
|
|
|
? /^[0123456789*]{1,30}$/
|
|
|
: /^[0123456789]{1,30}$/;
|
|
|
let reg = /^1[34578]\d{9}$/;
|
|
|
|
|
|
if (!info.receiverMobile) {
|
|
|
this.showToast("手机号不能为空");
|
...
|
...
|
@@ -284,6 +283,7 @@ export default { |
|
|
this.fetchAddressTags();
|
|
|
|
|
|
this.isUpdate = this.$route.params.update;
|
|
|
this.title = this.$route.params.title;
|
|
|
|
|
|
if (this.$route.params.update) {
|
|
|
let item = JSON.parse(this.$route.params.item);
|
...
|
...
|
|