|
@ -25,8 +25,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<image src="../../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="img" @click="addOther(item,index)" v-if="index!=imgindex[index]" ></image> |
|
|
<image src="../../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="img" @click="addOther(item,index)" v-if="index!=trueIndex[index]" ></image> |
|
|
<image src="../../../../static/tongyonh/x-circle.png" mode="aspectFit" class="img opci" v-if="index==imgindex[index]"></image> |
|
|
<image src="../../../../static/tongyonh/x-circle.png" mode="aspectFit" class="img opci" v-if="index==trueIndex[index]"></image> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -54,7 +54,8 @@ |
|
|
walletInfo:{}, |
|
|
walletInfo:{}, |
|
|
coinAddress:'', |
|
|
coinAddress:'', |
|
|
toTop:false, |
|
|
toTop:false, |
|
|
tmoney:0 |
|
|
tmoney:0, |
|
|
|
|
|
trueIndex:[], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -63,9 +64,14 @@ |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
|
|
|
// 添加代币修改 |
|
|
if(uni.getStorageSync('imgindex').length>0){ |
|
|
if(uni.getStorageSync('imgindex').length>0){ |
|
|
this.imgindex=uni.getStorageSync('imgindex') |
|
|
this.imgindex=uni.getStorageSync('imgindex') |
|
|
} |
|
|
} |
|
|
|
|
|
if(uni.getStorageSync('trueIndex').length>0){ |
|
|
|
|
|
this.trueIndex=uni.getStorageSync('trueIndex') |
|
|
|
|
|
} |
|
|
|
|
|
// 添加代币修改 |
|
|
this.coinAddress=uni.getStorageSync('wallet').address |
|
|
this.coinAddress=uni.getStorageSync('wallet').address |
|
|
this.coinType=uni.getStorageSync('wallet').type |
|
|
this.coinType=uni.getStorageSync('wallet').type |
|
|
this.walletInfo=uni.getStorageSync('walletInfo') |
|
|
this.walletInfo=uni.getStorageSync('walletInfo') |
|
@ -83,11 +89,19 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 添加代币到钱包 |
|
|
// 添加代币到钱包 |
|
|
|
|
|
|
|
|
addOther(item,index){ |
|
|
addOther(item,index){ |
|
|
console.log(index,454545) |
|
|
console.log(index,454545) |
|
|
console.log(item,444) |
|
|
console.log(item,444) |
|
|
this.imgindex.splice(index,0,index) |
|
|
this.imgindex.push(index) |
|
|
console.log(this.imgindex,454545) |
|
|
// 添加代币修改 |
|
|
|
|
|
for(var i=0;i<this.imgindex.length;i++){ |
|
|
|
|
|
if(this.imgindex[i]==index){ |
|
|
|
|
|
this.trueIndex[index]=index; |
|
|
|
|
|
uni.setStorageSync('trueIndex',this.trueIndex) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
// 添加代币修改 |
|
|
this.toTop=true |
|
|
this.toTop=true |
|
|
setTimeout(()=>{ |
|
|
setTimeout(()=>{ |
|
|
this.toTop=false |
|
|
this.toTop=false |
|
|