twt 3 年 前
コミット
6b28364715
共有2 個のファイルを変更した13 個の追加9 個の削除を含む
  1. 3 2
      operatingCompany/common/request.js
  2. 10 7
      operatingCompany/pages/entryReport/entryReport.vue

+ 3 - 2
operatingCompany/common/request.js

@@ -26,9 +26,10 @@ const http = (url = '', date = {}, type = 'POST', header = {
             header: header,
             dataType: 'json',         
         }).then((response) => {
-            setTimeout(function() {
+           /* setTimeout(function() {
                 uni.hideLoading();
-            }, 200); 
+            }, 200); */
+			uni.hideLoading();
             let [error, res] = response;
 			
 			if(res.data.code==1){

+ 10 - 7
operatingCompany/pages/entryReport/entryReport.vue

@@ -291,11 +291,14 @@
 						   	})
 						   }
 					   }else{
-						   uni.showToast({
-						   	title: '请先签到',
-						   	icon: 'none',
-						   	duration: 2000,
-						   });
+						   setTimeout(function() {
+						      uni.showToast({
+									title: '请先进行签到',
+									icon: 'none',
+									duration: 3000,
+						      });
+						   }, 300);
+						  
 					   }
 					})
 					return false;
@@ -304,7 +307,7 @@
 					uni.showToast({
 						title: '未查询到检测套餐信息',
 						icon: 'none',
-						duration: 2000,
+						duration: 3000,
 					});
 				}
 
@@ -333,7 +336,7 @@
 					uni.showToast({
 							title: '该门店未设置定位',
 							icon: 'none',
-							duration: 2000,
+							duration: 3000,
 						});
 						return
 				}