Showing
3 changed files
with
24 additions
and
22 deletions
@@ -6,23 +6,14 @@ | @@ -6,23 +6,14 @@ | ||
6 | */ | 6 | */ |
7 | const Vue = require('yoho-vue'); | 7 | const Vue = require('yoho-vue'); |
8 | const lazyload = require('yoho-vue-lazyload'); | 8 | const lazyload = require('yoho-vue-lazyload'); |
9 | -const contentCode = require('content-code'); | ||
10 | -const qs = require('yoho-qs'); | ||
11 | 9 | ||
12 | const brandBox = require('channel/brand-box.vue'); | 10 | const brandBox = require('channel/brand-box.vue'); |
13 | 11 | ||
14 | new Vue({ | 12 | new Vue({ |
15 | el: '#brand', | 13 | el: '#brand', |
16 | - data() { | ||
17 | - return { | ||
18 | - page: 'brand', | ||
19 | - contentCode: contentCode.brand[qs.brand || 'men'] | ||
20 | - }; | ||
21 | - }, | ||
22 | components: { | 14 | components: { |
23 | brandBox | 15 | brandBox |
24 | } | 16 | } |
25 | }); | 17 | }); |
26 | 18 | ||
27 | Vue.use(lazyload); | 19 | Vue.use(lazyload); |
28 | - |
@@ -10,16 +10,18 @@ const channel = { | @@ -10,16 +10,18 @@ const channel = { | ||
10 | lifestyle: '3ad8826fc89fb0d023a4cd06a6991219' | 10 | lifestyle: '3ad8826fc89fb0d023a4cd06a6991219' |
11 | }; | 11 | }; |
12 | 12 | ||
13 | +/* 品牌一览资源位 */ | ||
13 | const brand = { | 14 | const brand = { |
14 | - men: '9ee58aadd9559d07207fe4a98843eaac', | ||
15 | - women: 'aa8d34c85934c2ccc16e2babd3eb5e47', | ||
16 | - lifestyle: '3ad8826fc89fb0d023a4cd06a6991219' | 15 | + men: '7317a4701a1d3ddc8d93a5df77a63b75', |
16 | + women: '84313c4b293a1c0aea985aa16a42a6b5', | ||
17 | + lifestyle: 'f2e7142be1d5d622357c44a572390531' | ||
17 | }; | 18 | }; |
18 | 19 | ||
20 | +/* 分类资源位 */ | ||
19 | const cate = { | 21 | const cate = { |
20 | - men: '9ee58aadd9559d07207fe4a98843eaac', | ||
21 | - women: 'aa8d34c85934c2ccc16e2babd3eb5e47', | ||
22 | - lifestyle: '3ad8826fc89fb0d023a4cd06a6991219' | 22 | + men: '7f885e9cab53231cff34ea236f3f1120', |
23 | + women: 'a6f9dc00219eb7d08520a18864929a30', | ||
24 | + lifestyle: '6f7b590ed3844e680d4052fc5c4d98ad' | ||
23 | }; | 25 | }; |
24 | 26 | ||
25 | module.exports = { | 27 | module.exports = { |
1 | <template> | 1 | <template> |
2 | - <div> | ||
3 | - <resources v-bind:content-code.sync="contentCode"></resources> | ||
4 | - <letter-list></letter-list> | ||
5 | - <brand-list v-bind:channel="'boys'"></brand-list> | ||
6 | - </div> | 2 | + <tab v-bind:page="page"></tab> |
3 | + <resources v-bind:content-code.sync="contentCode"></resources> | ||
4 | + <letter-list></letter-list> | ||
5 | + <brand-list v-bind:channel="'boys'"></brand-list> | ||
7 | </template> | 6 | </template> |
8 | -<style> | ||
9 | -</style> | ||
10 | <script> | 7 | <script> |
8 | + const contentCode = require('content-code'); | ||
9 | + const qs = require('yoho-qs'); | ||
10 | + | ||
11 | + const tab = require('channel/tab.vue'); | ||
11 | const resources = require('component/resources/index.vue'); | 12 | const resources = require('component/resources/index.vue'); |
12 | const letterList = require('channel/letter-list.vue'); | 13 | const letterList = require('channel/letter-list.vue'); |
13 | const brandList = require('channel/brand-list.vue'); | 14 | const brandList = require('channel/brand-list.vue'); |
14 | 15 | ||
16 | + | ||
15 | module.exports = { | 17 | module.exports = { |
18 | + data() { | ||
19 | + return { | ||
20 | + page: 'brand', | ||
21 | + contentCode: contentCode.brand[qs.brand || 'men'] | ||
22 | + }; | ||
23 | + }, | ||
16 | components: { | 24 | components: { |
25 | + tab, | ||
17 | resources, | 26 | resources, |
18 | letterList, | 27 | letterList, |
19 | brandList | 28 | brandList |
-
Please register or login to post a comment