隐藏历史日期可约状态角标
This commit is contained in:
@@ -261,6 +261,7 @@ Page({
|
||||
|
||||
buildMonthDays() {
|
||||
const summaryMap = this.summaryMap()
|
||||
const todayText = dateUtil.formatDate(new Date())
|
||||
const artistTemplate = this.data.artists.map(artist => ({
|
||||
artistId: artist.id,
|
||||
artistName: artist.name,
|
||||
@@ -274,6 +275,7 @@ Page({
|
||||
const artistCounts = this.normalizeArtistCounts(summary.artistCounts || artistTemplate)
|
||||
return {
|
||||
...day,
|
||||
isPast: day.date < todayText,
|
||||
totalCount: summary.totalCount || 0,
|
||||
dayStatus: summary.dayStatus || 'free',
|
||||
artistCounts,
|
||||
|
||||
@@ -122,8 +122,8 @@
|
||||
<view wx:for="{{monthDays}}" wx:key="date" class="month-cell {{item.isCurrentMonth ? '' : 'out-month'}} {{item.date === currentDateText ? 'selected' : ''}}" data-date="{{item.date}}" bindtap="selectDate">
|
||||
<view class="month-cell-head">
|
||||
<text class="month-day">{{item.day}}</text>
|
||||
<text wx:if="{{item.dayStatus === 'full'}}" class="day-mark full">满</text>
|
||||
<text wx:elif="{{item.dayStatus === 'rest'}}" class="day-mark rest">休</text>
|
||||
<text wx:if="{{!item.isPast && item.dayStatus === 'full'}}" class="day-mark full">满</text>
|
||||
<text wx:elif="{{!item.isPast && item.dayStatus === 'rest'}}" class="day-mark rest">休</text>
|
||||
</view>
|
||||
<view wx:if="{{monthDisplayMode === 'count'}}" class="month-bars">
|
||||
<view wx:for="{{item.artistCounts}}" wx:for-item="count" wx:key="artistId" wx:if="{{count.count > 0}}" class="month-artist-bar" style="background: {{count.color}};">
|
||||
|
||||
@@ -633,6 +633,7 @@ rtk node WeChatProgram/utils/theme.test.js
|
||||
- 小程序自动化的 `mp_evaluate` 在部分会话会对任意函数报 `(intermediate value) is not a function`;验证页面状态时改用 `page_setData`、`page_getData`、`page_snapshot` 等不依赖 evaluate 的工具。
|
||||
- 小程序自动化健康检查可能连接到旧项目路径(如 `FD-WeChat-Fronted`)而不是当前 `FM-Wechat-Fronted`,导致 automator session missing;先用正确 `projectPath` 恢复,恢复不完整时记录为连接层验证缺口,不要循环重连。
|
||||
- 管理端小程序数据导出页当前没有真实后端导出预览接口;页面预览应优先复用现有列表/日历接口,导出按钮仍按占位提示处理,避免虚构下载链路。
|
||||
- 规划月视图的历史日期不要展示“满/休”可约状态角标;后端 `dayStatus=rest` 仍可保留给业务状态,前端展示层按日期隐藏历史可约状态即可。
|
||||
|
||||
## Web 体验坑
|
||||
|
||||
|
||||
Reference in New Issue
Block a user