index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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. <image src="{{cardDate.picInit}}" wx:if="{{!imgShow}}"></image>
  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 wx:if="{{!cardDate.pic}}" class="noimgbox">暂无图片</view> -->
  11. </view>
  12. <view class="card_msg">
  13. <view>
  14. <text>{{cardDate.localName}}</text>
  15. <van-icon name="{{cardDate.subscribe?'star':'star-o'}}" wx:if="{{!isCheckbox}}" catchtap="changeStar" data-checked="{{cardDate.subscribe}}" color="{{cardDate.subscribe?'#f5a900':''}}" />
  16. </view>
  17. <view>
  18. <view class="imgbox">
  19. <view class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
  20. <lottie id="lottie" canId="{{cardDate.id}}" animationData="{{statusList[cardDate.stateId].canvasDate}}" width="25" height="25"/></view>
  21. <!-- <image src="{{statusList[cardDate.stateId].canvasDate}}"></image> -->
  22. <text>{{cardDate.state}}</text>
  23. </view>
  24. <view class="tempnum">
  25. {{filter.mathFormat(cardDate.temperature)|| '--'}}{{unit}}
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. <!-- <van-divider /> -->
  31. </view>