|
|
@@ -104,7 +104,7 @@ export default {
|
|
|
let checkRes = form.validation(formData, rules);
|
|
|
|
|
|
if (!checkRes) {
|
|
|
- uni.showLoading({mask:true})
|
|
|
+ uni.showLoading()
|
|
|
setTimeout(() => {
|
|
|
this.confirmFn()
|
|
|
})
|
|
|
@@ -115,7 +115,7 @@ export default {
|
|
|
},
|
|
|
confirmFn () {
|
|
|
let currentMiniOpenId = uni.getStorageSync('currentMiniOpenId')
|
|
|
- uni.showLoading({mask:true})
|
|
|
+ uni.showLoading()
|
|
|
createCumtomer({
|
|
|
hdShopAdminId: this.option.hdShopAdminId,
|
|
|
ghsShopAdminId: this.option.ghsShopAdminId,
|
|
|
@@ -124,6 +124,7 @@ export default {
|
|
|
from: this.option.from || 0,
|
|
|
miniOpenId:currentMiniOpenId
|
|
|
}).then(res => {
|
|
|
+ uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
|
if(res.data.customId && res.data.customId>0){
|
|
|
this.$util.confirmModal({content:'客户已经存在',okText:'查看',cancelText:'取消'},() => {
|
|
|
@@ -131,9 +132,7 @@ export default {
|
|
|
})
|
|
|
}else{
|
|
|
this.$msg(res.msg)
|
|
|
- setTimeout(() => {
|
|
|
- uni.navigateBack();
|
|
|
- }, 2000)
|
|
|
+ setTimeout(() => { uni.navigateBack() }, 2000)
|
|
|
}
|
|
|
}
|
|
|
});
|