wangxy 2 місяців тому
батько
коміт
14ceb8ffdf
4 змінених файлів з 10 додано та 8 видалено
  1. 1 0
      api/kaoshi.js
  2. 1 0
      api/lianxi.js
  3. 4 4
      pages/client/Kaoshi/exam.vue
  4. 4 4
      pages/client/Lianxi/exam.vue

+ 1 - 0
api/kaoshi.js

@@ -107,6 +107,7 @@ export function getClientKsSubmit(data = {}) {
     headers: {
       isToken: true
     },
+	isLoading:true,
     method: 'post',
     data,
     timeout: 20000

+ 1 - 0
api/lianxi.js

@@ -66,6 +66,7 @@ export function getClientLianxiSubmit(data = {}) {
     headers: {
       isToken: true
     },
+	isLoading:true,
     method: 'post',
     data,
     timeout: 20000

+ 4 - 4
pages/client/Kaoshi/exam.vue

@@ -356,9 +356,9 @@
 		};
 		console.log(questionData.value)
 		
-		uni.showLoading({
-			title: '提交中'
-		})
+		// uni.showLoading({
+		// 	title: '提交中'
+		// })
 		
 		questionData.value.forEach(dl => {
 			dl.qas.forEach(st => {
@@ -378,7 +378,7 @@
 				removeCacheKs(data.operId);
 			}
 		}).finally(err => {
-			uni.hideLoading()
+			// uni.hideLoading()
 		})
 	}
 	

+ 4 - 4
pages/client/Lianxi/exam.vue

@@ -283,9 +283,9 @@
 			})
 		})
 		
-		uni.showLoading({
-			title: '提交中'
-		})
+		// uni.showLoading({
+		// 	title: '提交中'
+		// })
 	
 		lxApi.getClientLianxiSubmit(result).then(res => {
 			if (res.code == 0) {
@@ -293,7 +293,7 @@
 				subScoreRef.value.showDialog(res.data);
 			}
 		}).finally(() => {
-			uni.hideLoading()
+			// uni.hideLoading()
 		})
 	}