Browse Source

代码

master
Dread 4 years ago
parent
commit
ee882a82b7
  1. 1
      main.js
  2. 13
      pages/menu/backUp/backUp5/index.vue
  3. 28
      pages/menu/backUp/transPaw/index.vue
  4. 2
      pages/menu/collection/index.css
  5. 4
      pages/menu/market/index.css
  6. 3
      pages/menu/market/index.vue
  7. 5
      pages/menu/wallet/index.css
  8. 4
      pages/menu/wallet/index.vue
  9. 354
      unpackage/dist/dev/app-plus/app-service.js
  10. 342
      unpackage/dist/dev/app-plus/app-view.js

1
main.js

@ -45,4 +45,5 @@ const app = new Vue({
store,
...App
})
app.$mount()

13
pages/menu/backUp/backUp5/index.vue

@ -252,13 +252,22 @@
}).catch(err => {
console.log(err)
})
this.info.coinList = [{
this.info.coinList = [
{
name: "TRX",
name2: "TRX",
xname: 'TRON',
icon: require('@/static/tongyonh/tron1.png'),
balance: this.info.balance
}];
},
{
name:"USDT",
name2:"TRC20-USDT",
xname:'Tether USD',
contractAddress:'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
icon:require('@/static/tongyonh/tether_usd.png')
}
];
uni.setStorageSync('wallet', this.info)
uni.setStorageSync('walleti', this.info.privateKey)

28
pages/menu/backUp/transPaw/index.vue

@ -218,16 +218,26 @@
this.$EthUtil.getBalance(eth.address,function(res){
eth.balance = res
this.ethBbalance = res;
console.log(res,'手机eth的钱包余额')
});
eth.coinList = [{
eth.coinList = [
{
name: "ETH",
name2: "ETH",
xname: 'Ethereum',
icon: require('@/static/tongyonh/Frame3299.png'),
balance: this.ethBbalance
}];
},
{
name:"USDT",
name2:"ERC20-USDT",
xname:'Tether USD',
contractAddress:'0xdac17f958d2ee523a2206206994597c13d831ec7',
icon:require('@/static/tongyonh/img500.png')
}
];
this.$store.commit('addEthi', 1)
uni.setStorageSync('walleti', eth.privateKey)
@ -278,17 +288,27 @@
this.$TronUtil.getTronBalance(tron.address).then((res) => {
tron.balance = res
this.trxBbalance = res
console.log(res,'手机tron的钱包余额')
}).catch(err => {
console.log(err)
})
tron.coinList = [{
tron.coinList = [
{
name: "TRX",
name2: "TRX",
xname: 'TRON',
icon: require('@/static/tongyonh/tron1.png'),
balance: this.trxBbalance
}];
},
{
name:"USDT",
name2:"TRC20-USDT",
xname:'Tether USD',
contractAddress:'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
icon:require('@/static/tongyonh/tether_usd.png')
}
];
console.log(this.$store.state.troni, 555566565)
//
this.$store.commit('addTroni', 1)

2
pages/menu/collection/index.css

@ -18,6 +18,8 @@
background: #fff;
border-radius: 24rpx;
box-shadow: 0 18rpx 18rpx 18rpx #EAEDF0;
max-height: 1200rpx;
overflow-y: scroll;
}
.title{
height: 150rpx;

4
pages/menu/market/index.css

@ -73,4 +73,8 @@
}
.title_item .imgcon{
margin-left: 14rpx;
}
.scroll{
max-height: 1200rpx;
overflow: scroll;
}

3
pages/menu/market/index.vue

@ -12,6 +12,7 @@
</view>
</view>
<view class="scroll">
<view class="item flex" v-for="(item,index) in recordInfo">
<view class="text2">
{{item.name}}/USDT
@ -30,7 +31,7 @@
{{item.change_percent}}%
</view>
</view>
</view>

5
pages/menu/wallet/index.css

@ -1,3 +1,4 @@
.renYou{
width: 36rpx;
height: 20rpx;
@ -134,4 +135,8 @@
.jiacon{
display: flex;
justify-content: space-between;
}
.scroll{
max-height: 700rpx;
overflow: scroll;
}

4
pages/menu/wallet/index.vue

@ -37,7 +37,7 @@
</view>
<image src="../../../static/tongyonh/IconGroup.png" mode="aspectFit" class="jiaimg" v-if="userObj.coinList[0].xname!='Bitcoin'&&userObj.coinList[0].xname!='TRON'" @click="goOther"></image>
</view>
<view class="scroll">
<view class="item flexx" @click="goTrans(item,index)" v-for="item,index in this.userObj.coinList">
<view class="left flex">
<image :src="item.icon" mode="aspectFit" class="img1"></image>
@ -59,7 +59,7 @@
</view>
</view>
</view>
</view>

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

File diff suppressed because one or more lines are too long

342
unpackage/dist/dev/app-plus/app-view.js

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