You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
206 lines
4.3 KiB
206 lines
4.3 KiB
<template>
|
|
<view class="">
|
|
<navigation :showBack="false" :bgnum="true">
|
|
<image src="../../../static/tongyonh/san.png" mode="aspectFit" class="renYou" slot="logo" @click="goCwallet()"></image>
|
|
<image src="../../../static/tongyonh/erwei.png" mode="aspectFit" class="renYou2" slot="logo" @click="chooseImage()"></image>
|
|
<text class="big_title">
|
|
Wallet
|
|
</text>
|
|
</navigation>
|
|
<view class="main">
|
|
<view class="money_con">
|
|
<image src="../../../static/tongyonh/ethereum.png" mode="aspectFit" class="img"></image>
|
|
<view class="textcon1 flex">
|
|
<text class="text">ETH</text>
|
|
<image src="../../../static/tongyonh/visibility_24px.png" mode="aspectFit" class="img1"></image>
|
|
</view>
|
|
<view class="textcon2">
|
|
$15,123.20
|
|
</view>
|
|
<view class="textcon3">
|
|
skghienhdgge...jeiikeek
|
|
</view>
|
|
</view>
|
|
|
|
<view class="bot_con">
|
|
<view class="title">
|
|
Assets
|
|
</view>
|
|
<view class="item flexx" @click="goTrans()">
|
|
<view class="left flex">
|
|
<image src="../../../static/tongyonh/bye.png" mode="aspectFit" class="img1"></image>
|
|
<view class="textcon">
|
|
<view class="text1">
|
|
BTC
|
|
</view>
|
|
<view class="text2">
|
|
Bitcoin
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="rig">
|
|
<view class="text1">
|
|
0.521
|
|
</view>
|
|
<view class="text2">
|
|
=$25.521.00
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="item flexx">
|
|
<view class="left flex">
|
|
<image src="../../../static/tongyonh/Frame3299.png" mode="aspectFit" class="img1"></image>
|
|
<view class="textcon">
|
|
<view class="text1">
|
|
BTC
|
|
</view>
|
|
<view class="text2">
|
|
Bitcoin
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="rig">
|
|
<view class="text1">
|
|
0.521
|
|
</view>
|
|
<view class="text2">
|
|
=$25.521.00
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="item flexx">
|
|
<view class="left flex">
|
|
<image src="../../../static/tongyonh/tron1.png" mode="aspectFit" class="img1"></image>
|
|
<view class="textcon">
|
|
<view class="text1">
|
|
BTC
|
|
</view>
|
|
<view class="text2">
|
|
Bitcoin
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="rig">
|
|
<view class="text1">
|
|
0.521
|
|
</view>
|
|
<view class="text2">
|
|
=$25.521.00
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="item flexx">
|
|
<view class="left flex">
|
|
<image src="../../../static/tongyonh/tron.png" mode="aspectFit" class="img1"></image>
|
|
<view class="textcon">
|
|
<view class="text1">
|
|
BTC
|
|
</view>
|
|
<view class="text2">
|
|
Bitcoin
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="rig">
|
|
<view class="text1">
|
|
0.521
|
|
</view>
|
|
<view class="text2">
|
|
=$25.521.00
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="item flexx opc">
|
|
<view class="left flex">
|
|
<image src="../../../static/tongyonh/coin.png" mode="aspectFit" class="img1"></image>
|
|
<view class="textcon">
|
|
<view class="text1">
|
|
BTC
|
|
</view>
|
|
<view class="text2">
|
|
Bitcoin
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="rig">
|
|
<view class="text1">
|
|
0.00
|
|
</view>
|
|
<view class="text2">
|
|
=$25.521.00
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
<tab-bar :selectActive="1"></tab-bar>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import cont from "@/components/navigation/navigation.vue"
|
|
import token from "@/utils/TokenUtil"
|
|
export default {
|
|
data() {
|
|
return {
|
|
}
|
|
},
|
|
onLoad() {
|
|
var walletInfo=uni.getStorageSync('walletInfo');
|
|
var key=walletInfo.eth.privateKey
|
|
var a=token.importEthPrivateKey(key);
|
|
console.log(a)
|
|
},
|
|
methods: {
|
|
goTrans(){
|
|
uni.navigateTo({
|
|
url:'/pages/menu/token/btc/index'
|
|
})
|
|
},
|
|
// 唤醒摄像头
|
|
chooseImage() {
|
|
var _this = this
|
|
uni.chooseImage({
|
|
count: 1, //默认9
|
|
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
sourceType: ['album', 'camera'], //从相册选择、摄像头
|
|
success: function(res) {
|
|
_this.imgShow = res.tempFilePaths[0]
|
|
}
|
|
});
|
|
// ass()
|
|
},
|
|
|
|
goCwallet(){
|
|
uni.navigateTo({
|
|
url:'./cwallet/index'
|
|
})
|
|
}
|
|
},
|
|
|
|
};
|
|
</script>
|
|
<style scoped>
|
|
page{
|
|
background: #FAFAFA;
|
|
}
|
|
</style>
|
|
|
|
<style>
|
|
|
|
@import './index.css';
|
|
|
|
</style>
|
|
|