card.wxml
1.33 KB
<!--components/2.0/pinglun/card.wxml-->
<wxs src="../../../utils/util.wxs" module="util" />
<view class="view flex align-center justify-center margin-bottom">
<view class="cu-avatar round lg" style="background-image: url('{{post.author_image}}')"></view>
<view class="flex-treble flex flex-direction margin-left-sm">
<view class="txt-24-h text-bold margin-bottom-sm">{{post.author}}</view>
<stat value="{{post.grade}}" cla="card" disabled></stat>
</view>
<view class="text-gray txt-24-h">{{util.unixtoTime(post.create_time,'YYYY-MM-DD')}}</view>
</view>
<view class="view flex align-start justify-center">
<view class="cu-avatar round lg" style="background-color: rgba(0,0,0,0);"></view>
<view class="flex-treble flex flex-direction margin-left-sm">
<view class="text-df margin-bottom-xs" wx:if="{{post.text}}">{{post.text}}</view>
<view class="text-df margin-bottom-xs text-blue">#{{post.eval_label}}</view>
<view class="grid col-3 grid-square" wx:if="{{enclosure.length>0}}">
<block wx:for="{{enclosure}}" wx:key="enclosure">
<view class="bg-image" style="background-image: url('{{item.url}}.lim.jpg')">
<view class="bg-image-video view" wx:if="{{item.avinfo}}"></view>
</view>
</block>
</view>
</view>
</view>