This commit is contained in:
2024-01-05 14:45:04 +08:00
parent 8cbb64e769
commit 04f9edf7ac

View File

@ -1,6 +1,6 @@
<template>
<view class="app">
<view class="card">
<view class="card" v-if="goodsCategoryList.length>0">
<view class="items" :style="{background:listcolor[index % listcolor.length]}" @tap='goProductList(item)'
v-for="(item,index) in goodsCategoryList" :key="index">
<image :src="item.goodsCategoryPicture" mode=""></image>
@ -11,6 +11,9 @@
<view style="width:43%" v-if="goodsCategoryList.length%2!=0">
</view>
</view>
<view class="uempty" v-else>
<u-empty mode="list" icon-size='220' text='暂无分类'></u-empty>
</view>
</view>
</template>
<script>
@ -113,6 +116,10 @@
padding: 10rpx 0 0;
background-color: #fff;
.uempty {
height: 100vh;
}
.card {
width: 100%;
display: flex;
@ -146,4 +153,4 @@
}
}
}
</style>
</style>