123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <loading id="loading"/>
- <view class="mini_mask" style="height:{{pageHight}}px" wx:if="{{guideUser}}" bindtap="nextStep">
- <view class="stepmask step_one">
- <view class="one_contant flex_row">
- 点击头像到用户页
- </view>
- </view>
- </view>
- <van-sticky>
- <header>
- <view slot="content" class="header-title">
- <view class='user-img' bindtap="gotoUser">
- <open-data type="userAvatarUrl"></open-data>
- </view>
- <view class='home-icon' hidden="{{!tenants}}">
- <view class="projectname flex_row" bindtap="chooseTenant">{{tenantName}}<image src="../../static/images/downarrow2.png" wx:if="{{tenants.length>1?true:false}}"/></view>
- <view class="daytmp flex_row">
- <image src="../../static/images/sun.png" />
- {{temperatureNum}}°C
- </view>
- </view>
- </view>
- </header>
- </van-sticky>
- <van-toast id="van-toast" />
- <view class="contant_box {{(cardList&&cardList.length)?'':'faillogin'}}" id="j_page">
- <view class="spacelist_box">
- <view class="nospace flex_column" wx:if="{{cardList&&!cardList.length}}">
- <view class="nospace_center flex_column">
- <image class="nospace_img" src="../../static/images/nospace.png"/>
- <text>此处还没有空间</text>
- </view>
- <view class="nospace_msg flex_column">
- <text>请选择下方途径进行调节</text>
- <text>调节后方可添加空间</text>
- <image class="nospace_down" src="../../static/images/downarrow.png"/>
- </view>
- </view>
- <view class="scannospace flex_column" bindtap="getScancode" wx:if="{{!logined||!tenants}}">
- <view class="scan_box flex_column">
- <image src="../../static/images/qrcode.png" />
- </view>
- <text class="scan_name">扫码调节</text>
- <text class="scan_scr">扫描空间二维码</text>
- </view>
- <block wx:for="{{cardList}}">
- <van-swipe-cell right-width="{{60}}" key="{{index}}">
- <view class="space_item">
- <view class="space_bg">
- <!-- &width=1029&height=597 -->
- <image src="{{imgbaseUrl}}{{item.pic}}" lazy-load="{{true}}" wx:if="{{item.pic}}"/>
- <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
- </view>
- <view class="space_msg">
- <view class="msg_left">
- <text class="spacename">{{item.localName}}</text>
- <view class="spacestate flex_row">
- <text>{{item.state}}</text>
- <view hidden="{{!lottieShow}}"><lottie id="lottie{{item.id}}" animationData="{{statusList[item.stateId].canvasDate}}" width="25" height="25"/></view>
- </view>
- </view>
- <view class="msg_right" catchtap="toDetail" data-istemp="{{true}}" data-spaceid="{{item.id}}" data-projectid="{{item.projectId}}">
- <text>{{item.temperature || '--'}}</text>°C
- </view>
- </view>
- <view class="space_paramelist flex_row">
- <block wx:for="{{envNamelist}}" wx:for-index="key" wx:for-item="value">
- <view class="parame_item flex_column one-line-text" bindtap="toDetail" data-param="{{key}}" data-spaceid="{{item.id}}" data-projectid="{{item.projectId}}" data-funcid="{{value.funcid}}" data-localname="{{value.localName}}" data-name="{{value.name}}" :key="index">
- <view class="icon_name flex_row">
- <image src="{{value.imgSrc}}" /> {{value.name}}
- </view>
- <view class="parame_num"><text>{{filter.initItemNum(item.projectId,item[key],value.name)}}</text>{{value.unit}}</view>
- <view class="parame_tag tag{{key}}bg{{item[key+'level'].level}}" wx:if="{{(item[key]||item[key]==0)}}">
- <text>{{item[key+'level'].levelTxt}}</text>
- </view>
- <view class="parame_tag novalue" wx:else><text>- -</text></view>
- </view>
- </block>
- </view>
- <view class="space_btns">
- <button class="btns_top {{item.top?'btns_top_active':''}}" catchtap="tapItem" data-index="{{index}}" data-spaceid="{{item}}">
- {{item.top?'已':''}}置顶
- </button>
- <button class="btns_adjust" catchtap="goToadjust" data-index="{{index}}">立即调节</button>
- </view>
- </view>
- <view slot="right" class="delete_icon">
- <view class="delete_box flex_column"><image src="../../static/images/delete.png" data-spaceid="{{item.id}}" bindtap="swipeClick"/></view>
- </view>
- </van-swipe-cell>
- </block>
- </view>
- <!-- 垫板 -->
- <view class='placeholder-view' hidden="{{cardList&&cardList.length<=1}}"></view>
- </view>
- <cover-view class="footer_box {{surveyShow?'footer_box_active':''}}" wx:if="{{logined&&tenants}}">
- <cover-view class="footer_box_pop" wx:if="{{surveyShow}}"></cover-view>
- <cover-view class="spacedetail" wx:for="{{meauList}}" wx:key="{{index}}" bindtap="meauClick" data-index="{{item.id}}">
- <cover-view class="item_img">
- <cover-image src="{{item.imgSrc}}" mode="aspectFill"></cover-image>
- </cover-view>
- <cover-view>
- <cover-view class="item_title">{{item.title}}</cover-view>
- <cover-view class="item_des">{{item.des}}</cover-view>
- </cover-view>
- </cover-view>
- </cover-view>
- <questionnaire class="pagecontainer" wx:if="{{surveyShow}}" bind:surveyClose="surveyClose"></questionnaire>
- <wxs src="../../utils/filter.wxs" module="filter" />
|