Bladeren bron

fix 添加巡店记录优化

wzh 4 maanden geleden
bovenliggende
commit
f7de3a705b
1 gewijzigde bestanden met toevoegingen van 6 en 2 verwijderingen
  1. 6 2
      pages/hexiao/ywy/add_patrol.vue

+ 6 - 2
pages/hexiao/ywy/add_patrol.vue

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