|
|
@ -97,14 +97,17 @@ |
|
|
|
showMoney1: true, |
|
|
|
showMoney2: false, |
|
|
|
btcBalance: 0, |
|
|
|
isStop:false |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
onUnload: function() { |
|
|
|
this.isStop = true |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
// 拿钱包 |
|
|
|
this.userObj = uni.getStorageSync('wallet'); |
|
|
|
// this.userObj2 = uni.getStorageSync('wallet'); |
|
|
|
this.updateData(); |
|
|
|
this.userObj = uni.getStorageSync('wallet'); |
|
|
|
// this.userObj2 = uni.getStorageSync('wallet'); |
|
|
|
this.updateData(); |
|
|
|
}, |
|
|
|
|
|
|
|
// onPullDownRefresh() { |
|
|
@ -122,11 +125,14 @@ |
|
|
|
thar.userObj = uni.getStorageSync('wallet'); |
|
|
|
thar.userObj2 = uni.getStorageSync('wallet'); |
|
|
|
// thar.userObj.address = thar.userObj.ellipsisAddress; |
|
|
|
thar.userObj.address =thar.userObj.address.substring(0, 6) + '...' + thar.userObj.address.substring(25, |
|
|
|
thar.userObj.address.length); |
|
|
|
thar.$walletUtil.updateBalance(); |
|
|
|
thar.updateData(); |
|
|
|
}, 0); |
|
|
|
thar.userObj.address = thar.userObj.address.substring(0, 6) + '...' + thar.userObj.address |
|
|
|
.substring(25, |
|
|
|
thar.userObj.address.length); |
|
|
|
thar.$walletUtil.updateBalance(); |
|
|
|
if (!thar.isStop) { |
|
|
|
thar.updateData() |
|
|
|
} |
|
|
|
}, 2000); |
|
|
|
|
|
|
|
}, |
|
|
|
goOther() { |
|
|
@ -145,7 +151,7 @@ |
|
|
|
this.showMoney2 = false |
|
|
|
}, |
|
|
|
setStorage() { |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
goTrans(itemm, index) { |
|
|
|
if (index == 0) { |
|
|
|