yingsa/miniprogram/pages/article/detail/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

18 lines
601 B
Plaintext

<view class="page">
<view class="article-header">
<text class="title">{{article.title}}</text>
<view class="meta">
<text class="time" wx:if="{{article.timeText}}">{{article.timeText}}</text>
<text class="dot" wx:if="{{article.timeText && article.categoryName}}">·</text>
<text class="category" wx:if="{{article.categoryName}}">{{article.categoryName}}</text>
</view>
</view>
<scroll-view scroll-y="true" class="content-scroll">
<view class="article-content">
<rich-text nodes="{{article.contentHtml}}"></rich-text>
</view>
</scroll-view>
</view>