Browse Source

余额更新问题

master
vee 4 years ago
parent
commit
741204dbf3
  1. 4
      manifest.json
  2. 3
      utils/WalletUtil.js

4
manifest.json

@ -2,8 +2,8 @@
"name" : "BitCooo",
"appid" : "__UNI__1ECBEE1",
"description" : "",
"versionName" : "1.1.4",
"versionCode" : 114,
"versionName" : "1.1.5",
"versionCode" : 115,
"transformPx" : false,
"networkTimeout" : {
"request" : 10000 //()

3
utils/WalletUtil.js

@ -275,6 +275,9 @@ let WalletUtil = {
newList.push(wallet.coinList[1])
newList[0].tokenType = "trc10"
newList[0].contractAddress='_';
newList[1].balance = 0;
newList[1].balanceCnyPrice = 0;
newList[1].balancePrice = 0;
for (let i = 0; i < tronCoin.data.length; i++) {
if (tronCoin.data[i].tokenAbbr === 'trx') {
wallet.balance =(Number(tronCoin.data[i].balance) / Math.pow(10, tronCoin

Loading…
Cancel
Save