修改
This commit is contained in:
parent
8cbb64e769
commit
04f9edf7ac
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="app">
|
<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)'
|
<view class="items" :style="{background:listcolor[index % listcolor.length]}" @tap='goProductList(item)'
|
||||||
v-for="(item,index) in goodsCategoryList" :key="index">
|
v-for="(item,index) in goodsCategoryList" :key="index">
|
||||||
<image :src="item.goodsCategoryPicture" mode=""></image>
|
<image :src="item.goodsCategoryPicture" mode=""></image>
|
||||||
@ -11,6 +11,9 @@
|
|||||||
<view style="width:43%" v-if="goodsCategoryList.length%2!=0">
|
<view style="width:43%" v-if="goodsCategoryList.length%2!=0">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="uempty" v-else>
|
||||||
|
<u-empty mode="list" icon-size='220' text='暂无分类'></u-empty>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -113,6 +116,10 @@
|
|||||||
padding: 10rpx 0 0;
|
padding: 10rpx 0 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
||||||
|
.uempty {
|
||||||
|
height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user