...
|
...
|
@@ -7,19 +7,13 @@ |
|
|
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 stopLoading = false,
|
|
|
page = 1;
|
|
|
|
|
|
require('./list-common');
|
|
|
|
|
|
ellipsis.init();
|
|
|
|
|
|
function massageAJAX(pageData) {
|
|
|
let $this, $title, $cont;
|
|
|
|
|
|
loading.showLoadingMask();
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
...
|
...
|
@@ -39,16 +33,6 @@ function massageAJAX(pageData) { |
|
|
|
|
|
$('.collocation-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);
|
|
|
});
|
|
|
|
|
|
loading.hideLoadingMask();
|
|
|
lazyLoad($('img.lazy'));
|
|
|
|
...
|
...
|
|