Browse Source

修改

master
vee 4 years ago
parent
commit
45c2066c72
  1. 26
      pages/menu/wallet/index.vue

26
pages/menu/wallet/index.vue

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

Loading…
Cancel
Save