123456789101112131415161718192021222324252627282930313233343536373839 |
- <!--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>
- <view wx:if="{{cardDate.isPassengerPassShow}}"
- class="peoplestate {{cardDate.isPassengerPass=='有人'?'activepeople':''}}">
- <image wx:if="{{cardDate.isPassengerPass=='有人'}}" src="../../static/images/person-active.svg"></image>
- <image wx:else src="../../static/images/person.svg"></image>
- <text>{{cardDate.isPassengerPass}}</text>
- </view>
- </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>
|