Authored by 王水玲

星潮bug修改

... ... @@ -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'));
},
... ...
... ... @@ -263,7 +263,9 @@ $('.pop-intimacy .pop-close, .classroom-mask').on('click', function() {
// overflow: 'visible'
// });
location.reload();
// location.reload();
history.go(0);
});
function setAvatar() {
... ...
... ... @@ -735,11 +735,6 @@
line-height: 46px;
color: #b0b0b0;
margin-top: 10px;
overflow : hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
img {
... ... @@ -749,16 +744,8 @@
.title {
font-size: 40px;
line-height: 48px;
a {
color: #fff;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
}
.count-area {
... ...
... ... @@ -4,7 +4,7 @@
<a href="{{url}}"><img class="lazy" src ="" data-original="{{img}}" /></a>
{{/if}}
<div class="cont-area">
<h2 class="title"><a href="{{url}}">{{title}}</a></h2>
<a href="{{url}}"><h2 class="title">{{title}}</h2></a>
<p class="cont-txt">{{content}}</p>
<div class="count-area">
<span class="time"><i class="iconfont time-ico">&#xe603;</i>{{time}}</span>
... ...