Files
Mycontent/miniprogram/pages/super-article-mine/super-article-mine.wxml
2026-05-09 18:46:59 +08:00

81 lines
3.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="page">
<view class="nav-bar" style="padding-top: {{statusBarHeight}}px;">
<view class="nav-back" bindtap="goBack">
<icon name="chevron-left" size="44" color="rgba(255,255,255,0.85)"></icon>
</view>
<text class="nav-title">我的动态</text>
<view class="nav-placeholder"></view>
</view>
<view class="nav-offset" style="height: {{statusBarHeight + 44}}px;"></view>
<view
class="compose-bar-fixed"
wx:if="{{!auditMode}}"
style="top: calc({{statusBarHeight}}px + 44px);"
>
<view class="compose-bar-btn" bindtap="goCompose">
<text class="compose-bar-plus"></text>
<text>发动态</text>
</view>
</view>
<view class="feed-wrap {{!auditMode ? 'feed-wrap-has-compose' : ''}}">
<view class="empty-block" wx:if="{{!loading && list.length === 0}}">
<text class="empty-text">暂无动态</text>
<text class="empty-sub">点击上方「发动态」写一条吧</text>
</view>
<block wx:for="{{list}}" wx:for-index="rowIdx" wx:key="id">
<view class="feed-item" hover-class="feed-item-hover" bindtap="openDetail" data-id="{{item.id}}">
<view class="feed-head">
<text class="audit-tag audit-{{item.auditStatus}}">{{item.auditLabel}}</text>
<text class="feed-time">{{item.timeText}}</text>
</view>
<text class="feed-title" wx:if="{{item.title}}">{{item.title}}</text>
<text class="feed-title feed-title-fallback" wx:elif="{{item.preview}}">{{item.preview}}</text>
<text class="feed-title feed-title-fallback" wx:else>动态</text>
<view class="feed-thumb-row" wx:if="{{item.showThumbRow}}" catchtap="noop">
<view class="thumb-cell" wx:for="{{item.thumbSlots}}" wx:for-item="th" wx:key="slotIdx">
<block wx:if="{{th.src && !th.loadFailed}}">
<image
class="thumb-img"
mode="aspectFill"
src="{{th.src}}"
data-rowidx="{{rowIdx}}"
data-slotidx="{{index}}"
data-current="{{th.src}}"
binderror="onThumbError"
bindtap="previewRowImages"
/>
</block>
<view wx:else class="thumb-ph">
<text class="thumb-ph-text">{{th.loadFailed ? '加载失败' : '无效'}}</text>
</view>
</view>
<view wx:if="{{item.thumbMoreCount > 0}}" class="thumb-more">
<text>+{{item.thumbMoreCount}}</text>
</view>
</view>
<text class="feed-teaser-hint">正文请在详情页查看</text>
<view class="feed-actions" catchtap="noop">
<view
wx:if="{{item.auditStatus === 'rejected' || item.auditStatus === 'pending'}}"
class="feed-btn primary"
data-id="{{item.id}}"
bindtap="openEdit"
>编辑</view>
<view class="feed-btn danger" data-id="{{item.id}}" bindtap="tapDeleteArticle">删除</view>
</view>
</view>
</block>
<view class="load-more" wx:if="{{list.length}}">
<text wx:if="{{loadingMore}}">加载中…</text>
<text wx:elif="{{!hasMore}}">已经到底啦</text>
</view>
</view>
</view>