Authored by ccbikai

直播资源位完善

... ... @@ -6,12 +6,12 @@ exports.index = (req, res, next) => {
res.render('entry', {
title: '直播列表',
module: 'activity',
page: 'entry',
page: 'live-entry',
best: result[0].data,
living: result[1].data,
pre: result[2].data,
record: result[3].data,
constent: result[4]
content: result[4]
});
}).catch(next);
};
... ...
<div class="yoho-live yoho-page">
{{#content}}
{{! 头部banner}}
{{#if focus}}
{{> resources/banner-top}}
{{/if}}
{{/content}}
<div class="live-rec">
... ...
var Swiper = require('yoho-swiper');
$('.swiper-container').each(function() {
if ($(this).find('.swiper-slide').length > 1) {
new Swiper($(this).get(0), {
lazyLoading: true,
lazyLoadingInPrevNext: true,
loop: true,
autoplay: 3000,
autoplayDisableOnInteraction: true,
paginationClickable: true,
pagination: $(this).closest('.banner-top').find('.pagination-inner').get(0)
});
}
});
... ...