日程页优化 0 单空态与休息日呈现
自动发布开发环境 Nacos 配置 / publish (push) Successful in 18s

周视图 0 单不再渲染空量轨与 0单,改为次字色「暂无预约」;休息日仅显示休;月视图三种显示模式的空态由「空」统一为「暂无预约」并对休息日隐藏。

仅改动 0 单分支呈现,量轨归一、分段配色、数据与接口未改动。
This commit is contained in:
2026-11-06 21:39:34 +08:00
parent 380e7b42de
commit c2c5c27453
2 changed files with 24 additions and 11 deletions
+16 -11
View File
@@ -155,15 +155,20 @@
<text class="week-row-suffix">日</text>
</view>
<text class="week-row-status {{item.statusText === '休' ? 'rest' : ''}}">{{item.statusText}}</text>
<view class="week-track {{item.totalCount === 0 ? 'empty' : ''}}">
<view wx:for="{{item.artistCounts}}" wx:for-item="count" wx:for-index="countIndex" wx:key="artistId" class="week-segment" style="width: {{count.width}}rpx; background: {{count.color}};">
<text class="week-segment-text">{{count.artistName || count.shortName}}{{count.count}}</text>
<block wx:if="{{item.totalCount === 0}}">
<text wx:if="{{item.statusText !== '休'}}" class="week-row-empty">暂无预约</text>
</block>
<block wx:else>
<view class="week-track">
<view wx:for="{{item.artistCounts}}" wx:for-item="count" wx:for-index="countIndex" wx:key="artistId" class="week-segment" style="width: {{count.width}}rpx; background: {{count.color}};">
<text class="week-segment-text">{{count.artistName || count.shortName}}{{count.count}}</text>
</view>
</view>
</view>
<view class="week-row-tail">
<text class="week-row-total">{{item.totalCount}}单</text>
<text wx:if="{{item.unassignedCount > 0}}" class="week-row-pending">待分配 {{item.unassignedCount}}</text>
</view>
<view class="week-row-tail">
<text class="week-row-total">{{item.totalCount}}单</text>
<text wx:if="{{item.unassignedCount > 0}}" class="week-row-pending">待分配 {{item.unassignedCount}}</text>
</view>
</block>
</view>
</view>
</view>
@@ -200,18 +205,18 @@
<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}};">
<text>{{count.shortName}}{{count.count}}</text>
</view>
<view wx:if="{{item.totalCount === 0}}" class="month-empty">空</view>
<view wx:if="{{item.totalCount === 0 && item.dayStatus !== 'rest'}}" class="month-empty">暂无预约</view>
</view>
<view wx:else class="month-blocks">
<block wx:if="{{monthDisplayMode === 'blocks'}}">
<view wx:for="{{item.expandedBlocks}}" wx:for-item="block" wx:key="key" class="month-order-block" style="background: {{block.color}};"></view>
<view wx:if="{{item.totalCount === 0}}" class="month-empty">空</view>
<view wx:if="{{item.totalCount === 0 && item.dayStatus !== 'rest'}}" class="month-empty">暂无预约</view>
</block>
<block wx:else>
<view wx:for="{{item.rowBlocks}}" wx:for-item="block" wx:key="key" class="month-row-block {{monthRowLabelVisible ? 'named' : ''}}" style="background: {{block.color}};">
<text wx:if="{{monthRowLabelVisible}}">{{block.artistName}}</text>
</view>
<view wx:if="{{item.totalCount === 0}}" class="month-empty">空</view>
<view wx:if="{{item.totalCount === 0 && item.dayStatus !== 'rest'}}" class="month-empty">暂无预约</view>
</block>
</view>
</view>
@@ -722,6 +722,13 @@
gap: 2rpx;
}
.week-row-empty {
flex: 1;
min-width: 0;
color: #71807a;
font-size: 20rpx;
}
.week-row-total {
color: #17211f;
font-size: 20rpx;
@@ -1046,6 +1053,7 @@
.month-empty {
margin-top: 10rpx;
white-space: nowrap;
color: #b5ada4;
font-size: 20rpx;
text-align: center;