<!--components/spacecard/spacecard.wxml-->

<wxs src="../../utils/filter.wxs" module="filter" />
<view>
	<view class="card_box" bindtap="goHome">
		<view class="card_img">
			<view wx:if="{{!imgShow}}" class="picinit">
				 <image src="{{picInitUrl}}" lazy-load="{{true}}" wx:if="{{!item.pic}}"/>
			</view>
			<!-- &width=136&height=108 -->
			<image src="{{imgbaseUrl+cardDate.pic}}" wx:if="{{cardDate.pic}}" class='{{imgShow ? "" : "before-load"}}'  bindload="imageLoad" lazy-load="{{true}}"></image>

		</view>
		<view class="card_msg">
			<view class="card_name">
				<view class="nametxt">
					<text>{{cardDate.localName}}</text>
                    <text wx:if="{{cardDate.isPassengerPassShow}}" class="peoplestate {{cardDate.isPassengerPass=='有人'?'activepeople':''}}">{{cardDate.isPassengerPass}}</text>
				</view>
				<view class="imgbox">
					<view  class="lottie {{canvashidden?'':lottiehidden}}" wx:if="{{canvashidden}}">
						<!-- <lottie id="lottie{{cardDate.id}}" 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>
			<view class="tempnum">
				{{filter.mathFormat(cardDate.temperature)|| '--'}}<text> {{unit}}</text>
			</view>
		</view>
	</view>
	<!-- <van-divider /> -->
</view>