dedsudiyu 1 hafta önce
ebeveyn
işleme
d33eb0a0bc
2 değiştirilmiş dosya ile 6 ekleme ve 4 silme
  1. 4 3
      api/request/config.js
  2. 2 1
      pages/views/saoCode/saoCode.vue

+ 4 - 3
api/request/config.js

@@ -1,9 +1,9 @@
 const config = {
 	/************************************ 后台服务地址 ************************************/
 
-	// base_url: 'https://192.168.166.11/api', //安科院
+	base_url: 'https://192.168.166.11/api', //安科院
 	// 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.88服务器
 	// base_url: 'http://192.168.1.9:8080',//柴
 	// base_url: 'http://192.168.1.24:8080',//林总
@@ -34,7 +34,8 @@ const config = {
 	imagesUrl: 'https://zj-wechat.oss-cn-beijing.aliyuncs.com/xcx_images/xcx_v3/',
 	/************************************ 扫一扫 ************************************/
 	//1.MSDS说明书			2.安全制度			3.危险源详情 地址配置
-	saoCodeTypeUrl: 'http://192.168.1.88/labSystem/admin/#/codeHtml?',
+	saoCodeTypeUrl: 'http://192.168.166.11/#/codeHtml?',
+	// saoCodeTypeUrl: 'http://192.168.1.8/#/codeHtml?',
 	/************************************ 院管理员身份ID ************************************/
   schoolId:'2033722203831459841',
 	/************************************ 所管理员身份ID ************************************/

+ 2 - 1
pages/views/saoCode/saoCode.vue

@@ -26,10 +26,11 @@
 			}
 		},
 		onLoad(option) {
-			// console.log('option',option)
+			console.log('option',option)
 			let self = this;
 			if (option.q) {
 				let text = decodeURIComponent(option.q)
+				console.log(text);
 				let list = text.split("?")[1].split("&");
 				let codeData = {};
 				list.forEach((item) => {