|
|
@ -27,7 +27,7 @@ let fullWallet = { |
|
|
|
icon: require('@/static/tongyonh/Frame3299.png') |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "USDT", |
|
|
|
name: "USDT-ERC20", |
|
|
|
xname: 'Tether USD', |
|
|
|
balance: 0, |
|
|
|
contractAddress: '0xdac17f958d2ee523a2206206994597c13d831ec7', |
|
|
@ -46,7 +46,7 @@ let fullWallet = { |
|
|
|
icon: require('@/static/tongyonh/tron1.png') |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "USDT", |
|
|
|
name: "USDT-TRC20", |
|
|
|
xname: 'Tether USD', |
|
|
|
balance: 0, |
|
|
|
contractAddress: 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t', |
|
|
@ -256,6 +256,10 @@ let WalletUtil = { |
|
|
|
.coinList[1].balance * usdtU.data.priceInUsd).toFixed(2); |
|
|
|
wallet.coinList[1].balanceCnyPrice = (wallet |
|
|
|
.coinList[1].balance * usdtU.data.priceCny).toFixed(2); |
|
|
|
if(wallet.coinList[1].name==='USDT') |
|
|
|
{ |
|
|
|
wallet.coinList[1].name='USDT-ERC20' |
|
|
|
} |
|
|
|
break; |
|
|
|
case 'TRX': |
|
|
|
// console.log("进来TRX")
|
|
|
@ -277,6 +281,10 @@ let WalletUtil = { |
|
|
|
|
|
|
|
}else |
|
|
|
if (tronCoin.data[i].tokenAbbr === 'USDT') { |
|
|
|
if(newList[1].name==='USDT') |
|
|
|
{ |
|
|
|
newList[1].name='USDT-TRC20' |
|
|
|
} |
|
|
|
newList[1].balance = (Number(tronCoin.data[i].balance) / Math.pow(10, tronCoin |
|
|
|
.data[i].tokenDecimal)); |
|
|
|
newList[1].tokenType = "trc20" |
|
|
@ -328,6 +336,7 @@ let WalletUtil = { |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(walletInfo,123456) |
|
|
|
uni.setStorageSync('walletInfo', walletInfo); |
|
|
|
uni.setStorageSync('isWallet', false); |
|
|
|
return wallet; |
|
|
|