index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <!--components/spacecard/spacecard.wxml-->
  2. <wxs src="../../utils/filter.wxs" module="filter" />
  3. <view>
  4. <view class="card_box" bindtap="goHome">
  5. <view class="card_img">
  6. <view wx:if="{{!imgShow}}" class="picinit">
  7. <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
  8. </view>
  9. <!-- &width=136&height=108 -->
  10. <image src="{{imgbaseUrl+cardDate.pic}}" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}' bindload="imageLoad" lazy-load="{{true}}"></image>
  11. </view>
  12. <view class="card_msg">
  13. <view class="card_name">
  14. <view class="nametxt">
  15. <text>{{cardDate.localName}}</text>
  16. <view wx:if="{{cardDate.isPassengerPassShow}}"
  17. class="peoplestate {{cardDate.isPassengerPass=='有人'?'activepeople':''}}">
  18. <image wx:if="{{cardDate.isPassengerPass=='有人'}}" src="../../static/images/person-active.svg"></image>
  19. <image wx:else src="../../static/images/person.svg"></image>
  20. <text>{{cardDate.isPassengerPass}}</text>
  21. </view>
  22. </view>
  23. <view class="imgbox">
  24. <view class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
  25. <!-- <lottie id="lottie{{cardDate.id}}" canId="{{cardDate.id}}" animationData="{{statusList[cardDate.stateId].canvasDate}}" width="25" height="25"/> -->
  26. </view>
  27. <!-- <image src="{{statusList[cardDate.stateId].canvasDate}}"></image> -->
  28. <text>{{cardDate.state}}</text>
  29. </view>
  30. </view>
  31. <view class="tempnum">
  32. {{filter.mathFormat(cardDate.temperature)|| '--'}}<text> {{unit}}</text>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- <van-divider /> -->
  37. </view>