Kaynağa Gözat

https无法访问

zaijin 3 yıl önce
ebeveyn
işleme
0e4031de2e

+ 1 - 1
common/config.js

@@ -1,5 +1,5 @@
 const node_dev = process.env.H_NODE_ENV
-let baseUrl = 'https://wx.hw.hongweisoft.com/parking'
+let baseUrl = 'http://wx.hw.hongweisoft.com/parking'
 if (node_dev) {
 	baseUrl = process.env.H_BASE_URL
 }

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
 				"env": {
 					"UNI_PLATFORM": "h5",
 					"H_NODE_ENV": "development",
-					"H_BASE_URL": "https://wx.hw.hongweisoft.com/parking",
+					"H_BASE_URL": "http://wx.hw.hongweisoft.com/parking",
 					"DESCRIBE": "测试环境"
 				}
 			},

+ 13 - 11
uni_modules/z-paging/components/z-paging/wxs/z-paging-wxs.wxs

@@ -8,17 +8,19 @@ var currentMoveDistance = 0;
 
 function propObserver(newValue, oldValue, ownerInstance, instance) {
 	var state = ownerInstance.getState();
-	state.currentInstance = instance;
-	var dataset = instance.getDataset();
-	var loading = dataset.loading == true;
-	if (newValue.indexOf('end') != -1) {
-		_setTransform('translateY(0px)', instance)
-		state.moveDistance = 0;
-		state.oldMoveDistance = 0;
-		currentMoveDistance = 0;
-	} else if (newValue.indexOf('begin') != -1) {
-		var refresherThreshold = instance.getDataset().refresherthreshold
-		_setTransformValue(refresherThreshold, instance, state);
+	if (state) {
+		state.currentInstance = instance;
+		var dataset = instance.getDataset();
+		var loading = dataset.loading == true;
+		if (newValue.indexOf('end') != -1) {
+			_setTransform('translateY(0px)', instance)
+			state.moveDistance = 0;
+			state.oldMoveDistance = 0;
+			currentMoveDistance = 0;
+		} else if (newValue.indexOf('begin') != -1) {
+			var refresherThreshold = instance.getDataset().refresherthreshold
+			_setTransformValue(refresherThreshold, instance, state);
+		}
 	}
 }