Files
novel_frontend_RcKtFezyRAZX/wechat/pages/history/history.wxml
mzltMpfqGS e4a087e67e init
2026-04-15 19:45:16 +08:00

43 lines
1.6 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.

<!-- pages/history/history.wxml -->
<!-- 浏览历史视图 -->
<view class="history-container">
<!-- 工具栏 -->
<view class="toolbar" wx:if="{{historyList.length > 0}}">
<text class="toolbar-btn" bindtap="onClearHistory">清空历史</text>
</view>
<!-- 历史列表 -->
<view class="history-list">
<view class="history-item" wx:for="{{historyList}}" wx:key="id">
<view class="item-main" bindtap="goToDetail" data-id="{{item.articleId}}">
<image class="item-cover" wx:if="{{item.coverImage}}" src="{{item.coverImage}}" mode="aspectFill" />
<view class="item-info">
<text class="item-title">{{item.title}}</text>
<view class="item-meta">
<text class="author">{{item.authorName}}</text>
<text class="time">{{item.browseTime}}</text>
</view>
</view>
</view>
</view>
</view>
<view class="loading-more" wx:if="{{loading}}">
<text>加载中...</text>
</view>
<view class="no-more" wx:if="{{!hasMore && historyList.length > 0}}">
<text>没有更多了</text>
</view>
<view class="empty-state" wx:if="{{!loading && historyList.length === 0}}">
<text class="iconfont icon-history empty-icon"></text>
<text class="empty-text">暂无浏览历史</text>
</view>
</view>
/**
* @联系作者:16768118056
* @描述:(此项目非免费分享)源码百分百可用,搞定毕设不发愁,支持远程调试安装、二次开发、定制、讲解、文档类。
* @访问:https://www.notmaker.com/detail/8326a897119d4542896c863a69d7bbe7/gtt20260415,查看完整运行演示。
*/