index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!--components/spacecard/spacecard.wxml-->
  2. <wxs src="../../utils/filter.wxs" module="filter" />
  3. <view>
  4. <!-- class="{{imgShow?'hide_box':'del_box'}}" -->
  5. <view class="card_box" bindtap="goHome">
  6. <view class="card_img">
  7. <!-- 1592813009674.jpg -->
  8. <view wx:if="{{!imgShow}}" class="picinit">
  9. <!-- <van-loading type="spinner" color="#1989fa" size="18"/> -->
  10. <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
  11. </view>
  12. <!-- <image src="{{cardDate.picInit}}" wx:if="{{!imgShow}}"></image> -->
  13. <image src="{{imgbaseUrl+cardDate.pic}}&width=136&height=108" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}' bindload="imageLoad" lazy-load="{{true}}"></image>
  14. <!-- <view wx:if="{{!cardDate.pic}}" class="noimgbox">暂无图片</view> -->
  15. </view>
  16. <view class="card_msg">
  17. <view>
  18. <text>{{cardDate.localName}}</text>
  19. </view>
  20. <view>
  21. <view class="imgbox">
  22. <view class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
  23. <lottie id="lottie{{cardDate.id}}" canId="{{cardDate.id}}" animationData="{{statusList[cardDate.stateId].canvasDate}}" width="25" height="25"/></view>
  24. <!-- <image src="{{statusList[cardDate.stateId].canvasDate}}"></image> -->
  25. <text>{{cardDate.state}}</text>
  26. </view>
  27. <view class="tempnum">
  28. {{filter.mathFormat(cardDate.temperature)|| '--'}}{{unit}}
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- <van-divider /> -->
  34. </view>