|
1 | 1 | <template>
|
2 |
| - <grid> |
3 |
| - <grid-item v-for="item in items" :label="item.label" :link="item.link"> |
4 |
| - <img slot="icon" :src="item.img"> |
5 |
| - </grid-item> |
6 |
| - </grid> |
| 2 | + <panel header="我的博客" :footer="footer" :list="list" :type="type"></panel> |
7 | 3 | </template>
|
8 | 4 |
|
9 | 5 | <script>
|
10 |
| -import {mapMutations} from 'vuex' |
11 |
| -import { Grid, GridItem } from 'vux' |
| 6 | + import {Panel} from 'vux' |
| 7 | + |
| 8 | + export default { |
| 9 | + components:{ |
| 10 | + Panel, |
| 11 | + }, |
12 | 12 |
|
13 |
| -export default { |
14 |
| - data() { |
15 |
| - return { |
16 |
| - items: [{ |
17 |
| - label: "百度", |
18 |
| - link: "https://www.baidu.com", |
19 |
| - img: require("../assets/vux_logo.png"), |
20 |
| - }, { |
21 |
| - label: "滴滴", |
22 |
| - link: "https://common.diditaxi.com.cn/general/webEntry?code=031RcUHP1bDB5717NpHP1U6KHP1RcUHV&state=123#/", |
23 |
| - img: require("../assets/vux_logo.png"), |
24 |
| - }, { |
25 |
| - label: "美团外卖", |
26 |
| - link: "https://takeaway.dianping.com/waimai/wxwallet#!index/source=redir", |
27 |
| - img: require("../assets/vux_logo.png"), |
28 |
| - }] |
| 13 | + data(){ |
| 14 | + return { |
| 15 | + type:'1', |
| 16 | + list: [{ |
| 17 | + src: 'http://placeholder.qiniudn.com/60x60/3cc51f/ffffff', |
| 18 | + title: '标题一', |
| 19 | + desc: '由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。', |
| 20 | + url: '/component/cell' |
| 21 | + }, { |
| 22 | + src: 'http://placeholder.qiniudn.com/60x60/3cc51f/ffffff', |
| 23 | + title: '标题二', |
| 24 | + desc: '由各种物质组成的巨型球状天体,叫做星球。星球有一定的形状,有自己的运行轨道。', |
| 25 | + url: { |
| 26 | + path: '/component/radio', |
| 27 | + replace: false |
| 28 | + } |
| 29 | + }], |
| 30 | + footer: { |
| 31 | + title: '查看更多', |
| 32 | + url: 'http://vux.li' |
| 33 | + } |
| 34 | + } |
| 35 | + } |
29 | 36 | }
|
30 |
| - }, |
31 |
| -
|
32 |
| - components: { |
33 |
| - Grid, |
34 |
| - GridItem, |
35 |
| - }, |
36 |
| -
|
37 |
| - mounted() { |
38 |
| - this.SET_TITLE(this.$t('Discovery')) |
39 |
| - this.SET_RIGHT_OPTION({show:false}) |
40 |
| - }, |
41 |
| -
|
42 |
| - methods: { |
43 |
| - ...mapMutations(['SET_TITLE','SET_RIGHT_OPTION']) |
44 |
| - } |
45 |
| -} |
46 | 37 | </script>
|
0 commit comments