index.wxml 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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. <image src="{{imgbaseUrl+cardDate.pic}}&width=136&height=108" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}' bindload="imageLoad" lazy-load="{{true}}"></image>
  10. </view>
  11. <view class="card_msg">
  12. <view class="card_name">
  13. <view class="nametxt">
  14. <text>{{cardDate.localName}}</text>
  15. </view>
  16. <view class="imgbox">
  17. <view class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
  18. <lottie id="lottie{{cardDate.id}}" canId="{{cardDate.id}}" animationData="{{statusList[cardDate.stateId].canvasDate}}" width="25" height="25"/>
  19. </view>
  20. <!-- <image src="{{statusList[cardDate.stateId].canvasDate}}"></image> -->
  21. <text>{{cardDate.state}}</text>
  22. </view>
  23. </view>
  24. <view class="tempnum">
  25. {{filter.mathFormat(cardDate.temperature)|| '--'}}<text> {{unit}}</text>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- <van-divider /> -->
  30. </view>