git commit -m "移库记录页优化与首页通知弹窗修复:卡片斑马纹、筛选选中态实心化、切换先清空再加载;首页欢迎语点击不弹窗"

This commit is contained in:
zm2000 2026-09-29 11:26:56 +08:00
parent 7070aac1ca
commit 6b3262019f
2 changed files with 25 additions and 5 deletions

View File

@ -1431,6 +1431,9 @@
},
openNoticePopup() {
if (!this.noticeStatItems.length) {
return;
}
this.showNoticePopup = true;
},

View File

@ -63,7 +63,7 @@
<text class="empty-hint">{{ keyword ? '请检查关键字后重试' : '请在上方输入关键字查询' }}</text>
</view>
<view v-else class="record-list">
<view v-for="(item, index) in recordList" :key="item.id || index" class="record-card">
<view v-for="(item, index) in recordList" :key="item.id || index" class="record-card" :class="{ 'record-card--stripe': index % 2 === 1 }">
<view class="record-card__row">
<text class="record-card__label">商品名称</text>
<text class="record-card__value">{{ item.name || '--' }}</text>
@ -234,11 +234,15 @@ export default {
handleTypeChange(value) {
if (this.transferType === value) return;
this.transferType = value;
this.recordList = [];
this.paginationTotal = 0;
this.loadRecordList(1);
},
handleDimensionChange(value) {
if (this.searchDimension === value) return;
this.searchDimension = value;
this.recordList = [];
this.paginationTotal = 0;
this.loadRecordList(1);
},
handlePageChange(page) {
@ -624,8 +628,9 @@ export default {
}
.filter-group__item--active {
background: #ecf3ff;
background: #2979ff;
border-color: #2979ff;
box-shadow: 0 4rpx 12rpx rgba(41, 121, 255, 0.28);
}
.filter-group__item-text {
@ -635,17 +640,20 @@ export default {
}
.filter-group__item--active .filter-group__item-text {
color: #2979ff;
color: #ffffff;
font-weight: 600;
}
/* 移出(橙色警示) */
.filter-group__item--warning {
background: #fff7e6;
background: #ff9800;
border-color: #ff9800;
box-shadow: 0 4rpx 12rpx rgba(255, 152, 0, 0.28);
}
.filter-group__item--warning .filter-group__item-text {
color: #ff9800;
color: #ffffff;
font-weight: 600;
}
.filter-divider {
@ -701,6 +709,15 @@ export default {
box-shadow: 0 6rpx 20rpx rgba(31, 45, 61, 0.06);
}
.record-card--stripe {
background: #dde9fb;
border-color: #dfe7f5;
}
.record-card--stripe .record-card__label {
color: #606266;
}
.record-card__row {
display: flex;
align-items: flex-start;