Browse Source

代码

master
Dread 4 years ago
parent
commit
7a1072c9f3
  1. 14
      pages.json
  2. 24
      pages/menu/sendToken/transfer/index.vue
  3. 182
      pages/menu/sendToken/transfer2/index.css
  4. 274
      pages/menu/sendToken/transfer2/index.vue
  5. 185
      pages/menu/token/btctrue/index.css
  6. 368
      pages/menu/token/btctrue/index.vue
  7. 4
      unpackage/dist/dev/app-plus/app-config-service.js
  8. 2857
      unpackage/dist/dev/app-plus/app-service.js
  9. 31071
      unpackage/dist/dev/app-plus/app-view.js
  10. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/Frame 30.png
  11. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/Frame300.png
  12. BIN
      unpackage/dist/dev/app-plus/static/tongyonh/erwei.png
  13. BIN
      unpackage/release/apk/__UNI__1ECBEE1__20211116205740.apk

14
pages.json

@ -63,20 +63,6 @@
},
{
"path": "pages/menu/token/btctrue/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/sendToken/transfer2/index",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/menu/wallet/otherCoin/index",
"style": {

24
pages/menu/sendToken/transfer/index.vue

@ -104,7 +104,7 @@
</view>
<view class="bottom_con">
<view class="yuan">
<image :src="addressInfo.coinList[0].icon" mode="aspectFit" class="img1"></image>
<image :src="coin.icon" mode="aspectFit" class="img1"></image>
</view>
<view class="title">
{{coin.type}}
@ -244,7 +244,7 @@
data() {
return {
coin:{},
fee: 1000,
fee: 0,
show: false,
show2: false,
showFinger: false,
@ -294,11 +294,10 @@
if (type == 'try') {
this.fingerFail = false;
}
console.log(123123132132132)
this.show = true
this.showFinger = true
this.showBottom = false;
// true
this.fingerprint();
//
this.transInfoPass.fromAddress = this.addressInfo.address;
this.transInfoPass.toAddress = this.recipientAddress;
@ -307,6 +306,8 @@
console.log(this.transInfoPass, 444)
//
uni.setStorageSync('transInfoPass', this.transInfoPass)
this.fingerprint();
},
back() {
uni.reLaunch({
@ -319,7 +320,6 @@
},
//
Confirm() {
debugger
//
if (this.transAmount == '') {
uni.showToast({
@ -356,10 +356,13 @@
this.showBottom = true;
this.show = true;
},
//
//
printCancel(){
plus.fingerprint.cancel();
this.showFinger=false;
console.log(this.showFinger,4444)
plus.fingerprint.cancel();
console.log(this.showFinger,4444)
},
fingerprint: function(sett) {
let bltype = true;
@ -418,6 +421,7 @@
//
that.$TronUtil.sendTransaction(that.transInfoPass.fromAddress,that.transInfoPass.privateKey,that.transInfoPass.toAddress,that.transInfoPass.amount )
.then((res) => {
console.log(1212121212121212)
that.showFinger = false
that.showBottom = false;
that.fingerSuccess = true;
@ -605,6 +609,12 @@
}
},
onLoad() {
//
if(uni.getStorageSync('myTransAddress')){
this.recipientAddress=uni.getStorageSync('myTransAddress').address
//
uni.removeStorageSync('myTransAddress')
}
this.coin=uni.getStorageSync('coin')
//
if (uni.getStorageSync('fingerPass')) {

182
pages/menu/sendToken/transfer2/index.css

@ -1,182 +0,0 @@
.renYou2{
width: 48rpx;
height: 48rpx;
position: absolute;
right: 30rpx;
}
.main{
padding: 0 24rpx;
margin-top: 60rpx;
}
.item{
margin-top: 30rpx;
}
.inputcon{
position: relative;
height: auto;
margin-top: 20rpx;
background-color:#fff;
}
.inputcon .input{
width: 80%;
padding-left: 30rpx;
line-height: 60rpx;
border-radius: 16rpx;
}
.inputcon .img{
width: 48rpx;
height: 48rpx;
position: absolute;
top: 50%;
right: 40rpx;
transform: translateY(-50%);
}
.inputcon2{
height: auto;
margin-top: 20rpx;
}
.inputcon2 .input_con{
}
.inputcon2 .input_con .input2{
padding: 0 40rpx;
height: 190rpx;
font-size: 75rpx;
background-color: #fff;
border-radius: 16rpx;
border-bottom: 2rpx solid #F4F7FE;
}
.inputcon2 .input_con .input1{
padding: 0 40rpx;
height: 100rpx;
background-color: #fff;
border-radius: 0 0 16rpx 16rpx;
}
.flex{
display: flex;
justify-content: space-between;
}
.all{
color: #5B53FF;
}
.aaa{
background-color: #fafafa !important;
}
.minitem{
padding: 0 30rpx;
height: 100rpx;
background-color:#fff;
border-radius: 16rpx;
align-items: center;
}
.item .rimg{
width: 24rpx;
height: 24rpx;
}
page {
background-color: #FAFAFA !important;
}
.main .btn{
line-height: 96rpx;
background-color: #5B53FF;
text-align: center;
color: #fff;
border-radius: 32rpx;
margin-top: 50rpx;
}
.ac .bottom_con{
position: absolute;
bottom: 0;
z-index: 9999;
}
.bottom_con{
width: 100%;
background-color:#F7F8FA;
padding: 0 24rpx;
border-radius: 16rpx 16rpx 0 0;
padding-bottom: 40rpx;
}
.title_con{
padding: 30rpx 0;
text-align: center;
color: #7A7A81;
}
.money_con{
background-color: #fff;
padding: 0 30rpx;
padding-top: 70rpx;
border-radius: 16rpx 16rpx 0 0;
}
.money_con .money{
display: flex;
justify-content: center;
align-items: center;
}
.money_con .money .tex1{
font-size: 64rpx;
margin-right: 10rpx;
}
.money_con .img{
width: 48rpx;
height: 48rpx;
position: absolute;
left: 12rpx;
top: 24rpx;
}
.money_con .img2{
width: 28rpx;
height: 28rpx;
position: absolute;
left: 32rpx;
top: 32rpx;
}
.money_con .money .tex2{
font-size: 42rpx;
}
.money_con .money .text{
}
.info_con{
margin-top: 40rpx;
}
.info_con .item{
display: flex;
padding-bottom: 24rpx;
border-bottom: 2rpx solid #DDDDDD;
}
.info_con .item:last-child{
border-bottom: none;
}
.info_con .item .text1{
color: #9B9C9E;
margin-right: 50rpx;
}
.info_con .item .text2{
word-break: break-word;
}
.bottom_con .btn{
line-height: 96rpx;
background-color: #5B53FF;
text-align: center;
color: #fff;
border-radius: 32rpx;
margin-top: 50rpx;
}
.money_con2{
height: 400rpx;
}
.btn2{
line-height: 96rpx;
background-color: #E9ECF5;
text-align: center;
color: #fff;
border-radius: 32rpx;
margin-top: 50rpx;
}
.btncolor{
background-color: #5B53FF;
}
.btncolor2{
background-color: #E9ECF5;
}

274
pages/menu/sendToken/transfer2/index.vue

@ -1,274 +0,0 @@
<template>
<view class="ac">
<navigation :showBack="true" :bgnum="true" class="aaa">
<text class="big_title">
{{info.coinList[0].name2}} Transfer
</text>
<image src="../../../../static/tongyonh/erwei.png" mode="aspectFit" class="renYou2" slot="logo"
@click="chooseImage()"></image>
</navigation>
<view class="main">
<view class="item">
<view class="title">
Collection address
</view>
<view class="inputcon">
<input type="text" value="" :placeholder="addValue" placeholder-style="color:#D0D0D2" class="input"
v-model="toAddress" />
<image src="../../../../static/tongyonh/lu.png" mode="aspectFit" class="img" @click="goAddress">
</image>
</view>
</view>
<view class="item">
<view class="title flex">
<text>Amount of Money</text>
<text class="all" @click="toAll">ALL</text>
</view>
<view class="inputcon2">
<view class="input_con">
<input type="text" value="" placeholder="0" placeholder-style="color:#D0D0D2" class="input2"
v-model="toValue" />
<!-- <input type="text" value="" placeholder="Remark" placeholder-style="color:#D0D0D2" class="input1"/> -->
</view>
</view>
</view>
<!-- <view class="item minitem flex">
<text>Miner's fee</text>
<view class="imgcon">
<image src="../../../../static/tongyonh/chevron_right_24px.png" mode="aspectFit" class="rimg"></image>
</view>
</view> -->
<view class="btn" @click="next">
Next step
</view>
</view>
<view class="bottom_con" v-if="show">
<view class="title_con">
Payment details
</view>
<view class="money_con">
<image src="../../../../static/tongyonh/xg.png" mode="aspectFit" class="img" @click="show=false">
</image>
<view class="money">
<text class="tex1">{{toValue}}</text>
<text class="tex2">{{info.coinList[0].name2}}</text>
</view>
<view class="info_con">
<view class="item">
<text class="text1">Payment information</text>
<text class="text2">{{info.coinList[0].name2}} transfer</text>
</view>
<view class="item">
<text class="text1">Collection address</text>
<text class="text2">{{toAddress}}</text>
</view>
<view class="item">
<text class="text1">Payment address</text>
<text class="text2">{{info.address}}</text>
</view>
</view>
</view>
<view class="btn" @click="toNext">
Next step
</view>
</view>
<view class="bottom_con" v-if="show2">
<view class="title_con">
Password
</view>
<view class="money_con money_con2">
<image src="../../../../static/tongyonh/Vector.png" mode="aspectFit" class="img2" @click="back"></image>
<u-input placeholder="Wallet password" v-model="value" :type="type" :border="border"
:password-icon="passwordIcon" @input="btnco()" />
</view>
<view class="btn2" :class="btntype?'btncolor':'btncolor2'" @click="confirm()">
Next step
</view>
</view>
<u-mask :show="show" z-index="10"></u-mask>
<u-mask :show="show2" z-index="10"></u-mask>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
export default {
data() {
return {
btntype: false,
addValue: '',
info: {},
toAddress: '',
toValue: null,
show: false,
show2: false,
value: '',
type: 'password',
passwordIcon: true,
border: true,
}
},
methods: {
toNext() {
this.show = false;
this.show2 = true;
},
back() {
this.show2 = false;
this.show = true
},
btnco() {
if (this.value.length == 0) {
this.btntype = false;
return;
}
this.btntype = true;
},
toAll() {
this.toValue = this.info.balance
},
succ(a, b) {
console.log(a, 4545)
console.log(b, 45646)
},
next() {
if (this.toAddress == '') {
uni.showToast({
title: 'Transfer receiving address cannot be blank',
icon: 'none',
duration: 1500
})
return
}
if (this.toValue == null) {
uni.showToast({
title: 'Please enter the transfer amount',
icon: 'none',
duration: 1500
})
return
}
if (this.toValue <= 0) {
uni.showToast({
title: 'The transfer amount cannot be less than or equal to zero',
icon: 'none',
duration: 1500
})
return
}
this.show = true;
},
confirm() {
if (this.value != this.info.password) {
uni.showToast({
title: 'Password error',
icon: 'none',
duration: 1500
})
return
}
if (this.info.coinList[0].xname == 'Ethereum') {
this.$EthUtil.transaction(this.info.address, this.toAddress, this.toValue, this.info.privateKey).then((
res) => {
console.log(res, '钱包')
this.show2 = false;
uni.reLaunch({
url: '../transfer2/index'
})
}).catch(err => {
console.log(err)
})
}
if (this.info.coinList[0].xname == 'TRON') {
if (!this.contractAddress) {
this.$TronUtil.sendTransaction(this.info.address, this.info.privateKey, this.toAddress, this.toValue, )
.then((res) => {
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2000
})
this.show2 = false;
uni.reLaunch({
url: '/pages/menu/wallet/index'
})
}).catch(err => {
uni.showToast({
title: err,
icon: 'none',
duration: 2000
})
})
}else{
this.$TronUtil.sendRawTransaction(this.info.address, this.info.privateKey, this.toAddress, this.toValue,'',this.contractAddress )
.then((res) => {
uni.showToast({
title: 'Successfully',
icon: 'success',
duration: 2000
})
this.show2 = false;
uni.reLaunch({
url: '/pages/menu/wallet/index'
})
}).catch(err => {
console.log(err)
uni.showToast({
title: err,
icon: 'none',
duration: 2000
})
})
}
}
},
goAddress() {
uni.navigateTo({
url: '../address/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()
},
},
onLoad(option) {
this.contractAddress = option.contractAddress;
this.info = uni.getStorageSync('wallet');
this.addValue = this.info.coinList[0].xname + ' Address'
}
};
</script>
<style scoped>
</style>
<style>
@import './index.css';
</style>

185
pages/menu/token/btctrue/index.css

@ -1,185 +0,0 @@
.renYou{
width: 48rpx;
height: 48rpx;
position: absolute;
right: 30rpx;
}
.big_title{
font-size: 48rpx;
}
.main .money_con{
display: block;
width:95%;
margin: 0 auto;
margin-top: 50rpx;
margin-bottom: 50rpx;
height: 320rpx;
background-image: linear-gradient(to right, #FF820C , #FFB606);
padding: 40rpx 50rpx;
border-radius: 24rpx;
}
.textcon1{
display: flex;
align-items: center;
justify-content: space-between;
line-height: 56rpx;
}
.textcon1 .text1{
color: #fff;
font-size: 56rpx ;
}
.textcon1 .text1 .text2{
color: #fff;
font-size: 32rpx ;
}
.textcon1 .img1{
width: 100rpx;
height: 110rpx;
}
.textcon1 .v1{
}
.textcon1 .v1 .t1{
color: #fff;
font-size: 32rpx;
}
.textcon1 .v1 .t2{
color: #fff;
font-size: 24rpx;
}
.textcon1 .v2{
margin-right: 100rpx;
}
.select_con{
width: 100%;
padding-bottom: 260rpx;
}
.select_con .select{
margin: 0 12px;
border-radius: 30rpx;
background-color: #fff;
box-shadow: 0 0 30px #EBEEF1;
}
/deep/ .u-tabs{
border-bottom: 2rpx solid #F6F8FD;
border-radius: 30rpx 30rpx 0 0;
}
.select_con .item1{
display: flex;
justify-content: space-between;
padding-top: 60rpx;
padding-bottom: 50rpx;
border-bottom: 2rpx solid #F6F8FD;
padding-left: 40rpx;
padding-right: 24rpx;
}
.select_con .item1 .lef_con{
display: flex;
align-items: center;
}
.select_con .item1 .lef_con .img1{
width: 48rpx;
height: 48rpx;
}
.select_con .item1 .lef_con .textcon{
margin-left: 24rpx;
}
.select_con .item1 .lef_con .textcon .text1{
font-size: 32rpx;
}
.select_con .item1 .lef_con .textcon .text2{
font-size: 24rpx;
color: #999;
}
.select_con .item1 .rig_con .text1{
font-size: 32rpx;
}
.select_con .item1 .rig_con .img1{
width: 28rpx;
height: 20rpx;
float: right;
margin-top: 20rpx;
}
.select_con .item1 .rig_con .img2{
width: 28rpx;
height: 40rpx;
float: right;
margin-top: 20rpx;
}
.btnconn{
position: fixed;
bottom: 0;
background-color: #fff;
padding: 24rpx 24rpx;
width: 100%;
display: flex;
justify-content: space-between;
}
.btnconn .btn{
width: 334rpx;
line-height: 96rpx;
border-radius: 30rpx;
border: 2rpx solid #5B53FF;
text-align: center;
display: flex;
align-items: center;
color:#5B53FF;
justify-content: center;
font-size: 34rpx;
position: relative;
}
.active{
color: #fff !important;
background-color: #5B53FF;
}
.btnconn .btn .img1{
width: 48rpx;
height: 48rpx;
}
.arrow-up-left{
width: 48rpx;
height: 48rpx;
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 68rpx;
}
.btn13{
margin-left: 40rpx;
}
.main .money_con{
margin-top: 32rpx;
background-image: linear-gradient(to right, #6441CF , #877BFE);
height: 320rpx;
padding: 40rpx 36rpx;
position: relative;
border-radius: 24rpx;
}
.main .money_con2{
margin-top: 32rpx;
background-image: linear-gradient(to right, #FF820C , #FFB606);
height: 320rpx;
padding: 40rpx 36rpx;
position: relative;
border-radius: 24rpx;
}
.main .money_con3{
margin-top: 32rpx;
background-image: linear-gradient(to right, #B6162A , #F96D7D);
height: 320rpx;
padding: 40rpx 36rpx;
position: relative;
border-radius: 24rpx;
}
.select_con .item1 .rig_con .text1 text{
margin-left: 10rpx;
}
/deep/ .u-empty {
padding: 30px !important;
}

368
pages/menu/token/btctrue/index.vue

@ -1,368 +0,0 @@
<template>
<view class="">
<navigation :showBack="true" :bgnum="true">
<text class="big_title" v-if="userObject.coinList[0].xname=='Bitcoin'">
BTC
</text>
<text class="big_title" v-if="userObject.coinList[0].xname=='Ethereum'">
ETH
</text>
<text class="big_title" v-if="userObject.coinList[0].xname=='TRON'">
TRX
</text>
</navigation>
<view class="main">
<view class="money_con"
:class="{'money_con': userObject.coinList[0].xname=='Ethereum', 'money_con2': userObject.coinList[0].xname=='Bitcoin', 'money_con3': userObject.coinList[0].xname=='TRON'}">
<view class="textcon1">
<text class="text1">
<view class="" v-if="userObject.coinList[0].xname=='Bitcoin'">
{{this.infoWallet.balance}} BTC
</view>
<view class="" v-if="userObject.coinList[0].xname=='Ethereum'">
0.00 ETH
</view>
<view class="" v-if="userObject.coinList[0].xname=='TRON'">
0.00 TRX
</view>
<text class="text2"> $0.0</text>
</text>
<image src="../../../../static/tongyonh/ethereum.png" mode="aspectFit" class="img1"
v-if="userObject.coinList[0].xname=='Ethereum'"></image>
<image src="../../../../static/tongyonh/Frame28.png" mode="aspectFit" class="img1"
v-if="userObject.coinList[0].xname=='Bitcoin'"></image>
<image src="../../../../static/tongyonh/tronicon.png" mode="aspectFit" class="img1"
v-if="userObject.coinList[0].xname=='TRON'"></image>
</view>
<view class="textcon1">
<view class="v1">
<view class="t1">
0.0
</view>
<view class="t2">
Existing balance
</view>
</view>
<view class="v1 v2">
<view class="t1">
0.0
</view>
<view class="t2">
Freeze balance
</view>
</view>
</view>
</view>
<view class="select_con">
<view class="select">
<u-tabs height="120" bar-width="172" active-color="#6F69FF" inactive-color="#A3AED0" :list="list"
:is-scroll="false" :current="current" @change="change"></u-tabs>
<u-empty text="No content" mode="list" v-if="showInfo"></u-empty>
<view class="" v-if="!showInfo">
<view class="item1" v-for="(item,index) in trxs" v-if="current==1&&item.outputs.address!=address"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left_1.png" mode="aspectFit"
v-if="item.outputs.address!=address" class="img1"></image>
<view class="textcon">
<view class="text1" v-if="item.outputs.address!=address">
{{item.outputs[0].address}}
</view>
<view class="text2">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text class="text1" v-if="item.outputs.address!=address">
<text>-</text>
{{item.outputs[0].value}}
</text>
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
<view class="item1" v-for="(item,index) in trxs" v-if="current==0"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left.png" mode="aspectFit" class="img1"
v-if="item.outputs.address==address"></image>
<image src="../../../../static/tongyonh/arrow-up-left_1.png" mode="aspectFit"
v-if="item.outputs.address!=address" class="img1"></image>
<view class="textcon">
<view class="text1" v-if="item.outputs.address==address">
{{item.inputs[0].address}}
</view>
<view class="text1" v-if="item.outputs.address!=address">
{{item.outputs[0].address}}
</view>
<view class="text2">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text class="text1" v-if="item.outputs.address==address">
<text>+</text>
{{item.inputs[0].value}}
</text>
<text class="text1" v-if="item.outputs.address!=address">
<text>-</text>
{{item.outputs[0].value}}
</text>
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
<view class="item1" v-for="(item,index) in trxs" v-if="current==2&&item.outputs.address==address"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left.png" mode="aspectFit" class="img1"
v-if="item.outputs.address==address"></image>
<view class="textcon">
<view class="text1" v-if="item.outputs.address==address">
{{item.inputs[0].address}}
</view>
<view class="text2">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text class="text1" v-if="item.outputs.address==address">
<text>+</text>
{{item.inputs[0].value}}
</text>
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
</view>
</view>
</view>
<view class="btnconn">
<view class="btn active" @click="goSend">
<image src="../../../../static/tongyonh/arrow-up-leftw.png" mode="aspectFit" class="arrow-up-left">
</image>
Send
</view>
<view class="btn" @click="goReceive">
<image src="../../../../static/tongyonh/arrow-up-leftp.png" mode="aspectFit" class="arrow-up-left">
</image>
<text class="btn13">Receive</text>
</view>
</view>
</view>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
import api from '@/utils/api'
import index from '@/utils/index.js'
export default {
data() {
return {
// address
coinInfo: {},
trxs: [],
trxs2: [],
address: '',
userObject: {},
showInfo: false,
list: [{
name: 'All'
}, {
name: 'Send'
}, {
name: 'Receive',
}],
infoWallet: {},
current: 0,
pageSize: 10,
pageNum: 1,
param: {
'address': '',
'pageNum': 1,
'pageSize': 10,
}
}
},
methods: {
goSend() {
uni.navigateTo({
url: '/pages/menu/sendToken/transfer2/index'
})
},
goReceive() {
let itemm = JSON.stringify(this.infoWallet)
uni.navigateTo({
url: '/pages/menu/sendToken/index?item=' + itemm
})
},
goDetail(item, index) {
let itemm = JSON.stringify(this.trxs2[index])
uni.navigateTo({
url: '/pages/menu/transction/detail2/index?item=' + itemm
})
},
change(index) {
console.log(index)
this.current = index;
console.log(this.current)
},
getInfo() {
this.param.address = this.address2
const post = api.addressbtc(
this.param
)
post.then(res => {
this.trxs2 = res.data.data[0].txs
})
},
// btc
getWalletInfo() {
if (this.infoWallet.coinList[0].xname == 'Bitcoin') {
this.address = this.infoWallet.address
this.address2 =this.infoWallet.address
// this.address2 = '14sA8jqYQgMRQV9zUtGFvpeMEw7YDn77SK';
// this.address = '14sA8jqYQgMRQV9zUtGFvpeMEw7YDn77SK';
this.param.address = this.address
this.userObject = this.infoWallet
// #ifdef APP-PLUS
uni.request({
url: 'http://scan.weirui0755.com/btc/api/address/btc/'+this.param.address+'/'+this.param.pageNum+'/'+this.param.pageSize, //
header: {
'content-type': 'application/x-www-form-urlencoded', //
},
success: (res) => {
console.log(res, 77)
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data.network == 'ETH') {
this.trxs = res.data.data.txs
for (var i = 0; i < this.trxs.length; i++) {
this.trxs[i].from = this.trxs[i].from.substring(0, 6) + '...' + this.trxs[i].from
.substring(35, this.trxs[i].from.length);
this.trxs[i].to = this.trxs[i].to.substring(0, 6) + '...' + this.trxs[i].to.substring(
35, this.trxs[i].to.length);
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
this.trxs[i].value = parseFloat(this.trxs[i].value).toFixed(5)
}
}
}
});
// #endif
// #ifdef H5
const post = api.addressbtc(
this.param
)
post.then(res => {
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data[0].network == 'BTC') {
this.trxs = res.data.data[0].txs
console.log(this.trxs, 7777)
for (var i = 0; i < this.trxs.length; i++) {
for (var j = 0; j < this.trxs[i].inputs.length; j++) {
this.trxs[i].inputs[j].address = this.trxs[i].inputs[j].address.substring(0,
6) + '...' + this.trxs[i].inputs[j].address.substring(30, this.trxs[i]
.inputs[j].address.length);
this.trxs[i].inputs[j].value = parseFloat(this.trxs[i].inputs[j].value)
.toFixed(5)
}
this.trxs[i].time = index.formatyymmddhhmmss(this.trxs[i].time);
}
for (var i = 0; i < this.trxs.length; i++) {
for (var j = 0; j < this.trxs[i].outputs.length; j++) {
if (this.trxs[i].outputs[j].address != undefined) {
this.trxs[i].outputs[j].address = this.trxs[i].outputs[j].address
.substring(0, 6) + '...' + this.trxs[i].outputs[j].address.substring(
30, this.trxs[i].outputs[j].address.length);
this.trxs[i].outputs[j].value = parseFloat(this.trxs[i].outputs[j].value)
.toFixed(5)
}
}
}
}
})
// #endif
this.address = this.address.substring(0, 6) + '...' + this.address.substring(30, this.address.length);
this.getInfo()
}
}
},
onLoad(option) {
const item = JSON.parse(option.item);
this.infoWallet = item
this.getWalletInfo();
},
onReachBottom() {
this.param.pageSize += 5;
this.getWalletInfo()
}
};
</script>
<style scoped>
page {
background: #FAFAFA;
}
</style>
<style>
@import './index.css';
</style>

4
unpackage/dist/dev/app-plus/app-config-service.js

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

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

File diff suppressed because one or more lines are too long

BIN
unpackage/dist/dev/app-plus/static/tongyonh/Frame 30.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 B

BIN
unpackage/dist/dev/app-plus/static/tongyonh/Frame300.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 B

After

Width:  |  Height:  |  Size: 752 B

BIN
unpackage/dist/dev/app-plus/static/tongyonh/erwei.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 955 B

After

Width:  |  Height:  |  Size: 752 B

BIN
unpackage/release/apk/__UNI__1ECBEE1__20211116205740.apk

Binary file not shown.
Loading…
Cancel
Save