Explorar o código

更新请求地址

zhb hai 10 meses
pai
achega
f8e261056d
Modificáronse 5 ficheiros con 14 adicións e 12 borrados
  1. 2 2
      manifest.json
  2. 6 5
      pages/cb/equip-detail/equip-detail.vue
  3. 1 1
      pages/environment/history.vue
  4. 1 1
      static/h52.html
  5. 4 3
      util/api.js

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "柏乡智控",
     "appid" : "__UNI__9764453",
     "description" : "",
-    "versionName" : "1.7.4",
-    "versionCode" : 174,
+    "versionName" : "1.7.5",
+    "versionCode" : 175,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 6 - 5
pages/cb/equip-detail/equip-detail.vue

@@ -157,13 +157,14 @@
 						tex: '设备控制',
 						path: '/pages/cb/cbd/equip-set/equip-set',
 						tf: QueryPermission(62)
-					}, {
-						icon: '/image/cb/6.png',
-						tex: 'sim卡详情',
-						path: '/pages/cb/sim/sim',
-						tf: QueryPermission(274)
 					}, 
 					// {
+					// 	icon: '/image/cb/6.png',
+					// 	tex: 'sim卡详情',
+					// 	path: '/pages/cb/sim/sim',
+					// 	tf: QueryPermission(274)
+					// }, 
+					// {
 					// 	icon: '/image/environment/7.png',
 					// 	tex: '一键报修',
 					// 	path: '/pages/afterSale/addafter',

+ 1 - 1
pages/environment/history.vue

@@ -149,7 +149,7 @@
 					}
 				})
 				this.dataloadingtf = false
-				console.log(res)
+				console.log(res.data,'======================================= fffffffff')
 				this.chartdata = res
 				this.titletext = []
 				if (res.data.length == 0) {

+ 1 - 1
static/h52.html

@@ -193,7 +193,7 @@
     src="http://www.hnyfwlw.com:8006/bigdata_app/js/ezuikit.js"
   ></script> -->
   <script type="text/javascript">
-    const baseUrl = 'http://118.178.196.153:7000/iotprod-api/bigdata-api';
+    const baseUrl = 'http://baixiang.agmp.yunfeiyun.com:7000/iotprod-api/bigdata-api';
 
     function configCamera(ctrl, movenum) {
       if (ctrl == 'takephoto') {

+ 4 - 3
util/api.js

@@ -12,9 +12,10 @@ export const myRequest = (options) => {
     // BASE_URL = 'http://192.168.1.77:8002'
   }
 
-  BASE_URL = 'http://118.178.196.153:7000/iotprod-api/bigdata-api';
+  // BASE_URL = 'http://118.178.196.153:7000/iotprod-api/bigdata-api';
+  BASE_URL = 'http://baixiang.agmp.yunfeiyun.com:7000/iotprod-api/bigdata-api';
   // BASE_URL = 'http://192.168.1.52:8003'
-  // console.log(BASE_URL)
+  console.log(BASE_URL)
   var session_key = '';
   session_key = uni.getStorageSync('session_key');
   let url = '';
@@ -56,7 +57,7 @@ export const myRequest = (options) => {
       },
       data: data,
       success: (res) => {
-        console.log(url, 'response 12131313', url);
+        console.log(url, 'response 12131313', res);
         if (res.data.message) {
           if (
             res.data.message == '识别无结果' ||