柒零 1 rok pred
rodič
commit
042e503f5f
5 zmenil súbory, kde vykonal 41 pridanie a 1294 odobranie
  1. 2 0
      app.js
  2. 2 0
      pages/index/index.js
  3. 3 980
      subpages/data/data.js
  4. 2 311
      subpages/data/data.wxml
  5. 32 3
      subpages/scan/scan.js

+ 2 - 0
app.js

@@ -55,6 +55,8 @@ App({
                     wx.setStorageSync('hasHotelAuth', true);
                     wx.setStorageSync('hotelEmpower', intervalRes.data.hotel);
                     wx.setStorageSync('roomEmpower', intervalRes.data.room);
+                    wx.setStorageSync('hname', intervalRes.data.hname);
+                    wx.setStorageSync('rname', intervalRes.data.rname);
                   } else {
                     wx.setStorageSync('hasHotelAuth', false);
                   }

+ 2 - 0
pages/index/index.js

@@ -272,6 +272,8 @@ Page({
             wx.setStorageSync('hasHotelAuth', true);
             wx.setStorageSync('hotelEmpower', intervalRes.data.hotel);
             wx.setStorageSync('roomEmpower', intervalRes.data.room);
+            wx.setStorageSync('hname', intervalRes.data.hname);
+            wx.setStorageSync('rname', intervalRes.data.rname);
           } else {
             wx.setStorageSync('hasHotelAuth', false);
           }

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 3 - 980
subpages/data/data.js


+ 2 - 311
subpages/data/data.wxml

@@ -1,56 +1,12 @@
 <!--pages/data/data.wxml-->
 <view class='container'>
-	<!-- <view class="centered">
-	  <text class="centered-text">舒眠睡眠报告</text>
-	  <text>{{reportDate}}</text>
-	  <text>用户号:12345| SN:{{rsn}}</text>
-	</view> -->
-	<!-- <picker mode="date" bindchange="bindDateChange" class="picker" style="width: 40%;">  
-		    <view class="picker-placeholder">{{reportDate}}</view>  
-		  </picker>  
-		  <picker mode="time" bindchange="bindTimeChange" class="picker" style="width: 40%; margin-left: 4%;">  
-		    <view class="picker-placeholder">{{rgobed_time}}~{{routbed_time}}</view>  
-		  </picker>  -->
 	<view wx:if="{{isLoading}}" class="loading-container">
 		<text class="loading-text">数据正在推送,请稍候...</text>
 	</view>
-	<!-- <view class="picker-row">
-
-		<view class="picker-row_view">
-			<picker mode="selector" range-key="pos" range="{{sns}}" value="{{selectedIndex}}"
-				bindchange="onPickerChange">
-				<view class="picker-row_view">
-					<image class="data-image_c00_0" src="/static/images/report/hotel&room.png" mode="aspectFit"></image>
-					<text
-						class="data-text_c00_0">{{hotelname?(hotelname+'·'):''}}{{roomname?(roomname+'·'):''}}{{sns[selectedIndex].pos}}床</text>
-					<image class="data-image_c00_01" style="margin-right: 6rpx;"
-						src="/static/images/report/arrow_new.png" mode="aspectFit"></image>
-				</view>
-			</picker>
-		</view>
-	
-		<view class="picker_out">
-			<picker style="margin-left:0;" range="{{arrayFourth}}" value="{{valueFourth}}" range-key="text"
-				mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange">
-				<view class="{{reportDate?'picker-placeholder':'picker-placeholder1'}}">{{reportDate?reportDate:'无数据'}}
-					<image class="data-image_c00_01" src="/static/images/report/arrow_new.png" mode="aspectFit"></image>
-				</view>
-			</picker>
-			<picker style="margin-right:0;" range="{{arrayFourth}}" value="{{valueFourth}}" range-key="text"
-				mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange">
-				<view class="{{rgobed_time?'picker-placeholder':'picker-placeholder2'}}">
-					{{rgobed_time?rgobed_time:'无数据'}}~{{routbed_time?routbed_time:'无数据'}}<image
-						class="data-image_c00_01" src="/static/images/report/arrow_new.png" style="margin-right: 20rpx;"
-						mode="aspectFit"></image>
-				</view>
-			</picker>
-		</view>
-	</view> -->
 
 	<view class="top-bar-box">
 		<image class="data-image_c00_0" src="/subpages/images/ic_bg_room.png" mode="aspectFit"></image>
-		<text
-			class="data-text_c00_0">{{hotelname?(hotelname+'·'):''}}{{roomname?(roomname+'·'):''}}{{sns[selectedIndex].pos}}床</text>
+		<text class="data-text_c00_0">{{hotelname?(hotelname+'·'):''}}{{roomname?(roomname+'·'):''}}{{bedname}}床</text>
 		<view class="top-bar-line"></view>
 		<image class="top-bar-icon" src="/subpages/images/ic_bg_date.png" mode="aspectFit"></image>
 		<text wx:if="{{!isToDay}}" class="top-bar-date">{{reportDate?reportDate:'无数据'}}</text>
@@ -63,21 +19,6 @@
 
 
 	<view class="container_00">
-		<!-- <view class="data-row_c00"> -->
-		<!-- <view class="data-item_c00 left_c00"> -->
-		<!-- <image class="data-image_c00" src="/static/images/report/zhoubao_new.png" mode="aspectFit"></image>
-				<text class="data-text_c00">周报 </text>
-				<image class="data-image_c00" src="/static/images/report/yuebao_new.png" mode="aspectFit"></image>
-				<text class="data-text_c00">月报 </text> -->
-		<!-- <image class="data-image_c00" src="/static/images/report/tuisong_new.png" mode="aspectFit"></image>
-				<picker mode="selector" range-key="friendly_name1" range="{{tvEntityIds}}" value="{{tvEntityIdsIndex}}"
-					bindchange="tvEntityIdsChange" wx:if="{{ifOneMoreTV}}">
-					<text class="data-text_c00">推送电视 </text>
-				</picker>
-				<text class="data-text_c00" bindtap="tvEntityIdChange" wx:else>推送电视 </text>
-			</view> -->
-		<!-- </view> -->
-		<!-- <view class="separator_c00"></view> -->
 
 		<view class="circle-container-yh">
 			<view class="text-container-yh left-text-yh">
@@ -102,10 +43,6 @@
 				</view>
 				<view class="text-row-yh">
 					<text class="text-content-yh_1">{{rgobed_time}}~{{routbed_time}}</text>
-
-					<!-- <text class="text-content-yh_1">{{rinbed_duration.formattedHours}}<text
-							class="text-content-yh_1-units">小时</text>{{rinbed_duration.formattedMinutes}}<text
-							class="text-content-yh_1-units">分钟</text></text> -->
 				</view>
 			</view>
 		</view>
@@ -120,24 +57,6 @@
 
 
 
-
-	<!-- <view class="container_1">  
-    <view class="item_c1">  
-      <image class="image_c1" src="/static/images/report/c_11.png" mode="aspectFit"></image>  
-      <view class="text-container_c1">  
-        <view><text class="text-line_c1">睡眠总时长</text></view>
-        <view><text class="text-line_c1">{{rtotal_duration}}分钟</text></view>  
-      </view>  
-    </view>  
-    <view class="item_c1">  
-      <image class="image_c1" src="/static/images/report/c_12.png" mode="aspectFit"></image>  
-      <view class="text-container_c1">  
-        <view><text class="text-line_c1">睡眠时间</text></view>  
-        <view><text class="text-line_c1">{{rgobed_time}}~{{routbed_time}}</text></view>  
-      </view>  
-    </view>  
-  </view> -->
-
 	<view class="big-title_c2-box">
 		<text class="big-title_c2">各项睡眠监测数据统计</text>
 		<view class="big-title_c2-line"></view>
@@ -263,22 +182,6 @@
 				data-subIndex="1" bindtap="toWarmReminder">
 			</image>
 		</view>
-		<!-- <view class="data-row_c5">  
-      <view class="data-item_c5 left_c5">  
-        <image class="data-image_c5" src="/static/images/report/c_52.png" mode="aspectFit"></image>  
-        <text class="data-text_c5">周报  </text>
-		<image class="data-image_c5" src="/static/images/report/c_52.png" mode="aspectFit"></image>
-		<text class="data-text_c5">月报  </text>
-		<image class="data-image_c5" src="/static/images/report/c_52.png" mode="aspectFit"></image>
-		<text class="data-text_c5">推送电视  </text>
-		
-      </view>  
-      <view class="data-item_c5 right_c5">   
-        <picker mode="selector" range-key="pos" range="{{sns}}" value="{{selectedIndex}}" bindchange="onPickerChange">
-			<view>请选择:{{sns[selectedIndex].pos}}床</view>  
-        </picker>  
-      </view>  
-    </view> -->
 		<view class="separator_c5"></view>
 		<view class="data-row_c5">
 			<view class="data-item_c5 left_c5">
@@ -316,45 +219,9 @@
 
 
 
-		<!-- <view class="circle-container-yh">
-	 		  <view class="text-container-yh left-text-yh">  
-	 			<view class="text-row-yh">
-	 			  <view class="blue-dot"></view>  
-	 			  <text class="text-content-yh">睡眠总时长</text>  
-	 			</view>  
-	 			<view class="text-row-yh">  
-	 			  <image class="icon-yh" src="/static/images/report/c_11.png" mode="aspectFit"></image>  
-	 			  <text class="text-content-yh">8小时30分</text>  
-	 			</view>   
-	 		  </view>
-	<canvas canvas-id="myCanvas" style="width: 350rpx; height: 350rpx;margin-top:20rpx;"></canvas>
-	   <view class="text-container-yh right-text-yh">  
-	     <view class="text-row-yh">
-	       <view class="blue-dot"></view>   
-	       <text class="text-content-yh">睡眠时间</text>  
-	     </view>  
-	     <view class="text-row-yh">  
-	       <image class="icon-yh" src="/static/images/report/c_11.png" mode="aspectFit"></image>  
-	       <text class="text-content-yh">7小时30分</text>  
-	     </view>   
-	   </view>  
-	 </view> -->
-
 	</view>
 
 
-	<!-- <view class="container_6">
-    <view class="title-row_c6">  
-      <view class="title-left_c6">  
-        <image class="title-image_c6" src="/static/images/report/c6_sm_1.png" mode="aspectFit"></image>  
-        <text class="title-text_c6">睡眠效率</text> 
-		 <image class="header-image_comma" src="/static/images/report/comma_new.png" mode="aspectFit"></image>  
-      </view>  
-      <view class="title-right_c6">  
-        <text class="title-text-right_c6">{{sleep_efficiency}}</text>  
-      </view>  
-    </view>
-  </view> -->
 
 	<view class="container_6">
 		<view class="title-row_c6">
@@ -364,12 +231,6 @@
 				<image class="header-image_comma" src="/static/images/report/comma_new.png" mode="aspectFit"
 					data-index="4" data-subIndex="1" bindtap="toWarmReminder"></image>
 			</view>
-			<!-- <view class="title-right_c6">
-				<text class="title-text-right_c6_1">入睡时长</text>
-				<text class="title-text-right_c6">{{rrs_duration.formattedHours}}<text
-						class="text-line_c31-units">小时</text>{{rrs_duration.formattedMinutes}}<text
-						class="text-line_c31-units">分钟</text></text>
-			</view> -->
 		</view>
 		<view class="separator_c00"></view>
 		<view class="title-row_c6">
@@ -384,18 +245,13 @@
 		</view>
 		<view class="title-row_c6">
 			<view class="title-left_c6">
-				<!-- <image class="title-image_c6" src="/static/images/report/lichuang_cishu_new.png" mode="aspectFit">
-				</image> -->
 				<text class="data-item_c6 left_c61" style="font-size: 28rpx;">离床次数</text>
-				<!-- <image class="header-image_comma" src="/static/images/report/comma_new.png" mode="aspectFit"
-					data-index="4" data-subIndex="2" bindtap="toWarmReminder"></image> -->
 			</view>
 			<view class="title-right_c6">
 				<text class="title-text-right_c6">{{routbed_count_value}}<text
 						class="text-line_c31-units">次</text></text>
 			</view>
 		</view>
-		<!-- <text class="sub-title">睡眠状态</text> -->
 
 		<view class="card-h">
 
@@ -417,17 +273,13 @@
 		<view class="separator_c00" style="margin-top: 30rpx;"></view>
 		<view class="title-row_c6">
 			<view class="title-left_c6">
-				<!-- <image class="title-image_c6" src="/static/images/report/tidong_cishu_new.png" mode="aspectFit"></image> -->
 				<text class="data-item_c6 left_c61" style="font-size: 28rpx;">体动次数</text>
-				<!-- <image class="header-image_comma" src="/static/images/report/comma_new.png" mode="aspectFit"
-					data-index="4" data-subIndex="3" bindtap="toWarmReminder"></image> -->
 			</view>
 			<view class="title-right_c6">
 				<text class="title-text-right_c6">{{rmove_arrFrequency}}<text
 						class="text-line_c31-units">次</text></text>
 			</view>
 		</view>
-		<!-- <text class="sub-title">睡眠状态</text> -->
 		<view class="card-h">
 
 			<view class="chart-left-box">
@@ -457,9 +309,6 @@
 				<image class="header-image_comma" src="/static/images/report/comma_new.png" mode="aspectFit"
 					data-index="5" data-subIndex="1" bindtap="toWarmReminder"></image>
 			</view>
-			<!-- <view class="title-right_c6">  
-        <text class="title-text-right_c6">右侧文本</text>  
-      </view> -->
 		</view>
 
 		<view class="data-row_c6">
@@ -500,9 +349,6 @@
 			<view class="data-item_c6 left_c61">打鼾</view>
 			<view class=" right_c6">{{rsnoring_arrFrequency}}<text class="text-line_c31-units">次</text></view>
 		</view>
-		<!-- <view class="echarts-container_c6">
-			<ec-canvas id="mychart-dom-bar9" canvas-id="mychart-bar" ec="{{ ec9 }}"></ec-canvas>
-		</view> -->
 
 
 		<text class="sub-title">睡眠状态</text>
@@ -527,9 +373,6 @@
 			<view class="data-item_c6 left_c61">呼吸暂停</view>
 			<view class=" right_c6">{{rhxstop_arrFrequency}}<text class="text-line_c31-units">次</text></view>
 		</view>
-		<!-- <view class="echarts-container_c6">
-			<ec-canvas id="mychart-dom-bar10" canvas-id="mychart-bar" ec="{{ ec10 }}"></ec-canvas>
-		</view> -->
 		<text class="sub-title">睡眠状态</text>
 		<view class="card-h">
 			<view class="chart-left-box">
@@ -555,7 +398,6 @@
 				<text>风险预警: {{(sleepHourSub
 					&& rhxstop_arrFrequency>=5*sleepHourSub)?'根据呼吸暂停指数(AHI),您的呼吸暂停次数已达到5次/每小时':'无'}}</text>
 			</view>
-			<!-- <view class="data-item_c6 right_c6">0次</view>  -->
 		</view>
 	</view>
 
@@ -569,9 +411,6 @@
 				<image class="header-image_comma" src="/static/images/report/comma_new.png" mode="aspectFit"
 					data-index="3" data-subIndex="1" bindtap="toWarmReminder"></image>
 			</view>
-			<!-- <view class="title-right_c6">  
-        <text class="title-text-right_c6">右侧文本</text>  
-      </view> -->
 		</view>
 		<view class="card-h" style="margin-top: 30rpx;justify-content: space-around;">
 			<view class="card-item">
@@ -599,50 +438,8 @@
 				<text class="card-t3">REM</text>
 			</view>
 		</view>
-		<!-- <view class="card5-h"> -->
-
-		<!-- <view class="card-v">
-				<text class="card-t1">清醒</text>
-				<text class="card-t2">{{rawake_durationFormat.formattedMinutes || '0H 0M'}}</text>
-			</view>
-
-			<view class="card-v">
-				<text class="card-t1">REM({{rin_duration_efficiency}})</text>
-				<text class="card-t2">{{rin_durationFormat.formattedMinutes || '0H 0M'}}</text>
-			</view>
-
-			<view class="card-v">
-				<text class="card-t1">浅睡({{rlight_duration_efficiency}})</text>
-				<text class="card-t2">{{rlight_durationFormat.formattedMinutes || '0H 0M'}}</text>
-			</view>
-
-			<view class="card-v">
-				<text class="card-t1">深睡({{rdeep_duration_efficiency}})</text>
-				<text class="card-t2">{{rdeep_durationFormat.formattedMinutes || '0H 0M'}}</text>
-			</view> -->
-		<!-- </view> -->
-		<!-- <view class="echarts-container_c6">
-			<ec-canvas id="mychart-dom-bar11" canvas-id="mychart-bar" ec="{{ ec11 }}"></ec-canvas>
-		</view> -->
 		<view class="card-h" style="margin-top: 30rpx;position: relative;">
-			<!-- <view class="chart-left-box">
-				<view class="chart-left-title-box">
-					<view class="dot" style="background: #AB81FF;border-radius: 4rpx;"></view>
-					<text class="left-title">深睡</text>
-				</view>
-				<view class="chart-left-title-box">
-					<view class="dot" style=" background: #D8C8FE;border-radius: 4rpx;"></view>
-					<text class="left-title">浅睡</text>
-				</view>
-				<view class="chart-left-title-box">
-					<view class="dot" style=" background: #F1E9FE;border-radius: 4rpx;"></view>
-					<text class="left-title">REM</text>
-				</view>
-				<view class="chart-left-title-box">
-					<view class="dot" style=" background: #FDEFA6;border-radius: 4rpx;"></view>
-					<text class="left-title">清醒</text>
-				</view>
-			</view> -->
+
 			<view style="position: absolute;top: 0;left: 30rpx;right: 30rpx;bottom: 60rpx;border: 1rpx solid #EEEEEE;">
 			</view>
 			<view class="echarts-container_c6" style="flex:1;height: 390rpx;">
@@ -721,112 +518,6 @@
 
 	</view>
 
-	<!-- <view class="container1">
-    <button class="{{isButtonClicked ? 'gradient-button gradient-button-clicked' : 'gradient-button'}}" bindtap="telScreeProjection">生成报告并推送到电视</button>  
-  </view> -->
-
-
-	<!-- <view class='canvas5'>
-    <ec-canvas id="mychart-dom-line6" canvas-id="mychart-line6" ec="{{ ec6 }}" class="canvas5"></ec-canvas>
-  </view>
-  <view class='container'>
-    <view class='list'>
-      <view style='color:#686868;'>睡眠总时长</view>
-      <view class="content" style='color:#686868;'>{{rtotal_duration}}分钟</view>
-    </view>
-    <view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-    <view class='list'>
-      <view style='color:#686868;'>在床时长</view>
-      <view class="content" style='color:#686868;'>{{rinbed_duration}}分钟</view>
-    </view>
-    <view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-    <view class='list'>
-      <view style='color:#686868;'>上床时间</view>
-      <view class="content" style='color:#686868;'>{{rgobed_time}}</view>
-    </view>
-    <view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-    <view class='list'>
-      <view style='color:#686868;'>离床时间</view>
-      <view class="content" style='color:#686868;'>{{routbed_time}}</view>
-    </view>
-    <view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>离床次数</view>
-  	  <view class="content" style='color:#686868;'>{{routbed_count_value}}</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>清醒时长</view>
-  	  <view class="content" style='color:#686868;'>{{rawake_duration}}分钟</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>清醒时长</view>
-  	  <view class="content" style='color:#686868;'>{{rawake_duration}}分钟</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>呼吸平均值</view>
-  	  <view class="content" style='color:#686868;'>{{ravg_hx_value}}次</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>呼吸平均值评分描述</view>
-  	  <view class="content" style='color:#686868;'>{{ravg_hx_desc}}</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>心率平均值</view>
-  	  <view class="content" style='color:#686868;'>{{ravg_rh_value}}次</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>心率平均值评分描述</view>
-  	  <view class="content" style='color:#686868;'>{{ravg_rh_desc}}</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>睡眠报告得分值</view>
-  	  <view class="content" style='color:#686868;'>{{rscore_value}}分</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  	<view class='list'>
-  	  <view style='color:#686868;'>睡眠报告得分评比描述</view>
-  	  <view class="content" style='color:#686868;'>{{rscore_desc}}</view>
-  	</view>
-  	<view style='width: 680rpx;height: 1rpx;background:#62c4d9;'></view>
-  	
-  </view>
-  
-  
-  <view class="container1">
-    <button class="{{isButtonClicked ? 'gradient-button gradient-button-clicked' : 'gradient-button'}}" bindtap="telScreeProjection">生成报告并推送到电视</button>  
-  </view>
-  
-  <view class='canvas1' style="margin-top:50rpx;">
-    <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec1 }}" class="canvas1"></ec-canvas>
-  </view>
-  <view class='canvas2'>
-    <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec2 }}" class="canvas2"></ec-canvas>
-  </view>
-  <view class='canvas3'>
-    <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec3 }}" class="canvas3"></ec-canvas>
-  </view>
-  <view class='canvas4'>
-    <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec4 }}" class="canvas4"></ec-canvas>
-  </view>
-  <view class='canvas5'>
-    <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec5 }}" class="canvas5"></ec-canvas>
-  </view> -->
 	<authorized-login-dialog showDialog="{{showAuthorizedDialog}}"
 		bind:authorizationSuccessful="authorizationSuccessful"></authorized-login-dialog>
 </view>

