Authored by 郭成尧

home-yoho-coin-style

@@ -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
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <p class="title">{{message}}</p> 4 <p class="title">{{message}}</p>
5 <p class="time">{{date}}</p> 5 <p class="time">{{date}}</p>
6 <div class="count"> 6 <div class="count">
7 - +{{num}} 7 + {{num}}
8 </div> 8 </div>
9 </div> 9 </div>
10 </li> 10 </li>