Browse Source

common\common.js

shilin 4 years ago
parent
commit
a10e8605dc
1 changed files with 2 additions and 5 deletions
  1. 2 5
      common/common.js

+ 2 - 5
common/common.js

@@ -54,12 +54,11 @@ class Common {
 
 		} else if (page[page.length - 1].route == "pages/forecast/Forecast") {
 
-			//#ifndef H5
+			//#ifdef H5
 			page[page.length - 1].$refs.r1.viewUserid();
 			page[page.length - 1].$refs.r1.address = uni.getStorageSync('windpowerstationName');
 			page[page.length - 1].$refs.r1.FDC = uni.getStorageSync('windPowerStationId');
 			page[page.length - 1].$refs.r1.windStationName = windpowerstationName.replace('风电场', '');
-
 			page[page.length - 1].$refs.r1.getWeatherDataToday();
 			page[page.length - 1].$refs.r1.getWeatherData7();
 			page[page.length - 1].$refs.r1.getWeatherData();
@@ -67,12 +66,10 @@ class Common {
 			//#endif
 
 
-			//#ifndef APP-PLUS
+			//#ifdef APP-PLUS  
 			page[page.length - 1].$vm.$children[0].address = uni.getStorageSync('windpowerstationName');
 			page[page.length - 1].$vm.$children[0].FDC = uni.getStorageSync('windPowerStationId');
 			page[page.length - 1].$vm.$children[0].windStationName = windpowerstationName.replace('风电场', '');
-
-
 			page[page.length - 1].$vm.$children[0].getWeatherDataToday();
 			page[page.length - 1].$vm.$children[0].getWeatherData7();
 			page[page.length - 1].$vm.$children[0].getWeatherData();