Bläddra i källkod

加上户号的版本并且初始化

ming 3 år sedan
förälder
incheckning
05cf568b5a

+ 6 - 6
pages/index/index.vue

@@ -193,15 +193,15 @@
 		onLoad: function(option) {
 
 		
-		// 	if (option.op) {
-		// 		this.getData();
+			if (option.op) {
+				this.getData();
 			
-		// 	} else {
-		// 		this.init()
-		// 	}
+			} else {
+				this.init()
+			}
 			
 			
-			this.getData();
+			// this.getData();
 
 			this.hackReset = false;
 			this.$nextTick(() => {

+ 2 - 2
pages/processDetailEle/processDetailEle.vue

@@ -35,10 +35,10 @@
 						<text>线路名称:</text>
 						<text>{{detailMessage.deviceName}}</text>
 					</view>
-					<!-- <view>
+					<view>
 						<text>户号:</text>
 						<text>{{detailMessage.account_number}}</text>
-					</view> -->
+					</view>
 					<view>
 						<text>警告信息:</text>
 						<text>{{detailMessage.measValue}}</text>

+ 2 - 2
pages/processDetailEle1/processDetailEle1.vue

@@ -35,10 +35,10 @@
 						<text>线路名称:</text>
 						<text>{{detailMessage.deviceName}}</text>
 					</view>
-					<!-- <view>
+					<view>
 						<text>户号:</text>
 						<text>{{detailMessage.account_number}}</text>
-					</view> -->
+					</view>
 					<view>
 						<text>警告信息:</text>
 						<text>{{detailMessage.measValue}}</text>

+ 5 - 5
util/api.js

@@ -1,9 +1,9 @@
 // const BASE_URL = 'https://iot.usky.cn/USKYOF/USKYOF.php/Home/' //(测试域名)  
-const BASE_URL = 'https://qhome.usky.cn/USKYOF/USKYOF.php/Home/' //(正式域名新)  
-const websiteUrl = 'https://qhome.usky.cn'
+const BASE_URL = 'https://wx.ewoogi.com/USKYOF/USKYOF.php/Home/' //(正式域名新)  
+const websiteUrl = 'https://wx.ewoogi.com'
 
-// const websiteUrl = 'https://qhome.usky.cn'
-// const BASE_URL='http://https://qhome.usky.cn/USKYOF/USKYOF.php/Home/'
+// const websiteUrl = 'https://wx.ewoogi.com'
+// const BASE_URL='http://https://wx.ewoogi.com/USKYOF/USKYOF.php/Home/'
 // 同时发送异步代码的次数,防止一次点击中有多次请求,用于处理
 let ajaxTimes = 0;
 
@@ -62,7 +62,7 @@ function myRequest(options){
 				let notIndexFail = ['Index/getDataStatistics', 'Com/getAuthorizationUrl'];
 				if (notIndexFail.includes(options.url)) {
 					window.location.href =
-						'https://qhome.usky.cn/wx/index.html#/pages/index/index';
+						'https://wx.ewoogi.com/wx/index.html#/pages/index/index';
 				} else {
 					uni.showModal({
 						showCancel: false,