index.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <loading id="loading"/>
  2. <view class="mini_mask" style="height:{{pageHight}}px" wx:if="{{guideUser}}" bindtap="nextStep">
  3. <view class="stepmask step_one">
  4. <view class="one_contant flex_row">
  5. 点击头像到用户页
  6. </view>
  7. </view>
  8. </view>
  9. <van-sticky>
  10. <header>
  11. <view slot="content" class="header-title">
  12. <view class='user-img' bindtap="gotoUser">
  13. <open-data type="userAvatarUrl"></open-data>
  14. </view>
  15. <view class='home-icon' hidden="{{!tenants}}">
  16. <view class="projectname flex_row" bindtap="chooseTenant">{{tenantName}}<image src="../../static/images/downarrow2.png" wx:if="{{tenants.length>1?true:false}}"/></view>
  17. <view class="daytmp flex_row">
  18. <image src="../../static/images/sun.png" />
  19. {{temperatureNum}}°C
  20. </view>
  21. </view>
  22. </view>
  23. </header>
  24. </van-sticky>
  25. <van-toast id="van-toast" />
  26. <view class="contant_box {{(cardList&&cardList.length)?'':'faillogin'}}" id="j_page">
  27. <view class="spacelist_box">
  28. <view class="nospace flex_column" wx:if="{{cardList&&!cardList.length}}">
  29. <view class="nospace_center flex_column">
  30. <image class="nospace_img" src="../../static/images/nospace.png"/>
  31. <text>此处还没有空间</text>
  32. </view>
  33. <view class="nospace_msg flex_column">
  34. <text>请选择下方途径进行调节</text>
  35. <text>调节后方可添加空间</text>
  36. <image class="nospace_down" src="../../static/images/downarrow.png"/>
  37. </view>
  38. </view>
  39. <view class="scannospace flex_column" bindtap="getScancode" wx:if="{{!logined||!tenants}}">
  40. <view class="scan_box flex_column">
  41. <image src="../../static/images/qrcode.png" />
  42. </view>
  43. <text class="scan_name">扫码调节</text>
  44. <text class="scan_scr">扫描空间二维码</text>
  45. </view>
  46. <block wx:for="{{cardList}}">
  47. <van-swipe-cell right-width="{{60}}" key="{{index}}">
  48. <view class="space_item">
  49. <view class="space_bg">
  50. <!-- &width=1029&height=597 -->
  51. <image src="{{imgbaseUrl}}{{item.pic}}" lazy-load="{{true}}" wx:if="{{item.pic}}"/>
  52. <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
  53. </view>
  54. <view class="space_msg">
  55. <view class="msg_left">
  56. <text class="spacename">{{item.localName}}</text>
  57. <view class="spacestate flex_row">
  58. <text>{{item.state}}</text>
  59. <view hidden="{{!lottieShow}}"><lottie id="lottie{{item.id}}" animationData="{{statusList[item.stateId].canvasDate}}" width="25" height="25"/></view>
  60. </view>
  61. </view>
  62. <view class="msg_right" catchtap="toDetail" data-istemp="{{true}}" data-spaceid="{{item.id}}" data-projectid="{{item.projectId}}">
  63. <text>{{item.temperature || '--'}}</text>°C
  64. </view>
  65. </view>
  66. <view class="space_paramelist flex_row">
  67. <block wx:for="{{envNamelist}}" wx:for-index="key" wx:for-item="value">
  68. <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">
  69. <view class="icon_name flex_row">
  70. <image src="{{value.imgSrc}}" /> {{value.name}}
  71. </view>
  72. <view class="parame_num"><text>{{filter.initItemNum(item.projectId,item[key],value.name)}}</text>{{value.unit}}</view>
  73. <view class="parame_tag tag{{key}}bg{{item[key+'level'].level}}" wx:if="{{(item[key]||item[key]==0)}}">
  74. <text>{{item[key+'level'].levelTxt}}</text>
  75. </view>
  76. <view class="parame_tag novalue" wx:else><text>- -</text></view>
  77. </view>
  78. </block>
  79. </view>
  80. <view class="space_btns">
  81. <button class="btns_top {{item.top?'btns_top_active':''}}" catchtap="tapItem" data-index="{{index}}" data-spaceid="{{item}}">
  82. {{item.top?'已':''}}置顶
  83. </button>
  84. <button class="btns_adjust" catchtap="goToadjust" data-index="{{index}}">立即调节</button>
  85. </view>
  86. </view>
  87. <view slot="right" class="delete_icon">
  88. <view class="delete_box flex_column"><image src="../../static/images/delete.png" data-spaceid="{{item.id}}" bindtap="swipeClick"/></view>
  89. </view>
  90. </van-swipe-cell>
  91. </block>
  92. </view>
  93. <!-- 垫板 -->
  94. <view class='placeholder-view' hidden="{{cardList&&cardList.length<=1}}"></view>
  95. </view>
  96. <cover-view class="footer_box {{surveyShow?'footer_box_active':''}}" wx:if="{{logined&&tenants}}">
  97. <cover-view class="footer_box_pop" wx:if="{{surveyShow}}"></cover-view>
  98. <cover-view class="spacedetail" wx:for="{{meauList}}" wx:key="{{index}}" bindtap="meauClick" data-index="{{item.id}}">
  99. <cover-view class="item_img">
  100. <cover-image src="{{item.imgSrc}}" mode="aspectFill"></cover-image>
  101. </cover-view>
  102. <cover-view>
  103. <cover-view class="item_title">{{item.title}}</cover-view>
  104. <cover-view class="item_des">{{item.des}}</cover-view>
  105. </cover-view>
  106. </cover-view>
  107. </cover-view>
  108. <questionnaire class="pagecontainer" wx:if="{{surveyShow}}" bind:surveyClose="surveyClose"></questionnaire>
  109. <wxs src="../../utils/filter.wxs" module="filter" />