Files
past-go/weapp/templates/journal.wxml
T

9 lines
697 B
Plaintext

<template name="journal-entry">
<view class="j-story" bindtap="openJournalEntry" data-id="{{entry.id}}">
<text class="j-story-date">{{entry.dateLabel}}</text><text class="j-story-title">{{entry.title}}</text>
<text wx:if="{{entry.summary}}" class="j-story-summary">{{entry.summary}}</text>
<view wx:if="{{entry.cover}}" class="j-story-photo"><image src="{{entry.cover}}" mode="aspectFill" /><text wx:if="{{entry.imageCount > 1}}" class="j-photo-count">{{entry.imageCount}} 张</text></view>
<view class="j-story-footer"><image src="/images/home-cover-heart.svg" /><text wx:if="{{entry.author}}">{{entry.author}} · </text><text>{{entry.date}}</text></view>
</view>
</template>