...
|
...
|
@@ -6,6 +6,7 @@ |
|
|
*/
|
|
|
const $ = require('yoho-jquery');
|
|
|
const Vue = require('yoho-vue');
|
|
|
const lazyload = require('yoho-vue-lazyload');
|
|
|
|
|
|
const brandBox = require('channel/brand-box.vue');
|
|
|
|
...
|
...
|
@@ -16,10 +17,12 @@ new Vue({ |
|
|
}
|
|
|
});
|
|
|
|
|
|
Vue.use(lazyload);
|
|
|
|
|
|
const $expand = $('.expand'),
|
|
|
$collapse = $('.collapse'),
|
|
|
$brandIntro = $('.brand-intro'),
|
|
|
exCoTm = 6; // 展开隐藏的倍数
|
|
|
exCoTm = 5; // 展开隐藏的倍数
|
|
|
|
|
|
$expand.on('click', function() {
|
|
|
$brandIntro.removeClass('line-clamp').animate({height: $brandIntro.height() * exCoTm});
|
...
|
...
|
|