Authored by Tao

add channel

... ... @@ -28,9 +28,9 @@
</template>
</div>
</div>
<div :style="{minHeight: total + 'px',marginTop: '30px'}">
<div :style="{minHeight: total + 'px'}">
<ProductList :list="productList.list" v-if="productList.list.length > 0" class="bgColor"></ProductList>
<div v-else> 没有数据! </div>
<UfoNoItem :tip="`暂无数据`" v-else></UfoNoItem>
</div>
</div>
</Scroll>
... ... @@ -48,6 +48,7 @@ import Hot from './components/hot';
import ScrollNav from './components/scrollNav';
import ProductList from '../../list/components/productList';
import { setTimeout } from 'timers';
import UfoNoItem from '../../../components/ufo-no-item';
const { mapState, mapActions } = createNamespacedHelpers('home/channel');
const { mapState: mapStateList, mapActions: mapActionsList } = createNamespacedHelpers('list');
... ... @@ -131,7 +132,8 @@ export default {
Sticky,
cubeSticky: Sticky,
cubeStickyEle: Sticky.Ele,
ProductList
ProductList,
UfoNoItem
}
};
</script>
... ...