Authored by 郝肖肖

资讯 点赞样式调整

... ... @@ -7,8 +7,8 @@
</a>
<div class="content">{{intro}}</div>
<div class="msg-app">
<span class="like-comment">
<i class="iconfont like-icon {{#if isPraise}}liked{{/if}}">&#xe6b7;</i>
<span class="like-comment {{#if isPraise}}liked{{/if}}">
<i class="iconfont like-icon">&#xe6b7;</i>
<b class="like-num brown-light font">{{praise_num}}</b>
</span>
</div>
... ...
... ... @@ -33,14 +33,12 @@ $('.editorial-index-page').on('click', '.like-icon', function() {
}).then(function(data) {
if (data.code === 200) {
$this.next('b').html(data.data);
$this.toggleClass('liked');
$this.parent('.like-comment').toggleClass('liked');
} else {
new _alert(data.message).show();
}
});
}).on('mouseenter mouseleave', '.like-icon', function() {
$(this).closest('.like').toggleClass('hover');
});
$('.msg-title').each(function() {
... ...
... ... @@ -35,14 +35,12 @@ $('.editorial-list-page').on('click', '.like-icon', function() {
}
}).then(function(data) {
if (data.code === 200) {
$this.toggleClass('liked');
$this.parent('.like-comment').toggleClass('liked');
$this.next('b').html(data.data);
} else {
new _alert(data.message).show();
}
});
}).on('mouseenter mouseleave', '.like-icon', function() {
$(this).closest('.like').toggleClass('hover');
});
$('.msg-title').each(function() {
... ...
... ... @@ -2,7 +2,7 @@
background: #fff;
.center-content {
border-top: 2px solid #eee;
border-top: 1px solid #eee;
}
.about-us {
... ...
... ... @@ -2,7 +2,7 @@
.blk-sign-header {
.center-content {
height: 80px;
border-bottom: 2px solid #eee;
border-bottom: 1px solid #eee;
}
.main-logo {
... ...
... ... @@ -88,15 +88,14 @@
.like-comment {
color: #999;
cursor: pointer;
font-size: 14px;
&.liked {
color: #1b1b1b;
}
.like-icon {
cursor: pointer;
&.liked {
color: #000;
}
}
}
... ...