|
|
@@ -77,6 +77,7 @@ import { getRetailDetail, uploadImage,addPatrolRecord,parseLocation} from "@/ap
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ loadding:false,
|
|
|
// 假设的门店信息,从上个页面传来
|
|
|
storeInfo: {
|
|
|
id: 1,
|
|
|
@@ -199,8 +200,11 @@ import { getRetailDetail, uploadImage,addPatrolRecord,parseLocation} from "@/ap
|
|
|
if (!this.locationInfo.address) {
|
|
|
return uni.showToast({ title: '请获取当前位置', icon: 'none' });
|
|
|
}
|
|
|
-
|
|
|
- uni.showLoading({ title: '正在提交...' });
|
|
|
+ if(this.loadding){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+ this.loadding = true;
|
|
|
+ uni.showLoading({ title: '正在提交...' ,mask:true});
|
|
|
|
|
|
const finalData = {
|
|
|
storeId: this.storeInfo.id,
|