1234567891011121314151617181920212223242526272829303132 |
- <!--components/spacecard/spacecard.wxml-->
- <wxs src="../../utils/filter.wxs" module="filter" />
- <view>
- <!-- class="{{imgShow?'hide_box':'del_box'}}" -->
- <view class="card_box" bindtap="goHome">
- <view class="card_img">
- <!-- 1592813009674.jpg -->
- <image src="{{cardDate.picInit}}" wx:if="{{!imgShow}}"></image>
- <image src="{{imgbaseUrl+cardDate.pic}}&width=136&height=108" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}' bindload="imageLoad" lazy-load="{{true}}"></image>
- <!-- <view wx:if="{{!cardDate.pic}}" class="noimgbox">暂无图片</view> -->
- </view>
- <view class="card_msg">
- <view>
- <text>{{cardDate.localName}}</text>
- <van-icon name="{{cardDate.subscribe?'star':'star-o'}}" wx:if="{{!isCheckbox}}" catchtap="changeStar" data-checked="{{cardDate.subscribe}}" color="{{cardDate.subscribe?'#f5a900':''}}" />
- </view>
- <view>
- <view class="imgbox">
- <view class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
- <lottie id="lottie" canId="{{cardDate.id}}" animationData="{{statusList[cardDate.stateId].canvasDate}}" width="25" height="25"/></view>
- <!-- <image src="{{statusList[cardDate.stateId].canvasDate}}"></image> -->
- <text>{{cardDate.state}}</text>
- </view>
- <view class="tempnum">
- {{filter.mathFormat(cardDate.temperature)|| '--'}}{{unit}}
- </view>
- </view>
- </view>
- </view>
- <!-- <van-divider /> -->
- </view>
|