...
|
...
|
@@ -59,6 +59,14 @@ const currencyDetail = (uid, page, limit) => { |
|
|
if (result && result.code === 200) {
|
|
|
let total = parseInt(result.data.page_total, 10) + 1;
|
|
|
|
|
|
_.forEach(_.get(result, 'data.coinlist', []), perCoin => {
|
|
|
if (perCoin.num > 0) {
|
|
|
perCoin.num = '+' + perCoin.num;
|
|
|
} else if (perCoin.num < 0) {
|
|
|
perCoin.num = '-' + perCoin.num;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
if (page && page <= total) {
|
|
|
return yohoCoin(uid).then(list => {
|
|
|
|
...
|
...
|
|