channel-home.vue
1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<layout-body class="page-detail">
<header-box slot="header">
<span slot="left">
<i class="icon icon-nav"></i>
</span>
<span slot="title">
男士
</span>
<span slot="right">
<i class="icon icon-search"></i>
</span>
</header-box>
<div class="resources">
<resource-focus-image :value="channel.man[0].data"></resource-focus-image>
</div>
</layout-body>
</template>
<script>
import {
FETCH_CHANNEL_MAN_REQUEST
} from 'store/channel/types';
import {mapState} from 'vuex';
import components from 'components/resources';
export default {
name: 'Cate',
data() {
return {
}
},
computed: {
...mapState(['channel']),
},
asyncData({store}) {
return store.dispatch(FETCH_CHANNEL_MAN_REQUEST);
},
components: {...components}
};
</script>
<style>
</style>