|
|
@ -111,7 +111,7 @@ |
|
|
|
bigAddress: '', |
|
|
|
save: true, |
|
|
|
AddressIndex: -1, |
|
|
|
gai: {}, |
|
|
|
gai: [], |
|
|
|
show: false, |
|
|
|
checked: false, |
|
|
|
list: [{ |
|
|
@ -216,7 +216,12 @@ |
|
|
|
}]; |
|
|
|
this.gai2.splice(index, 1) |
|
|
|
uni.setStorageSync('TRXAddressInfo', this.gai2) |
|
|
|
if(this.gai==''){ |
|
|
|
this.gai=[]; |
|
|
|
this.gai[0]=eth |
|
|
|
}else{ |
|
|
|
this.gai.push(eth); |
|
|
|
} |
|
|
|
uni.setStorageSync('ETHAddressInfo', this.gai) |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Successful, |
|
|
@ -255,7 +260,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
if (this.value == 'BTC') { |
|
|
|
this.gai = uni.getStorageSync('BTCAddressInfo') |
|
|
|
if(uni.getStorageSync('BTCAddressInfo')){ |
|
|
|
this.gai = uni.getStorageSync('BTCAddressInfo') |
|
|
|
} |
|
|
|
this.gai2 = uni.getStorageSync('TRXAddressInfo') |
|
|
|
var index = uni.getStorageSync('editIndex') |
|
|
|
let btc = new Object; |
|
|
@ -269,7 +276,12 @@ |
|
|
|
}]; |
|
|
|
this.gai2.splice(index, 1) |
|
|
|
uni.setStorageSync('TRXAddressInfo', this.gai2) |
|
|
|
if(this.gai==''){ |
|
|
|
this.gai=[]; |
|
|
|
this.gai[0]=btc |
|
|
|
}else{ |
|
|
|
this.gai.push(btc); |
|
|
|
} |
|
|
|
uni.setStorageSync('BTCAddressInfo', this.gai) |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Successful, |
|
|
@ -299,7 +311,13 @@ |
|
|
|
}]; |
|
|
|
this.gai2.splice(index, 1) |
|
|
|
uni.setStorageSync('ETHAddressInfo', this.gai2) |
|
|
|
if(this.gai==''){ |
|
|
|
this.gai=[]; |
|
|
|
this.gai[0]=trx |
|
|
|
}else{ |
|
|
|
this.gai.push(trx); |
|
|
|
} |
|
|
|
|
|
|
|
uni.setStorageSync('TRXAddressInfo', this.gai) |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Successful, |
|
|
@ -350,7 +368,13 @@ |
|
|
|
}]; |
|
|
|
this.gai2.splice(index, 1) |
|
|
|
uni.setStorageSync('ETHAddressInfo', this.gai2) |
|
|
|
if(this.gai==''){ |
|
|
|
this.gai=[]; |
|
|
|
this.gai[0]=btc |
|
|
|
}else{ |
|
|
|
this.gai.push(btc); |
|
|
|
} |
|
|
|
|
|
|
|
uni.setStorageSync('BTCAddressInfo', this.gai) |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Successful, |
|
|
@ -365,8 +389,10 @@ |
|
|
|
|
|
|
|
|
|
|
|
if (this.info.coinList[0].name2 == 'BTC') { |
|
|
|
|
|
|
|
if (this.value == 'TRX') { |
|
|
|
this.gai = uni.getStorageSync('TRXAddressInfo') |
|
|
|
|
|
|
|
this.gai2 = uni.getStorageSync('BTCAddressInfo') |
|
|
|
var index = uni.getStorageSync('editIndex') |
|
|
|
let trx = new Object; |
|
|
@ -381,7 +407,14 @@ |
|
|
|
}]; |
|
|
|
this.gai2.splice(index, 1) |
|
|
|
uni.setStorageSync('BTCAddressInfo', this.gai2) |
|
|
|
this.gai.push(trx); |
|
|
|
// 11月23日 改 假设一开始就要改地址币种 该币种还没有数组 |
|
|
|
if(this.gai==''){ |
|
|
|
this.gai=[]; |
|
|
|
console.log(this.gai,454545) |
|
|
|
this.gai[0]=trx |
|
|
|
}else{ |
|
|
|
this.gai.push(trx); |
|
|
|
} |
|
|
|
uni.setStorageSync('TRXAddressInfo', this.gai) |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Successful, |
|
|
@ -430,9 +463,20 @@ |
|
|
|
xname: 'Ethereum', |
|
|
|
icon: require('@/static/tongyonh/Frame3299.png') |
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.gai2.splice(index, 1) |
|
|
|
uni.setStorageSync('BTCAddressInfo', this.gai2) |
|
|
|
this.gai.push(eth); |
|
|
|
if(this.gai==''){ |
|
|
|
this.gai=[]; |
|
|
|
this.gai[0]=eth |
|
|
|
}else{ |
|
|
|
this.gai.push(eth); |
|
|
|
} |
|
|
|
|
|
|
|
uni.setStorageSync('ETHAddressInfo', this.gai) |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Successful, |
|
|
|