Browse Source

修改

master
vee 4 years ago
parent
commit
4f45880004
  1. 1
      pages/menu/setting/index.vue
  2. 24
      pages/menu/wallet/otherCoin/index.vue
  3. 8
      unpackage/dist/dev/app-plus/app-service.js

1
pages/menu/setting/index.vue

@ -127,6 +127,7 @@
}, },
// //
printCancel(){ printCancel(){
this.show=false;
plus.fingerprint.cancel(); plus.fingerprint.cancel();
this.showFinger=false this.showFinger=false
}, },

24
pages/menu/wallet/otherCoin/index.vue

@ -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

8
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save