Showing
2 changed files
with
9 additions
and
1 deletions
@@ -59,6 +59,14 @@ const currencyDetail = (uid, page, limit) => { | @@ -59,6 +59,14 @@ const currencyDetail = (uid, page, limit) => { | ||
59 | if (result && result.code === 200) { | 59 | if (result && result.code === 200) { |
60 | let total = parseInt(result.data.page_total, 10) + 1; | 60 | let total = parseInt(result.data.page_total, 10) + 1; |
61 | 61 | ||
62 | + _.forEach(_.get(result, 'data.coinlist', []), perCoin => { | ||
63 | + if (perCoin.num > 0) { | ||
64 | + perCoin.num = '+' + perCoin.num | ||
65 | + } else if(perCoin.num < 0) { | ||
66 | + perCoin.num = '-' + perCoin.num | ||
67 | + } | ||
68 | + }); | ||
69 | + | ||
62 | if (page && page <= total) { | 70 | if (page && page <= total) { |
63 | return yohoCoin(uid).then(list => { | 71 | return yohoCoin(uid).then(list => { |
64 | 72 |
-
Please register or login to post a comment