|
@@ -18,6 +18,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="contentArea">
|
|
<view class="contentArea">
|
|
|
|
|
+
|
|
|
|
|
+ <view class="theFirstRow">
|
|
|
|
|
+ <image class="data-card__icon" src="/subpages/images/ic_jdmc.png" />
|
|
|
|
|
+ <text class="theFirstRow-name">{{hotelname?(hotelname+'·'):''}}{{roomname?(roomname+'房间'):''}}</text>
|
|
|
|
|
+ <text class="theFirstRow-title">温度</text>
|
|
|
|
|
+ <text class="theFirstRow-value">{{w_temp}}<text class="theFirstRow-unit">℃</text></text>
|
|
|
|
|
+
|
|
|
|
|
+ <view style="margin-left: 30rpx;width: 2rpx; background: #e8e8e8; height: 24rpx;" />
|
|
|
|
|
+ <text class="theFirstRow-title">湿度</text>
|
|
|
|
|
+ <text class="theFirstRow-value">{{w_humidity}}<text class="theFirstRow-unit">%</text></text>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
<view class="menu-tab">
|
|
<view class="menu-tab">
|
|
|
<view
|
|
<view
|
|
|
class="{{!modelList1.length ? 'menu-tab-disenable' : currentMenuTabIndex == 0 ? 'menu-tab-item-active' : 'menu-tab-item'}}"
|
|
class="{{!modelList1.length ? 'menu-tab-disenable' : currentMenuTabIndex == 0 ? 'menu-tab-item-active' : 'menu-tab-item'}}"
|
|
@@ -29,25 +41,13 @@
|
|
|
class="{{!modelList3.length ? 'menu-tab-disenable' : currentMenuTabIndex == 2 ? 'menu-tab-item-active' : 'menu-tab-item'}}"
|
|
class="{{!modelList3.length ? 'menu-tab-disenable' : currentMenuTabIndex == 2 ? 'menu-tab-item-active' : 'menu-tab-item'}}"
|
|
|
data-index="2" bindtap="checkMenuTap">睡眠模式</view>
|
|
data-index="2" bindtap="checkMenuTap">睡眠模式</view>
|
|
|
</view>
|
|
</view>
|
|
|
-
|
|
|
|
|
- <view class="theFirstRow">
|
|
|
|
|
- <image src="/static/icons/ic_temperature.svg" mode="widthFix" />
|
|
|
|
|
- <text class="theFirstRow-title">温度</text>
|
|
|
|
|
- <text class="theFirstRow-value">{{w_temp}}<text class="theFirstRow-unit">℃</text></text>
|
|
|
|
|
-
|
|
|
|
|
- <view style="margin-left: 30rpx;width: 2rpx; background: #e8e8e8; height: 24rpx;" />
|
|
|
|
|
- <image src="/static/icons/ic_humidity.svg" mode="widthFix" />
|
|
|
|
|
- <text class="theFirstRow-title">湿度</text>
|
|
|
|
|
- <text class="theFirstRow-value">{{w_humidity}}<text class="theFirstRow-unit">%</text></text>
|
|
|
|
|
-
|
|
|
|
|
- </view>
|
|
|
|
|
<view wx:if="{{isLoading}}" class="loading-container">
|
|
<view wx:if="{{isLoading}}" class="loading-container">
|
|
|
<text class="loading-text">数据正在加载,请耐心等待...</text>
|
|
<text class="loading-text">数据正在加载,请耐心等待...</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="data-container sliderList">
|
|
<view class="data-container sliderList">
|
|
|
|
|
|
|
|
<!-- 普通的-->
|
|
<!-- 普通的-->
|
|
|
- <view wx:for="{{listSwitch}}" wx:for-index="index" wx:for-item="item" class="sliderItem">
|
|
|
|
|
|
|
+ <view wx:for="{{listSwitch}}" wx:for-index="index" wx:for-item="item" class="sliderItem" wx:key="index">
|
|
|
<view class="data-card" style="{{item.state=='on' ? 'background: #0BC3AA;' : item.bg}}">
|
|
<view class="data-card" style="{{item.state=='on' ? 'background: #0BC3AA;' : item.bg}}">
|
|
|
<image class="data-card__icon" src="{{item.state=='on' ? item.selectedImgSrc : item.imgSrc}}" />
|
|
<image class="data-card__icon" src="{{item.state=='on' ? item.selectedImgSrc : item.imgSrc}}" />
|
|
|
<view class="data-card__text">
|
|
<view class="data-card__text">
|
|
@@ -67,7 +67,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- cover -->
|
|
<!-- cover -->
|
|
|
- <view wx:for="{{listCover}}" wx:for-index="index" wx:for-item="item" class="sliderItem">
|
|
|
|
|
|
|
+ <view wx:for="{{listCover}}" wx:for-index="index" wx:for-item="item" class="sliderItem" wx:key="index">
|
|
|
<view class="data-card">
|
|
<view class="data-card">
|
|
|
<image class="data-card__icon" src="{{item.imgSrc}}" />
|
|
<image class="data-card__icon" src="{{item.imgSrc}}" />
|
|
|
<view class="data-card__text">
|
|
<view class="data-card__text">
|
|
@@ -84,7 +84,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 电视 card-->
|
|
<!-- 电视 card-->
|
|
|
- <view wx:for="{{listMitvMediaPlayer}}" wx:for-index="index" wx:for-item="item" class="sliderItem">
|
|
|
|
|
|
|
+ <view wx:for="{{listMitvMediaPlayer}}" wx:for-index="index" wx:for-item="item" class="sliderItem"
|
|
|
|
|
+ wx:key="index">
|
|
|
<view class="data-card" style="{{item.bg}}">
|
|
<view class="data-card" style="{{item.bg}}">
|
|
|
<image class="data-card__icon" src="{{item.imgSrc}}" />
|
|
<image class="data-card__icon" src="{{item.imgSrc}}" />
|
|
|
<view class="data-card__text">
|
|
<view class="data-card__text">
|
|
@@ -113,7 +114,7 @@
|
|
|
|
|
|
|
|
<!-- 香薰机 -->
|
|
<!-- 香薰机 -->
|
|
|
<view class="test" class="sliderItem" wx:for="{{listAromatherapyMachine}}" wx:for-index="index"
|
|
<view class="test" class="sliderItem" wx:for="{{listAromatherapyMachine}}" wx:for-index="index"
|
|
|
- wx:for-item="item" wx:if="{{item.isAromatherapy}}">
|
|
|
|
|
|
|
+ wx:for-item="item" wx:if="{{item.isAromatherapy}}" wx:key="index">
|
|
|
|
|
|
|
|
<view class="center-view">
|
|
<view class="center-view">
|
|
|
<view class="title-line"></view>
|
|
<view class="title-line"></view>
|
|
@@ -122,7 +123,7 @@
|
|
|
<view class="data-media-player" style="flex-direction: row;">
|
|
<view class="data-media-player" style="flex-direction: row;">
|
|
|
|
|
|
|
|
<view class="data-media-1" wx:for="{{listAromatherapyMachine}}" wx:for-index="index2" wx:for-item="item2"
|
|
<view class="data-media-1" wx:for="{{listAromatherapyMachine}}" wx:for-index="index2" wx:for-item="item2"
|
|
|
- wx:if="{{item2.isAromlight}}">
|
|
|
|
|
|
|
+ wx:if="{{item2.isAromlight}}" wx:key="index2">
|
|
|
<text class="sub-title">{{item2.friendly_name}}</text>
|
|
<text class="sub-title">{{item2.friendly_name}}</text>
|
|
|
<view wx:if="{{item.state=='on'}}" class="btn-pos-view" bindtap="onSelect_All_aromlight"
|
|
<view wx:if="{{item.state=='on'}}" class="btn-pos-view" bindtap="onSelect_All_aromlight"
|
|
|
data-param0="{{index2}}" data-param1="/services" data-param2="/{{item2.domain}}"
|
|
data-param0="{{index2}}" data-param1="/services" data-param2="/{{item2.domain}}"
|
|
@@ -150,7 +151,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="card-data" wx:for="{{listAromatherapyMachine}}" wx:for-index="index2" wx:for-item="item2"
|
|
<view class="card-data" wx:for="{{listAromatherapyMachine}}" wx:for-index="index2" wx:for-item="item2"
|
|
|
- wx:if="{{item2.isAromAtomization}}" style="height: 230rpx;">
|
|
|
|
|
|
|
+ wx:if="{{item2.isAromAtomization}}" style="height: 230rpx;" wx:key="index2">
|
|
|
<image class="data-card__icon" src="{{item2.imgSrc}}" />
|
|
<image class="data-card__icon" src="{{item2.imgSrc}}" />
|
|
|
<text class="data-card__title1">{{item2.friendly_name}}</text>
|
|
<text class="data-card__title1">{{item2.friendly_name}}</text>
|
|
|
<view class="data-card__value">
|
|
<view class="data-card__value">
|
|
@@ -172,7 +173,8 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 加湿器 -->
|
|
<!-- 加湿器 -->
|
|
|
- <view class="test" wx:for="{{listHumidifier}}" wx:for-index="index" wx:for-item="item" class="sliderItem">
|
|
|
|
|
|
|
+ <view class="test" wx:for="{{listHumidifier}}" wx:for-index="index" wx:for-item="item" class="sliderItem"
|
|
|
|
|
+ wx:key="index">
|
|
|
|
|
|
|
|
<view class="center-view">
|
|
<view class="center-view">
|
|
|
<view class="title-line"></view>
|
|
<view class="title-line"></view>
|
|
@@ -217,7 +219,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- 空调 -->
|
|
<!-- 空调 -->
|
|
|
- <view class="test sliderItem" wx:for="{{listClimate}}" wx:for-index="index" wx:for-item="item">
|
|
|
|
|
|
|
+ <view class="test sliderItem" wx:for="{{listClimate}}" wx:for-index="index" wx:for-item="item" wx:key="index">
|
|
|
<view class="center-view">
|
|
<view class="center-view">
|
|
|
<view class="title-line"></view>
|
|
<view class="title-line"></view>
|
|
|
<text class="gray-text">{{item.friendly_name}}</text>
|
|
<text class="gray-text">{{item.friendly_name}}</text>
|
|
@@ -308,7 +310,8 @@
|
|
|
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- <view wx:for="{{listMiotMediaPlayer}}" wx:for-index="index" wx:for-item="item" class="sliderItem">
|
|
|
|
|
|
|
+ <view wx:for="{{listMiotMediaPlayer}}" wx:for-index="index" wx:for-item="item" class="sliderItem"
|
|
|
|
|
+ wx:key="index">
|
|
|
<!-- 一行 -->
|
|
<!-- 一行 -->
|
|
|
<view class="data-media-player" style="{{item.entity_picture}}">
|
|
<view class="data-media-player" style="{{item.entity_picture}}">
|
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|