Compare commits

..

2 Commits

2 changed files with 27 additions and 15 deletions

View File

@@ -38,8 +38,6 @@ const moreProductCount = computed(() =>
Math.max(0, props.productNames.length - visibleProducts.value.length), Math.max(0, props.productNames.length - visibleProducts.value.length),
); );
const noProducts = computed(() => props.productNames.length === 0);
function isWeekDayActive(day: number) { function isWeekDayActive(day: number) {
return props.item.weekDays.includes(day); return props.item.weekDays.includes(day);
} }
@@ -95,7 +93,9 @@ function isWeekDayActive(day: number) {
<span v-if="moreProductCount > 0" class="ptm-prod-pill ptm-prod-more"> <span v-if="moreProductCount > 0" class="ptm-prod-pill ptm-prod-more">
+{{ moreProductCount }}更多 +{{ moreProductCount }}更多
</span> </span>
<span v-if="noProducts" class="ptm-prod-pill">未关联商品</span> <span v-if="productNames.length === 0" class="ptm-prod-pill">
未关联商品
</span>
</div> </div>
<div class="ptm-card-ft"> <div class="ptm-card-ft">

View File

@@ -1,16 +1,24 @@
.ptm-editor-drawer { .ptm-editor-drawer {
.g-drawer-bd {
padding: 24px 24px 20px;
}
.g-drawer-close .iconify { .g-drawer-close .iconify {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.g-form-group { .g-form-group {
margin-bottom: 16px; margin-bottom: 20px;
}
.g-form-group:last-child {
margin-bottom: 0;
} }
.g-form-label { .g-form-label {
display: inline-flex; display: inline-flex;
margin-bottom: 8px; margin-bottom: 10px;
font-size: 13px; font-size: 13px;
font-weight: 500; font-weight: 500;
color: #1a1a2e; color: #1a1a2e;
@@ -23,8 +31,9 @@
} }
.g-hint { .g-hint {
margin-top: 6px; margin-top: 8px;
font-size: 12px; font-size: 12px;
line-height: 1.5;
color: #9ca3af; color: #9ca3af;
} }
@@ -129,7 +138,7 @@
.ptm-fg-row { .ptm-fg-row {
display: flex; display: flex;
gap: 10px; gap: 12px;
align-items: center; align-items: center;
} }
@@ -138,23 +147,24 @@
} }
.ptm-fg-sep { .ptm-fg-sep {
font-size: 14px; font-size: 15px;
color: #9ca3af; color: #9ca3af;
} }
.ptm-day-sel { .ptm-day-sel {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 6px; gap: 8px;
margin-bottom: 8px; margin-bottom: 10px;
} }
.ptm-day { .ptm-day {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 42px; min-width: 42px;
height: 28px; height: 30px;
padding: 0 6px;
font-size: 12px; font-size: 12px;
color: #9ca3af; color: #9ca3af;
cursor: pointer; cursor: pointer;
@@ -172,7 +182,8 @@
.ptm-day-quick { .ptm-day-quick {
display: flex; display: flex;
gap: 6px; gap: 8px;
margin-top: 2px;
} }
.ptm-prod-search .g-input { .ptm-prod-search .g-input {
@@ -182,8 +193,8 @@
.ptm-prod-selected { .ptm-prod-selected {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 6px; gap: 8px;
margin-top: 10px; margin-top: 12px;
} }
.ptm-prod-chip { .ptm-prod-chip {
@@ -232,6 +243,7 @@
display: flex; display: flex;
gap: 10px; gap: 10px;
align-items: center; align-items: center;
margin-top: 2px;
} }
} }