Authored by 邱骏

pull

@@ -19,7 +19,13 @@ @@ -19,7 +19,13 @@
19 <div class="note-header">Nike 旗下大热鞋款 Air Max 95</div> 19 <div class="note-header">Nike 旗下大热鞋款 Air Max 95</div>
20 <div class="note-content">Nike 旗下大热鞋款 Air Max 95 一直以来在街头造型当中的能见度都算高,凭藉其舒适脚感与百搭外型 @NIKE官方 Max 95 也轻松成为许多鞋迷的心头好紧接「Triple White」之后,备受期待的 Nike 全新鞋款 SF-AF1 Mid 又有一双鞋的「Tiger Camo」配色率先现身网络。</div> 20 <div class="note-content">Nike 旗下大热鞋款 Air Max 95 一直以来在街头造型当中的能见度都算高,凭藉其舒适脚感与百搭外型 @NIKE官方 Max 95 也轻松成为许多鞋迷的心头好紧接「Triple White」之后,备受期待的 Nike 全新鞋款 SF-AF1 Mid 又有一双鞋的「Tiger Camo」配色率先现身网络。</div>
21 <div class="note-date">2019-01-02</div> 21 <div class="note-date">2019-01-02</div>
22 - <div class="praise-wrapper" ></div> 22 + <div class="praise-wrapper">
  23 + <div class="praise-border"></div>
  24 + <div class="praise-div">
  25 + <div class="praise-icon"></div>
  26 + <div class="praise-num">1829</div>
  27 + </div>
  28 + </div>
23 </div> 29 </div>
24 30
25 <div class="recommend-container"> 31 <div class="recommend-container">
@@ -111,12 +117,43 @@ export default { @@ -111,12 +117,43 @@ export default {
111 117
112 .praise-wrapper { 118 .praise-wrapper {
113 margin-top: 60px; 119 margin-top: 60px;
114 - margin-left: calc((100%-160px)/2); 120 + width: 100%;
115 height: 160px; 121 height: 160px;
  122 + display: flex;
  123 + align-items: center;
  124 + justify-content: center;
  125 + position: relative;
  126 +}
  127 +
  128 +.praise-border {
116 width: 160px; 129 width: 160px;
117 - background: url("~statics/image/coupon/used@3x.png"); 130 + height: 160px;
  131 + border-radius: 50%;
  132 + border: 2px solid #EEEEEE;
  133 + position: absolute;
  134 + top: 0;
  135 + left: calc((100%-160px)/2);
  136 +}
  137 +
  138 +.praise-div {
  139 + display: flex;
  140 + flex-direction: column;
  141 + align-items: center;
  142 +
  143 + .praise-icon {
  144 + width: 64px;
  145 + height: 64px;
  146 + background: url(~statics/image/order/alipay@3x.png) no-repeat;
118 background-size: contain; 147 background-size: contain;
119 background-repeat: no-repeat; 148 background-repeat: no-repeat;
  149 + }
  150 +
  151 + .praise-num {
  152 + margin-top: 8px;
  153 + font-size: 22px;
  154 + color: #002B47;
  155 + letter-spacing: 0.21px;
  156 + }
120 } 157 }
121 158
122 .recommend-container { 159 .recommend-container {
  1 +export const FETCH_DETAIL_INFO = 'FETCH_DETAIL_INFO';
  2 +
1 export default function() { 3 export default function() {
2 return { 4 return {
3 namespaced: true, 5 namespaced: true,
4 - state: {} 6 + state: {
  7 + detailInfo: {}
  8 + }
5 }; 9 };
6 } 10 }
@@ -16,5 +16,34 @@ module.exports = { @@ -16,5 +16,34 @@ module.exports = {
16 auth: true, 16 auth: true,
17 api: 'app.grass.getTotalInboxUnread', 17 api: 'app.grass.getTotalInboxUnread',
18 params: {} 18 params: {}
  19 + },
  20 +
  21 + // 文章详情
  22 + '/api/grass/columnArticleDetail': {
  23 + api: 'app.grass.columnArticleDetail',
  24 + params: {
  25 + uid: {type: Number},
  26 + articleId: {type: Number, require: true},
  27 + singleDetail: {type: String, require: true}, // default value: Y
  28 + fromXianyu: {type: String, require: true}, // default value: Y
  29 + }
  30 + },
  31 +
  32 + // 推荐文章
  33 + '/api/grass/xianyuOtherArticles': {
  34 + api: 'app.grass.xianyuOtherArticles',
  35 + params: {
  36 + articleId: {type: Number, require: true}
19 } 37 }
  38 + },
  39 +
  40 + // 点赞
  41 + '/api/grass/updateArticlePraise': {
  42 + api: 'app.grass.updateArticlePraise',
  43 + auth: true,
  44 + params: {
  45 + articleId: {type: Number, require: true},
  46 + status: {type: Number, require: true}, // 0 未点赞 1点赞
  47 + }
  48 + },
20 }; 49 };