Authored by 郭成尧

del-mlellipsis

... ... @@ -6,8 +6,7 @@
let $ = require('yoho-jquery'),
tip = require('plugin/tip'),
loading = require('plugin/loading'),
lazyLoad = require('yoho-jquery-lazyload'),
ellipsis = require('yoho-mlellipsis');
lazyLoad = require('yoho-jquery-lazyload');
let $detailList = $('.detail-list'),
stopLoading = false,
... ... @@ -15,12 +14,8 @@ let $detailList = $('.detail-list'),
require('./list-common');
ellipsis.init();
// 翻页
function massageAJAX(pageData) {
let $this, $title, $cont;
loading.showLoadingMask();
$.ajax({
type: 'GET',
... ... @@ -39,17 +34,6 @@ function massageAJAX(pageData) {
}
$('.detail-list').append(data);
// 限制标题字数
$('.cont-area').each(function() {
$this = $(this);
$title = $this.find('.title');
$cont = $this.find('.cont-txt');
$title[0].mlellipsis(2);
$cont[0].mlellipsis(2);
});
lazyLoad($('img.lazy'));
loading.hideLoadingMask();
},
... ...