Authored by zzzzzzz

合并冲突

@@ -11,7 +11,7 @@ exports.index = (req, res, next) => { @@ -11,7 +11,7 @@ exports.index = (req, res, next) => {
11 living: result[1], 11 living: result[1],
12 pre: result[2], 12 pre: result[2],
13 record: result[3], 13 record: result[3],
14 - constent: result[4] 14 + content: result[4]
15 }); 15 });
16 }).catch(next); 16 }).catch(next);
17 }; 17 };
1 <div class="yoho-live yoho-page"> 1 <div class="yoho-live yoho-page">
2 {{#content}} 2 {{#content}}
3 {{! 头部banner}} 3 {{! 头部banner}}
  4 + {{#if focus}}
4 {{> resources/banner-top}} 5 {{> resources/banner-top}}
  6 + {{/if}}
5 {{/content}} 7 {{/content}}
6 8
7 <div class="live-rec"> 9 <div class="live-rec">
  1 +var Swiper = require('yoho-swiper');
  2 +
  3 +$('.swiper-container').each(function() {
  4 + if ($(this).find('.swiper-slide').length > 1) {
  5 + new Swiper($(this).get(0), {
  6 + lazyLoading: true,
  7 + lazyLoadingInPrevNext: true,
  8 + loop: true,
  9 + autoplay: 3000,
  10 + autoplayDisableOnInteraction: true,
  11 + paginationClickable: true,
  12 + pagination: $(this).closest('.banner-top').find('.pagination-inner').get(0)
  13 + });
  14 + }
  15 +});