mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 23:39:36 +08:00
20250618-改变已读未读颜色
This commit is contained in:
parent
17d42ffddf
commit
a35004e778
@ -35,19 +35,17 @@
|
|||||||
<view class="staff-simple-tip" wx:if="{{item.showStaff && item.staffTip}}">{{item.staffTip}}</view>
|
<view class="staff-simple-tip" wx:if="{{item.showStaff && item.staffTip}}">{{item.staffTip}}</view>
|
||||||
|
|
||||||
<view class="btnView">
|
<view class="btnView">
|
||||||
<view class="action-buttons">
|
<!-- 左边的会务和音控按钮 -->
|
||||||
<!-- 会务人员通知状态-左侧竖排 -->
|
<view class="meeting-btn {{item.serviceReadCount > 0 ? 'read' : 'unread'}}" wx:if="{{item.showNotification && item.serviceStaff}}">
|
||||||
<view class="vertical-notification-container" wx:if="{{item.showNotification}}">
|
会务
|
||||||
<!-- 会务服务组通知状态 -->
|
</view>
|
||||||
<view wx:if="{{item.serviceStaff}}" class="vertical-notification-status {{item.serviceReadCount > 0 ? 'read' : 'unread'}}">
|
<!-- ({{item.serviceReadCount}}/{{item.serviceTotalCount}}) -->
|
||||||
<text class="status-text">会务({{item.serviceReadCount}}/{{item.serviceTotalCount}})</text>
|
<view class="music-btn {{item.musicReadCount > 0 ? 'read' : 'unread'}}" wx:if="{{item.showNotification && item.musicStaff}}">
|
||||||
</view>
|
音控
|
||||||
|
</view>
|
||||||
<!-- 音控组通知状态 -->
|
<!-- ({{item.musicReadCount}}/{{item.musicTotalCount}}) -->
|
||||||
<view wx:if="{{item.musicStaff}}" class="vertical-notification-status {{item.musicReadCount > 0 ? 'read' : 'unread'}}">
|
<!-- 操作按钮 - 自动占满剩余空间并右对齐 -->
|
||||||
<text class="status-text">音控({{item.musicReadCount}}/{{item.musicTotalCount}})</text>
|
<view class="right-buttons">
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<van-button class="action-btn" size="small" plain type="warning" wx:if="{{item.showCancel}}" bind:tap="cancelConfirm" data-id="{{item.id}}" data-status="{{item.status}}">取消预约</van-button>
|
<van-button class="action-btn" size="small" plain type="warning" wx:if="{{item.showCancel}}" bind:tap="cancelConfirm" data-id="{{item.id}}" data-status="{{item.status}}">取消预约</van-button>
|
||||||
<van-button class="action-btn" size="small" plain type="info" wx:if="{{item.showEdit}}" bind:tap="editConfirm" data-id="{{item.id}}">修改信息</van-button>
|
<van-button class="action-btn" size="small" plain type="info" wx:if="{{item.showEdit}}" bind:tap="editConfirm" data-id="{{item.id}}">修改信息</van-button>
|
||||||
<view class="staff-btn-container" wx:if="{{item.showStaff}}">
|
<view class="staff-btn-container" wx:if="{{item.showStaff}}">
|
||||||
|
@ -147,12 +147,15 @@
|
|||||||
|
|
||||||
.itemView .btnView {
|
.itemView .btnView {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: row;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
padding-top: 10rpx;
|
justify-content: flex-end;
|
||||||
padding-bottom: 10rpx;
|
padding: 10rpx 0;
|
||||||
border-top: 1rpx solid rgba(0, 0, 0, 0.05);
|
border-top: 1rpx solid rgba(0, 0, 0, 0.05);
|
||||||
min-height: 90rpx;
|
min-height: 70rpx;
|
||||||
|
overflow-x: auto;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
gap: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.itemView .btnView .btn {
|
.itemView .btnView .btn {
|
||||||
@ -181,8 +184,8 @@
|
|||||||
|
|
||||||
/* 通过按钮绿色样式 */
|
/* 通过按钮绿色样式 */
|
||||||
.approve-btn-success {
|
.approve-btn-success {
|
||||||
color: #000000 !important;
|
color: #909399 !important;
|
||||||
border-color: #000000 !important;
|
border-color: #dcdfe6 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 会务负责人按钮容器 */
|
/* 会务负责人按钮容器 */
|
||||||
@ -221,18 +224,39 @@
|
|||||||
|
|
||||||
/* 操作按钮样式 */
|
/* 操作按钮样式 */
|
||||||
.action-btn {
|
.action-btn {
|
||||||
margin-left: 16rpx !important;
|
margin-left: 0 ;
|
||||||
margin-bottom: 12rpx !important;
|
margin-right: 0 ;
|
||||||
|
margin-bottom: 0 ;
|
||||||
|
font-size: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.staff-btn-container {
|
||||||
|
display: inline-flex;
|
||||||
|
margin: 0 5rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 按钮组样式 */
|
/* 按钮组样式 */
|
||||||
.action-buttons {
|
.action-row {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notification-container {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
gap: 10rpx;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
margin-top: 16rpx;
|
flex-grow: 1;
|
||||||
width: 100%;
|
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 会务服务人员阅读状态容器 */
|
/* 会务服务人员阅读状态容器 */
|
||||||
@ -260,9 +284,9 @@
|
|||||||
|
|
||||||
/* 已读状态 */
|
/* 已读状态 */
|
||||||
.staff-read {
|
.staff-read {
|
||||||
color: #07c160;
|
color: #909399;
|
||||||
background-color: rgba(7, 193, 96, 0.1);
|
background-color: rgba(144, 147, 153, 0.1);
|
||||||
border: 1rpx solid rgba(7, 193, 96, 0.2);
|
border: 1rpx solid rgba(144, 147, 153, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 未读状态 */
|
/* 未读状态 */
|
||||||
@ -319,11 +343,11 @@
|
|||||||
font-size: 22rpx;
|
font-size: 22rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 已读标签 - 绿色 */
|
/* 已读标签 - 灰色 */
|
||||||
.read-tag {
|
.read-tag {
|
||||||
background-color: #f6ffed;
|
background-color: #f5f5f5;
|
||||||
color: #52c41a;
|
color: #909399;
|
||||||
border: 1px solid #b7eb8f;
|
border: 1px solid #dcdfe6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 未读标签 - 红色 */
|
/* 未读标签 - 红色 */
|
||||||
@ -386,11 +410,11 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 已读标签 - 绿色 */
|
/* 已读标签 - 灰色 */
|
||||||
.read-tag {
|
.read-tag {
|
||||||
background-color: #f6ffed;
|
background-color: #f5f5f5;
|
||||||
color: #52c41a;
|
color: #909399;
|
||||||
border: 1px solid #b7eb8f;
|
border: 1px solid #dcdfe6;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 未读标签 - 红色 */
|
/* 未读标签 - 红色 */
|
||||||
@ -437,9 +461,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.notification-status.read {
|
.notification-status.read {
|
||||||
background-color: rgba(76, 175, 80, 0.1);
|
background-color: rgba(144, 147, 153, 0.1);
|
||||||
color: #4CAF50;
|
color: #909399;
|
||||||
border: 1px solid #4CAF50;
|
border: 1px solid #dcdfe6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.notification-status.unread {
|
.notification-status.unread {
|
||||||
@ -611,9 +635,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vertical-notification-status.read {
|
.vertical-notification-status.read {
|
||||||
background-color: rgba(76, 175, 80, 0.1);
|
background-color: rgba(144, 147, 153, 0.1);
|
||||||
color: #4CAF50;
|
color: #909399;
|
||||||
border: 1px solid #4CAF50;
|
border: 1px solid #909399;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vertical-notification-status.unread {
|
.vertical-notification-status.unread {
|
||||||
@ -650,4 +674,87 @@
|
|||||||
|
|
||||||
.status-alert {
|
.status-alert {
|
||||||
color: #F44336;
|
color: #F44336;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 通知标签样式 */
|
||||||
|
.tag-notification {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 4rpx 10rpx;
|
||||||
|
border-radius: 6rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
min-height: 28rpx;
|
||||||
|
line-height: 28rpx;
|
||||||
|
margin-bottom: 6rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-notification.read {
|
||||||
|
background-color: #f0f9eb;
|
||||||
|
color: #67c23a;
|
||||||
|
border: 1rpx solid #c2e7b0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tag-notification.unread {
|
||||||
|
background-color: #fef0f0;
|
||||||
|
color: #f56c6c;
|
||||||
|
border: 1rpx solid #fbc4c4;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 按钮固定一行显示 */
|
||||||
|
.fixed-buttons-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: flex-start;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
overflow-x: auto;
|
||||||
|
padding: 4rpx 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left-buttons {
|
||||||
|
display: flex;
|
||||||
|
gap: 8rpx;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
margin-right: 10rpx;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-buttons {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
flex-grow: 1;
|
||||||
|
white-space: nowrap;
|
||||||
|
margin-left: auto;
|
||||||
|
gap: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meeting-btn, .music-btn {
|
||||||
|
padding: 10rpx 20rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
height: 72rpx;
|
||||||
|
line-height: 52rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin-bottom: 0;
|
||||||
|
font-weight: 500;
|
||||||
|
min-width: 100rpx;
|
||||||
|
margin-right: 8rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meeting-btn.read, .music-btn.read {
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
color: #909399;
|
||||||
|
border: 1rpx solid #dcdfe6;
|
||||||
|
}
|
||||||
|
|
||||||
|
.meeting-btn.unread, .music-btn.unread {
|
||||||
|
background-color: #fef0f0;
|
||||||
|
color: #f56c6c;
|
||||||
|
border: 1rpx solid #fbc4c4;
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user