...
|
...
|
@@ -8,13 +8,18 @@ var $ = require('jquery'), |
|
|
tip = require('../plugin/tip'),
|
|
|
loading = require('../plugin/loading'),
|
|
|
lazyLoad = require('yoho.lazyload'),
|
|
|
ellipsis = require('mlellipsis'),
|
|
|
stopLoading = false;
|
|
|
|
|
|
var page = 1;
|
|
|
|
|
|
ellipsis.init();
|
|
|
|
|
|
$('body').addClass('star-class-body');
|
|
|
|
|
|
function massageAJAX(page) {
|
|
|
var $this, $title, $cont;
|
|
|
|
|
|
loading.showLoadingMask();
|
|
|
$.ajax({
|
|
|
type: 'GET',
|
...
|
...
|
@@ -32,6 +37,17 @@ function massageAJAX(page) { |
|
|
}
|
|
|
|
|
|
$('.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'));
|
|
|
},
|
...
|
...
|
|