|
|
@@ -129,6 +129,7 @@ export default {
|
|
|
this.$refs.simpleAddress.open();
|
|
|
},
|
|
|
confirmFn() {
|
|
|
+ uni.showLoading({title: "加载中"})
|
|
|
let pattern = /^1\d{10}$/; //验证以1开头11位数
|
|
|
if(this.$util.isEmpty(this.form.name)){this.$msg('请输入花店名称');return;}
|
|
|
if(!pattern.test(this.form.mobile)){this.$msg('请输入正确的手机号');return;}
|
|
|
@@ -140,7 +141,7 @@ export default {
|
|
|
address:this.form.address,
|
|
|
debt:this.form.debt?1:0,
|
|
|
}).then(res => {
|
|
|
- this.$msg('添加成功!');
|
|
|
+ uni.hideLoading();
|
|
|
uni.setStorageSync('newClient', res.data)
|
|
|
setTimeout(() => {
|
|
|
// uni.reLaunch({
|