Showing
5 changed files
with
47 additions
and
4 deletions
@@ -18,10 +18,11 @@ const component = { | @@ -18,10 +18,11 @@ const component = { | ||
18 | /* 品牌店铺页面 */ | 18 | /* 品牌店铺页面 */ |
19 | brand: (req, res, next) => { | 19 | brand: (req, res, next) => { |
20 | let params = req.query; | 20 | let params = req.query; |
21 | + | ||
21 | brandModel.getBrandData(params).then(result => { | 22 | brandModel.getBrandData(params).then(result => { |
22 | res.render('brand/index', { | 23 | res.render('brand/index', { |
23 | - module: 'brand', | ||
24 | - page: 'index', | 24 | + module: 'channel', |
25 | + page: 'brand', | ||
25 | result: result | 26 | result: result |
26 | }); | 27 | }); |
27 | }); | 28 | }); |
public/js/channel/brand.page.js
0 → 100644
@@ -4,13 +4,23 @@ | @@ -4,13 +4,23 @@ | ||
4 | * Date: 2016/7/19 | 4 | * Date: 2016/7/19 |
5 | * Time: 10:16 | 5 | * Time: 10:16 |
6 | */ | 6 | */ |
7 | -var $ = require('yoho-jquery'); | 7 | +var $ = require('yoho-jquery'), |
8 | + Vue = require('yoho-vue'); | ||
9 | + | ||
10 | +var letterList = require('channel/letter-list.vue'); | ||
8 | 11 | ||
9 | var $expand = $('.expand'), | 12 | var $expand = $('.expand'), |
10 | $collapse = $('.collapse'), | 13 | $collapse = $('.collapse'), |
11 | $brandIntro = $('.brand-intro'), | 14 | $brandIntro = $('.brand-intro'), |
12 | exCoTm = 6; // 展开隐藏的倍数 | 15 | exCoTm = 6; // 展开隐藏的倍数 |
13 | 16 | ||
17 | +var vm = new Vue({ | ||
18 | + el: '#letter-list', | ||
19 | + components: { | ||
20 | + letterList: letterList | ||
21 | + } | ||
22 | +}); | ||
23 | + | ||
14 | $expand.on('click', function() { | 24 | $expand.on('click', function() { |
15 | $brandIntro.removeClass('line-clamp').animate({height: $brandIntro.height() * exCoTm}); | 25 | $brandIntro.removeClass('line-clamp').animate({height: $brandIntro.height() * exCoTm}); |
16 | $expand.hide(); | 26 | $expand.hide(); |
public/vue/channel/letter-list.vue
0 → 100644
-
Please register or login to post a comment