...
|
...
|
@@ -4,16 +4,22 @@ |
|
|
* Date: 2016/7/19
|
|
|
* Time: 16:05
|
|
|
*/
|
|
|
const Vue = require('yoho-vue');
|
|
|
const $ = require('yoho-jquery');
|
|
|
|
|
|
const letterList = require('channel/letter-list.vue');
|
|
|
const $expand = $('.expand'),
|
|
|
$collapse = $('.collapse'),
|
|
|
$brandIntro = $('.brand-intro'),
|
|
|
exCoTm = 6; // 展开隐藏的倍数
|
|
|
|
|
|
new Vue({
|
|
|
el: '#brand',
|
|
|
components: {
|
|
|
letterList: letterList
|
|
|
}
|
|
|
$expand.on('click', function() {
|
|
|
$brandIntro.removeClass('line-clamp').animate({height: $brandIntro.height() * exCoTm});
|
|
|
$expand.hide();
|
|
|
$collapse.show();
|
|
|
});
|
|
|
|
|
|
$collapse.on('click', function() {
|
|
|
$brandIntro.addClass('line-clamp').animate({height: $brandIntro.height() / exCoTm});
|
|
|
$collapse.hide();
|
|
|
$expand.show();
|
|
|
});
|
|
|
|
|
|
require('./brand/index');
|
|
|
require('./brand/brand-list'); |
...
|
...
|
|