dedsudiyu 12 hours ago
parent
commit
711170b2f6
2 changed files with 14 additions and 8 deletions
  1. 2 2
      api/request/config.js
  2. 12 6
      api/request/request.js

+ 2 - 2
api/request/config.js

@@ -3,7 +3,7 @@ const config = {
 	
 	
 	// base_url: 'http://192.168.1.43/api', //43服务器
 	// base_url: 'http://192.168.1.43/api', //43服务器
 	// base_url: 'http://192.168.1.8/api',//1.8服务器
 	// base_url: 'http://192.168.1.8/api',//1.8服务器
-	base_url: 'http://192.168.1.88/labSystem',//1.8服务器
+	// base_url: 'http://192.168.1.88/labSystem',//1.8服务器
 	// base_url: 'http://192.168.1.9:8080',//柴
 	// base_url: 'http://192.168.1.9:8080',//柴
 	// base_url: 'http://192.168.1.24:8080',//林总
 	// base_url: 'http://192.168.1.24:8080',//林总
 	// base_url: 'http://192.168.1.7:8080',//刘波
 	// base_url: 'http://192.168.1.7:8080',//刘波
@@ -23,7 +23,7 @@ const config = {
 	// base_url: 'https://lab.zjznai.com/api/', //暨大化材
 	// base_url: 'https://lab.zjznai.com/api/', //暨大化材
 	// base_url: 'https://lab.zjznai.com/kdwclabSystem/', //矿大文昌地址
 	// base_url: 'https://lab.zjznai.com/kdwclabSystem/', //矿大文昌地址
     //base_url: 'https://znyj.zjznai.suda.edu.cn/labSystem/', //苏大临时地址
     //base_url: 'https://znyj.zjznai.suda.edu.cn/labSystem/', //苏大临时地址
-	// base_url: 'https://labcontrol.nwafu.edu.cn/api/', //西北农林
+	base_url: 'https://labcontrol.nwafu.edu.cn/api', //西北农林
 	// base_url: 'http://172.16.0.65/api/', //西北农林
 	// base_url: 'http://172.16.0.65/api/', //西北农林
 	//base_url: 'https://lab.zjznai.com/labapp/', //43测试
 	//base_url: 'https://lab.zjznai.com/labapp/', //43测试
 	// base_url: 'https://metersphere.zjznai.com/labSystem/', //中国海关
 	// base_url: 'https://metersphere.zjznai.com/labSystem/', //中国海关

+ 12 - 6
api/request/request.js

@@ -65,12 +65,13 @@ export const apiResquest = (prams) => {
 				// 失败
 				// 失败
 				uni.hideLoading()
 				uni.hideLoading()
 				uni.showToast({
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					icon: "none",
 					position: "center",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 					duration: 2000
 				});
 				});
+				reject(err);
 			},
 			},
 			complete: () => {
 			complete: () => {
 				// 完成
 				// 完成
@@ -139,12 +140,13 @@ export const apiResquestOutside = (prams) => {
 				// 失败
 				// 失败
 				uni.hideLoading()
 				uni.hideLoading()
 				uni.showToast({
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					icon: "none",
 					position: "center",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 					duration: 2000
 				});
 				});
+				reject(err);
 			},
 			},
 			complete: () => {
 			complete: () => {
 				// 完成
 				// 完成
@@ -211,12 +213,13 @@ export const apiResquestForm = (prams) => {
 				// 失败
 				// 失败
 				uni.hideLoading()
 				uni.hideLoading()
 				uni.showToast({
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					icon: "none",
 					position: "center",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 					duration: 2000
 				});
 				});
+				reject(err);
 			},
 			},
 			complete: () => {
 			complete: () => {
 				// 完成
 				// 完成
@@ -281,12 +284,13 @@ export const apiResquestJsonList = (prams) => {
 				// 失败
 				// 失败
 				uni.hideLoading()
 				uni.hideLoading()
 				uni.showToast({
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					icon: "none",
 					position: "center",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 					duration: 2000
 				});
 				});
+				reject(err);
 			},
 			},
 			complete: () => {
 			complete: () => {
 				// 完成
 				// 完成
@@ -353,12 +357,13 @@ export const apiResquestFormVideo = (prams) => {
 				// 失败
 				// 失败
 				uni.hideLoading()
 				uni.hideLoading()
 				uni.showToast({
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					icon: "none",
 					position: "center",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 					duration: 2000
 				});
 				});
+				reject(err);
 			},
 			},
 			complete: () => {
 			complete: () => {
 				// 完成
 				// 完成
@@ -422,12 +427,13 @@ export const apiResquestTimer = (prams) => {
 				// 失败
 				// 失败
 				uni.hideLoading()
 				uni.hideLoading()
 				uni.showToast({
 				uni.showToast({
-					mask: true,
+					mask: false,
 					icon: "none",
 					icon: "none",
 					position: "center",
 					position: "center",
 					title: '出错啦~请联系管理员!',
 					title: '出错啦~请联系管理员!',
 					duration: 2000
 					duration: 2000
 				});
 				});
+				reject(err);
 			},
 			},
 			complete: () => {
 			complete: () => {
 				// 完成
 				// 完成