fix collect editorial bug
Showing
3 changed files
with
14 additions
and
2 deletions
@@ -28,7 +28,7 @@ const favorite = { | @@ -28,7 +28,7 @@ const favorite = { | ||
28 | }, | 28 | }, |
29 | 29 | ||
30 | getFavoriteEditoreial(param) { | 30 | getFavoriteEditoreial(param) { |
31 | - return ServiceAPI.get('/guang/api/*/favorite/getUserFavArticleList', param); | 31 | + return ServiceAPI.get('guang/api/*/favorite/getUserFavArticleList', param); |
32 | }, | 32 | }, |
33 | 33 | ||
34 | cancelFavorite(uid, ids, type) { | 34 | cancelFavorite(uid, ids, type) { |
@@ -43,7 +43,7 @@ const favorite = { | @@ -43,7 +43,7 @@ const favorite = { | ||
43 | }, | 43 | }, |
44 | 44 | ||
45 | cancelEditorialFavorite(uid, ids) { | 45 | cancelEditorialFavorite(uid, ids) { |
46 | - return ServiceAPI.get('/guang/api/*/favorite/cancelFavorite', { | 46 | + return ServiceAPI.get('guang/api/*/favorite/cancelFavorite', { |
47 | article_id: ids, | 47 | article_id: ids, |
48 | uid: uid | 48 | uid: uid |
49 | }); | 49 | }); |
@@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
9 | {{> icon/checkbox}} | 9 | {{> icon/checkbox}} |
10 | </div> | 10 | </div> |
11 | <div class="editorial-cover"> | 11 | <div class="editorial-cover"> |
12 | + <div class="editorial-cate">{{categoryName}}</div> | ||
12 | <a href="/editorial/{{id}}.html" target="_blank"> | 13 | <a href="/editorial/{{id}}.html" target="_blank"> |
13 | <img src="{{image src 240 160 1}}" alt=""> | 14 | <img src="{{image src 240 160 1}}" alt=""> |
14 | </a> | 15 | </a> |
@@ -43,6 +43,17 @@ | @@ -43,6 +43,17 @@ | ||
43 | .editorial-cover { | 43 | .editorial-cover { |
44 | width: 240px; | 44 | width: 240px; |
45 | height: 160px; | 45 | height: 160px; |
46 | + position: relative; | ||
47 | + | ||
48 | + .editorial-cate { | ||
49 | + position: absolute; | ||
50 | + top: 0; | ||
51 | + left: 0; | ||
52 | + padding: 5px 10px; | ||
53 | + background-color: #000; | ||
54 | + color: #fff; | ||
55 | + font-size: 14px; | ||
56 | + } | ||
46 | } | 57 | } |
47 | 58 | ||
48 | .editorial-info { | 59 | .editorial-info { |
-
Please register or login to post a comment