Authored by 姜枫

fix collect editorial bug

... ... @@ -28,7 +28,7 @@ const favorite = {
},
getFavoriteEditoreial(param) {
return ServiceAPI.get('/guang/api/*/favorite/getUserFavArticleList', param);
return ServiceAPI.get('guang/api/*/favorite/getUserFavArticleList', param);
},
cancelFavorite(uid, ids, type) {
... ... @@ -43,7 +43,7 @@ const favorite = {
},
cancelEditorialFavorite(uid, ids) {
return ServiceAPI.get('/guang/api/*/favorite/cancelFavorite', {
return ServiceAPI.get('guang/api/*/favorite/cancelFavorite', {
article_id: ids,
uid: uid
});
... ...
... ... @@ -9,6 +9,7 @@
{{> icon/checkbox}}
</div>
<div class="editorial-cover">
<div class="editorial-cate">{{categoryName}}</div>
<a href="/editorial/{{id}}.html" target="_blank">
<img src="{{image src 240 160 1}}" alt="">
</a>
... ...
... ... @@ -43,6 +43,17 @@
.editorial-cover {
width: 240px;
height: 160px;
position: relative;
.editorial-cate {
position: absolute;
top: 0;
left: 0;
padding: 5px 10px;
background-color: #000;
color: #fff;
font-size: 14px;
}
}
.editorial-info {
... ...