index.wxml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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>
  17. <view class="imgbox">
  18. <view class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
  19. <lottie id="lottie{{cardDate.id}}" canId="{{cardDate.id}}" animationData="{{statusList[cardDate.stateId].canvasDate}}" width="25" height="25"/>
  20. </view>
  21. <!-- <image src="{{statusList[cardDate.stateId].canvasDate}}"></image> -->
  22. <text>{{cardDate.state}}</text>
  23. </view>
  24. </view>
  25. <view class="tempnum">
  26. {{filter.mathFormat(cardDate.temperature)|| '--'}}<text> {{unit}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- <van-divider /> -->
  31. </view>