Publish Mini Program Dev Version / publish (push) Successful in 2m8s
【重要修复】重写农历双向转换算法(原来全错): - solarToLunar/lunarToSolar 改用标准算法(基准1900-01-31正月初一,UTC避免时区误差) - 验证:2026春节2-17、中秋9-25、端午6-19、2023闰二月全部正确 【首页大日历】 - 日期数字加大到240rpx,超醒目 - 节假日红色喜庆卡片+红数字(春节/国庆/中秋等法定假日) - 工作日绿色卡片+绿数字(一眼知道要上班) - 周末红色数字+米黄卡片 - 节气显示具体时刻(如 立秋 20:29) - 初一/十五金色标记(可在设置关闭) - 佛历提醒:距下一佛诞还有几天(可在设置开启) 【全屏放大弹窗(老年友好)】 - 大日历卡片/宜忌/详情/节日速查 点击均可全屏放大 - 宜忌放大后字号44rpx,详情放大后40rpx 【月历视图】 - swiper 左右滑动换月,预计算5个月居中显示 - 滑到边缘自动补月,可无限滚动 - 点选日期切回日视图 【节日速查】 - 首页显示近期5个节日(中秋/重阳等)+公历日期+倒计时 - 点击直接跳到该日老黄历 【设置页】 - 新增'显示佛历提醒'开关(默认关) - 新增'初一十五高亮'开关(默认开)
100 lines
3.8 KiB
Plaintext
100 lines
3.8 KiB
Plaintext
<view class="container">
|
||
<!-- 用户信息 -->
|
||
<view class="card">
|
||
<view class="section-title">用户信息</view>
|
||
<view class="flex items-center gap-2" wx:if="{{userInfo}}">
|
||
<image src="{{userInfo.avatarUrl}}" class="avatar" mode="aspectFill"/>
|
||
<view>
|
||
<text class="text-base font-medium">{{userInfo.nickName}}</text>
|
||
<text class="text-xs text-muted block">已登录</text>
|
||
</view>
|
||
</view>
|
||
<view class="btn-primary" wx:else bindtap="login">微信登录</view>
|
||
</view>
|
||
|
||
<!-- 偏好设置 -->
|
||
<view class="card">
|
||
<view class="section-title">偏好设置</view>
|
||
|
||
<view class="setting-item">
|
||
<text class="setting-label">周起始日</text>
|
||
<view class="flex gap-2">
|
||
<view class="btn-outline {{weekStartDay === 0 ? 'active' : ''}}" bindtap="setWeekStart" data-v="0">周日</view>
|
||
<view class="btn-outline {{weekStartDay === 1 ? 'active' : ''}}" bindtap="setWeekStart" data-v="1">周一</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="setting-item">
|
||
<text class="setting-label">子时流派</text>
|
||
<view class="flex gap-2">
|
||
<view class="btn-outline {{ziHourSect === 'lateZiNextDay' ? 'active' : ''}}" bindtap="setZiSect" data-v="lateZiNextDay">晚子时算次日</view>
|
||
<view class="btn-outline {{ziHourSect === 'lateZiSameDay' ? 'active' : ''}}" bindtap="setZiSect" data-v="lateZiSameDay">晚子时算当日</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="setting-item">
|
||
<text class="setting-label">真太阳时校正</text>
|
||
<switch checked="{{solarTime}}" bindchange="onSolarTimeChange" color="#C41E3A"/>
|
||
</view>
|
||
|
||
<view class="setting-item">
|
||
<text class="setting-label">显示佛历提醒</text>
|
||
<switch checked="{{showBuddhist}}" bindchange="onBuddhistChange" color="#C41E3A"/>
|
||
</view>
|
||
|
||
<view class="setting-item">
|
||
<text class="setting-label">初一十五高亮</text>
|
||
<switch checked="{{highlightLunar}}" bindchange="onHighlightLunarChange" color="#C41E3A"/>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 收藏管理 -->
|
||
<view class="card">
|
||
<view class="section-title">我的收藏</view>
|
||
<view class="bookmark-list" wx:if="{{bookmarks.length > 0}}">
|
||
<view class="bookmark-item" wx:for="{{bookmarks}}" wx:key="date">
|
||
<view class="flex justify-between items-center">
|
||
<view>
|
||
<text class="text-base font-medium">{{item.date}}</text>
|
||
<text class="text-xs text-muted block">{{item.lunarDate}}</text>
|
||
</view>
|
||
<view class="btn-ghost text-unlucky" bindtap="removeBookmark" data-date="{{item.date}}">删除</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="text-center text-muted" wx:else>
|
||
<text>暂无收藏</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 功能入口 -->
|
||
<view class="card">
|
||
<view class="section-title">功能</view>
|
||
<view class="menu-item" bindtap="navTo" data-url="/pages/fortune/fortune">
|
||
<text class="menu-label">每日运势</text>
|
||
<text class="menu-arrow">›</text>
|
||
</view>
|
||
<view class="menu-item" bindtap="navTo" data-url="/pages/divination/divination">
|
||
<text class="menu-label">占卜</text>
|
||
<text class="menu-arrow">›</text>
|
||
</view>
|
||
<view class="menu-item" bindtap="navTo" data-url="/pages/solar-terms/solar-terms">
|
||
<text class="menu-label">二十四节气</text>
|
||
<text class="menu-arrow">›</text>
|
||
</view>
|
||
<view class="menu-item" bindtap="navTo" data-url="/pages/calendar/calendar">
|
||
<text class="menu-label">月历视图</text>
|
||
<text class="menu-arrow">›</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 关于 -->
|
||
<view class="card">
|
||
<view class="section-title">关于</view>
|
||
<view class="text-sm text-muted">
|
||
<text>老黄历小程序 v1.0.1</text>
|
||
<text class="block mt-1">提供农历、黄历、八字、许愿等功能</text>
|
||
</view>
|
||
</view>
|
||
</view>
|