+ 32 - 3
subpages/scan/scan.js

@@ -1,6 +1,7 @@
 // logs.js
 const util = require('../../utils/util.js')
 
+const homeApi_empower = "https://aipush.aidsleep.cn";
 Page({
   data: {
     showAuthorizedDialog: false,
@@ -98,14 +99,42 @@ Page({
     this.setData({
       hasAuth: hasAuth
     })
-    // if (hasAuth) {
+    if (hasAuth) {
     //   var userInfo = wx.getStorageSync("userInfo");
     //   this.setData({
     //     userName: userInfo.userName || "用户登录",
     //     avatarUrl: userInfo.avatarUrl || defaultAvatarUrl,
     //     phoneNumber: userInfo.phoneNumber || ""
-    //   })
-    // }
+      //   })
+      
+      // 判断扫码控制权限
+      wx.request({
+        url: `${homeApi_empower}/wxstatus`,
+        data: {
+          unionid: wx.getStorageSync('unionid'),
+          openid: wx.getStorageSync('openid'),
+          token: wx.getStorageSync('token'),
+        },
+        method: 'POST',
+        success: function (intervalRes) {
+          console.log('intervalRes=' + JSON.stringify(intervalRes));
+          console.log('intervalRes.data=' + JSON.stringify(intervalRes.data));
+          //empower.js? [sm]:152 intervalRes.data={"st":"success","status":"0"}
+          if (intervalRes.data && intervalRes.data.st && intervalRes.data.status && intervalRes.data.st == 'success' && intervalRes.data.status == '1') {
+            wx.setStorageSync('hasHotelAuth', true);
+            wx.setStorageSync('hotelEmpower', intervalRes.data.hotel);
+            wx.setStorageSync('roomEmpower', intervalRes.data.room);
+            wx.setStorageSync('hname', intervalRes.data.hname);
+            wx.setStorageSync('rname', intervalRes.data.rname);
+          } else {
+            wx.setStorageSync('hasHotelAuth', false);
+          }
+        },
+        fail: function (error) {
+
+        }
+      });
+    }
     return hasAuth;
   },
   authorizationSuccessful() {

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov