65 lines
2.5 KiB
Plaintext
65 lines
2.5 KiB
Plaintext
<!-- components/journal-detail-panel/index.wxml -->
|
|
<t-popup
|
|
class="popup"
|
|
visible="{{visible}}"
|
|
placement="bottom"
|
|
bind:visible-change="closeDetail"
|
|
>
|
|
<view class="detail-panel">
|
|
<view class="detail-content">
|
|
<view class="header">
|
|
<view class="info">
|
|
<view wx:if="{{mode === 'LOCATION'}}" class="title" catchtap="openLocation">
|
|
<t-icon wx:if="{{mode === 'LOCATION'}}" class="icon" name="location-filled" />
|
|
<text class="text">{{journals[currentJournalIndex].location}}</text>
|
|
</view>
|
|
<text wx:if="{{mode === 'DATE'}}" class="title">{{journals[currentJournalIndex].datetime}}</text>
|
|
</view>
|
|
<view class="actions">
|
|
<view wx:if="{{journals.length > 1}}" class="indicator">
|
|
{{currentJournalIndex + 1}}/{{journals.length}}
|
|
</view>
|
|
<t-icon name="close" catchtap="closeDetail" size="48rpx" />
|
|
</view>
|
|
</view>
|
|
<swiper class="journals-swiper" current="{{currentJournalIndex}}" bindchange="onSwiperChange">
|
|
<block wx:for="{{journals}}" wx:key="id">
|
|
<swiper-item class="swiper-item-wrapper">
|
|
<view class="journal-item">
|
|
<view class="header">
|
|
<view wx:if="{{item.type === 'PORTFOLIO'}}" class="portfolio">专拍</view>
|
|
<view
|
|
wx:if="{{item.location && mode === 'DATE'}}"
|
|
class="location"
|
|
catchtap="openLocation"
|
|
data-journal-index="{{currentJournalIndex}}"
|
|
>
|
|
<t-icon class="icon" name="location-filled" />
|
|
<text class="text">{{item.location}}</text>
|
|
</view>
|
|
<view wx:if="{{mode === 'LOCATION'}}" class="datetime">{{item.datetime}}</view>
|
|
</view>
|
|
<view wx:if="{{item.idea}}" class="idea">{{item.idea}}</view>
|
|
<scroll-view wx:if="{{item.columnedMediaItems && item.columnedMediaItems.length > 0}}" scroll-y class="items-scroll">
|
|
<view class="items">
|
|
<view wx:for="{{item.columnedMediaItems}}" wx:for-item="column" wx:for-index="columnIndex" wx:key="columnIndex" class="column">
|
|
<block wx:for="{{column}}" wx:key="attachmentId" wx:for-item="media" wx:for-index="itemIndex">
|
|
<image
|
|
class="item thumbnail {{media.type === 1 ? 'video' : 'image'}}"
|
|
src="{{media.thumbURL}}"
|
|
mode="widthFix"
|
|
catchtap="previewMedia"
|
|
data-item-index="{{media.originalIndex}}"
|
|
/>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</scroll-view>
|
|
</view>
|
|
</swiper-item>
|
|
</block>
|
|
</swiper>
|
|
</view>
|
|
</view>
|
|
</t-popup>
|