Publish Mini Program Dev Version / publish (push) Successful in 3m16s
tabBar(5个,全部带图标): - 老黄历(首页) / 许愿 / 八字 / 百科(新) / 我的(原设置) - 移除日历tab,月历并入首页左上角切换 - 移除运势tab,改从'我的'页进入 首页重构: - custom 导航栏,标题'老黄历' - 老式万年历大日历卡片:大日期+农历+干支+宜忌 - 左右箭头切换日期,'回到今天' - 左上角'月历/日历'切换按钮,月历视图复用原日历网格 - 月历点选日期自动切回日视图 新增百科页: - 二十四节气/农历节日/公历节日/干支生肖/黄历术语 分类 - 搜索 + 展开详情 我的页(原设置): - 新增功能入口:每日运势/占卜/二十四节气/月历视图
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
<view class="container">
|
|
<!-- 搜索 -->
|
|
<view class="search-bar">
|
|
<input class="search-input" placeholder="搜索节气、节日、术语..." value="{{keyword}}" bindinput="onSearch" confirm-type="search"/>
|
|
</view>
|
|
|
|
<!-- 分类 -->
|
|
<scroll-view class="cat-scroll" scroll-x enhanced show-scrollbar="{{false}}">
|
|
<view class="cat-list">
|
|
<view
|
|
class="cat-item {{activeCat === item.key ? 'active' : ''}}"
|
|
wx:for="{{categories}}"
|
|
wx:key="key"
|
|
bindtap="switchCat"
|
|
data-key="{{item.key}}"
|
|
>{{item.name}}</view>
|
|
</view>
|
|
</scroll-view>
|
|
|
|
<!-- 条目列表 -->
|
|
<view class="entry-list">
|
|
<view class="card entry-card" wx:for="{{filteredEntries}}" wx:key="title" bindtap="toggleEntry" data-index="{{index}}">
|
|
<view class="flex justify-between items-center">
|
|
<text class="text-lg font-bold font-chinese">{{item.title}}</text>
|
|
<text class="badge badge-outline">{{item.catName}}</text>
|
|
</view>
|
|
<view class="text-sm text-muted mt-1" wx:if="{{!item.open}}">{{item.brief}}</view>
|
|
<view class="entry-detail mt-2" wx:if="{{item.open}}">
|
|
<text class="text-base">{{item.content}}</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="text-center text-muted empty-tip" wx:if="{{filteredEntries.length === 0}}">
|
|
<text>没有找到相关条目</text>
|
|
</view>
|
|
</view>
|
|
</view>
|