补充数据库数据,修改分类栏内容

This commit is contained in:
2026-05-21 11:50:32 +08:00
parent b8b0b453e0
commit 7ba3d313be
32 changed files with 6657 additions and 1684 deletions

View File

@@ -4,6 +4,7 @@
<scroll-view
class="hmall-secondary-scroll"
direction="horizontal"
:scroll-x="true"
:show-scrollbar="false"
:scroll-with-animation="true"
>
@@ -141,7 +142,11 @@
</view>
<view v-else class="hmall-empty-wrap">
<EmptyState text="当前分类暂无商品"></EmptyState>
<view v-if="emptyStateDescription != ''" class="hmall-empty-state-extended">
<EmptyState :text="emptyStateTitle"></EmptyState>
<text class="hmall-empty-desc">{{ emptyStateDescription }}</text>
</view>
<EmptyState v-else :text="emptyStateTitle"></EmptyState>
</view>
<view v-if="loading || showLoadMore" class="hmall-load-more-status">
@@ -204,6 +209,14 @@ const props = defineProps({
showLoadMore: {
type: Boolean,
default: false
},
emptyStateTitle: {
type: String,
default: '当前分类暂无商品'
},
emptyStateDescription: {
type: String,
default: ''
}
})
@@ -848,6 +861,20 @@ function showMarketPrice(product: Product): boolean {
overflow: hidden;
}
.hmall-empty-state-extended {
padding-bottom: 32rpx;
align-items: center;
}
.hmall-empty-desc {
margin-top: -8rpx;
padding: 0 40rpx;
font-size: 24rpx;
line-height: 34rpx;
color: #9a9a9a;
text-align: center;
}
.hmall-loading-text,
.hmall-feed-end-text {
font-size: 24rpx;