Authored by 张文文

地址title修改

<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);
... ...
... ... @@ -81,7 +81,8 @@ export default {
name: "addressEdit",
params: {
item: item,
update: !isAdd
update: !isAdd,
title: isAdd ? "添加地址" : "编辑地址"
}
});
}
... ...