yingsa/miniprogram/pages/article/list/index.wxml
Ethanfly d07ebb735a fix(env): Update API URL and enhance HTML structure
- Change VITE_API_URL in .env from localhost:3000 to localhost:3001 for backend access.
- Update index.html to replace favicon with logo.png and ensure proper HTML structure.
- Add new dependencies for WangEditor in package.json and package-lock.json to support rich text editing features.
2026-02-06 19:04:16 +08:00

46 lines
1.4 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="header">
<view class="title">活动公告</view>
<view class="subtitle">最新活动与重要通知</view>
</view>
<view wx:if="{{loading}}" class="loading">
<text>加载中...</text>
</view>
<view wx:elif="{{articles.length === 0}}" class="empty">
<text class="empty-title">暂无内容</text>
<text class="empty-subtitle">敬请期待更多活动与公告</text>
</view>
<scroll-view wx:else scroll-y="true" class="list-scroll">
<view class="article-list">
<view
class="article-item"
wx:for="{{articles}}"
wx:key="id"
bindtap="goDetail"
data-id="{{item.id}}"
>
<view class="article-main">
<view class="article-title-row">
<view class="article-title">{{item.title}}</view>
<view class="article-top-badge" wx:if="{{item.isTop}}">置顶</view>
</view>
<view class="article-meta">
<view class="article-category" wx:if="{{item.categoryName}}">
{{item.categoryName}}
</view>
<view class="article-time">{{item.timeText}}</view>
</view>
<view class="article-summary" wx:if="{{item.summary}}">
{{item.summary}}
</view>
</view>
<view class="article-arrow"></view>
</view>
</view>
</scroll-view>
</view>