dedsudiyu hace 3 meses
padre
commit
9faa18862b

+ 4 - 2
api/request/config.js

@@ -2,7 +2,7 @@ const config = {
 	/****** 后台服务地址 ******/
 	
 	// 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.9:8080',//柴
 	// base_url: 'http://192.168.1.24:8080',//林总
 	// base_url: 'http://192.168.1.7:8080',//刘波
@@ -22,13 +22,15 @@ const config = {
 	// base_url: 'https://lab.zjznai.com/api/', //暨大化材
 	// base_url: 'https://lab.zjznai.com/kdwclabSystem/', //矿大文昌地址
     //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: 'https://lab.zjznai.com/labapp/', //43测试
 	// base_url: 'https://metersphere.zjznai.com/labSystem/', //中国海关
 	
 	/****** 图片服务地址(imagesUrl.styl 文件内还需要配置一次css相关地址注意是否与imagesUrl.styl一致) ******/
 	imagesUrl: 'https://zj-wechat.oss-cn-beijing.aliyuncs.com/xcx_images/xcx_v3/',
+	/****** 扫一扫 1.MSDS说明书			2.安全制度			3.危险源详情 地址配置 ******/
+	saoCodeTypeUrl: 'https://labcontrol.nwafu.edu.cn/#/codeHtml?',
 	/****** 登录方式 ******/
 	//account 账户登录
 	//certification 统一认证登录

+ 3 - 3
pages/views/saoCode/hazardousChemicalsDescription.vue

@@ -1,7 +1,7 @@
 <!--危险化学品说明-->
 <template>
     <view id="hazardousChemicalsDescription">
-        <web-view :src="baseUrl+'admin/#/codeHtml?code='+code+'&type==1'"></web-view>
+        <web-view :src="baseUrl+'code='+code+'&type==1'"></web-view>
     </view>
 </template>
 
@@ -11,8 +11,8 @@
         name: "hazardousChemicalsDescription",
         data() {
             return {
-				baseUrl:config.base_url,
-                code:"",
+							baseUrl:config.saoCodeTypeUrl,
+							code:"",
             }
         },
 

+ 3 - 3
pages/views/saoCode/safetyManagement.vue

@@ -1,7 +1,7 @@
 <!--安全管理制度-->
 <template>
     <view id="safetyManagement">
-        <web-view :src="baseUrl+'admin/#/codeHtml?code='+code+'&type==2'"></web-view>
+        <web-view :src="baseUrl+'code='+code+'&type==2'"></web-view>
     </view>
 </template>
 
@@ -11,8 +11,8 @@
         name: "safetyManagement",
         data() {
             return {
-				baseUrl:config.base_url,
-                code:"",
+							baseUrl:config.saoCodeTypeUrl,
+							code:"",
             }
         },
 

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

@@ -1,7 +1,7 @@
 <!--扫描二维码页面-->
 <template>
 	<view id="saoCode">
-		<web-view v-if="webViewType" :src="baseUrl+'admin/#/codeHtml?code='+code+'&type='+type"></web-view>
+		<web-view v-if="webViewType" :src="baseUrl+'code='+code+'&type='+type"></web-view>
 	</view>
 </template>
 
@@ -20,7 +20,7 @@
 		data() {
 			return {
 				webViewType: false,
-				baseUrl: config.base_url,
+				baseUrl: config.saoCodeTypeUrl,
 				code: "",
 				type: "",
 			}

+ 1 - 1
pages_basics/views/earlyWarningManage/warningVideo.vue

@@ -1,6 +1,6 @@
 <template>
 	<view id="videoPlayer">
-		<web-view :src="webViewUrl" v-if="pageType"></web-view>
+		<web-view :src="webViewUrl" v-if="pageType" cache-mode="no-cache"></web-view>
 	</view>
 </template>