Browse Source

代码

master
Dread 4 years ago
parent
commit
e67a8f5e15
  1. 217
      pages/menu/token/btc/index.vue
  2. 39
      pages/menu/wallet/index.vue
  3. 17
      pages/menu/wallet/otherCoin/index.vue
  4. 3371
      unpackage/dist/dev/app-plus/app-service.js
  5. 470
      unpackage/dist/dev/app-plus/app-view.js
  6. 0
      unpackage/dist/dev/app-plus/static/img/copy_24px_outlined.8dca7e38.svg
  7. 0
      unpackage/dist/dev/app-plus/static/img/more_vert_24px_outlined.266aaa48.svg
  8. 2
      unpackage/dist/dev/app-plus/view.css
  9. 4
      unpackage/dist/dev/app-plus/view.umd.min.js
  10. 45
      utils/DataUtil.js

217
pages/menu/token/btc/index.vue

@ -62,39 +62,7 @@
<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&&address==item.from"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left_1.png" mode="aspectFit"
class="img1" v-if="address==item.from"></image>
<view class="textcon">
<view class="text1" v-if="address==item.from">
{{item.to}}
</view>
<view class="text2" v-if="address==item.from">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text v-if="address==item.from">-</text>
{{item.value}}
<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"
<view class="item1" v-for="(item,index) in trxs"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left.png" mode="aspectFit" class="img1"
@ -102,11 +70,9 @@
<image src="../../../../static/tongyonh/arrow-up-left_1.png" mode="aspectFit"
class="img1" v-if="address==item.from"></image>
<view class="textcon">
<view class="text1" v-if="address==item.from">
{{item.to}}
</view>
<view class="text1" v-if="address==item.to">
{{item.from}}
<view class="text1">
{{item.address}}
</view>
<view class="text2">
{{item.time}}
@ -130,36 +96,7 @@
</view>
</view>
<view class="item1" v-for="(item,index) in trxs" v-if="current==2&&address==item.to"
@click="goDetail(item,index)">
<view class="lef_con">
<image src="../../../../static/tongyonh/arrow-up-left.png" mode="aspectFit" class="img1"
v-if="address==item.to"></image>
<view class="textcon">
<view class="text1" v-if="address==item.to">
{{item.from}}
</view>
<view class="text2" v-if="address==item.to">
{{item.time}}
</view>
</view>
</view>
<view class="rig_con">
<view class="text1">
<text v-if="address==item.to">+</text>
{{item.value}}
<text class="">
{{item.network}}
</text>
</view>
<image src="../../../../static/tongyonh/Shape.png" mode="aspectFit" class="img1">
</image>
</view>
</view>
</view>
</view>
@ -198,11 +135,14 @@
userObject: {},
showInfo: false,
list: [{
name: 'All'
name: 'All',
}, {
name: 'Send'
name: 'Send',
}, {
name: 'Receive',
}],
infoWallet: {},
current: 0,
@ -213,6 +153,9 @@
'pageNum': 1,
'pageSize': 10,
},
address:'0x56eddb7aa87536c09ccc2793473599fd21a8b17f',
address2:'0x56eddb7aa87536c09ccc2793473599fd21a8b17f',
type:'',
}
},
methods: {
@ -236,131 +179,42 @@
},
change(index) {
console.log(index)
if(index==0){
this.type='all'
}
if(index==1){
this.type='send'
}
if(index==2){
this.type='receive'
}
this.current = index;
console.log(this.current)
this.getWalletInfo();
},
getWalletInfo() {
if (this.infoWallet.coinList[0].xname == 'Ethereum') {
this.address = this.infoWallet.address
this.address2 = this.infoWallet.address
// this.address = this.infoWallet.address
// this.address2 = this.infoWallet.address
this.param.address = this.address
this.userObject = this.infoWallet
var that = this
this.$dataUtil.transactionData('ETH', 'send', this.address2, '0xdac17f958d2ee523a2206206994597c13d831ec7',
1, 20,
function(data) {
that.trxs = data
that.trxs2 = data
console.log(that.trxs, 12121)
console.log(data)
})
// #ifdef APP-PLUS
uni.request({
url: 'http://scan.weirui0755.com/eth/api/eth/address/normal/'+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.address(
this.param
)
post.then(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
this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length);
this.getInfo()
} else if (this.infoWallet.coinList[0].xname == 'TRON') {
this.address = this.infoWallet.address
this.param.address=this.address
this.address2 = this.infoWallet.address
this.userObject =this.infoWallet
// #ifdef APP-PLUS
uni.request({
url: 'http://scan.weirui0755.com/trx/api/trx/address/normal/'+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.addresstrx(
this.param
)
post.then(res => {
if (res.data.code == 404) {
this.showInfo = true;
return;
}
if (res.data.data.network == 'TRX') {
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
this.address = this.address.substring(0, 6) + '...' + this.address.substring(35, this.address.length);
}
},
getInfo() {
this.param.address = this.address2
@ -373,6 +227,7 @@
}
},
onLoad(option) {
const item = JSON.parse(option.item);
this.infoWallet = item

39
pages/menu/wallet/index.vue

@ -91,6 +91,7 @@
onLoad() {
this.setStorage();
// this.$dataUtil.transactionData('TRX','send','TBREsCfBdPyD612xZnwvGPux7osbXvtzLh',
// 'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',1,30,function(data){
// console.log(data)
@ -100,49 +101,13 @@
var a=uni.getStorageSync('wallet')
if(a!=''){
this.userObj=uni.getStorageSync('wallet');
console.log(this.userObj,777789798798)
console.log(this.userObj,1212121)
this.userObj2=uni.getStorageSync('wallet');
this.userObj.address = this.userObj.address.substring(0, 6)+'...'+this.userObj.address.substring(25,this.userObj.address.length);
}
},
methods: {
//
getWalletBalance(){
var walletInfo=uni.getStorageSync('walletInfo')
for(let i=0;i<walletInfo.BTC.length;i++){
this.$api.getBtcBalance().then((res) => {
var b = res.data.data[0]
for (var k in b) {
walletInfo.BTC[i].balance= b[k]
uni.setStorageSync('walletInfo',walletInfo)
}
})
}
var walletInfo=uni.getStorageSync('walletInfo')
for(let i=0;i<walletInfo.ETH.length;i++){
this.$EthUtil.getBalance(this.walletInfo.ETH[0].address,function(res){
walletInfo.ETH[i].balance= res
uni.setStorageSync('walletInfo',walletInfo)
});
}
var walletInfo=uni.getStorageSync('walletInfo')
for(let i=0;i<walletInfo.TRON.length;i++){
this.$TronUtil.getTronBalance(walletInfo.TRON[i].address).then((res) => {
walletInfo.TRON[i].balance= res
uni.setStorageSync('walletInfo',walletInfo)
}).catch(err => {
console.log(err)
})
}
},
goOther(){
console.log(this.userObj2,8888)
let item = JSON.stringify(this.userObj2)

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

@ -99,19 +99,12 @@
},1500)
uni.setStorageSync('imgindex',this.imgindex)
}
if(this.coinType=='ETH'){
var walleti=uni.getStorageSync('walleti')
var walletInfo=uni.getStorageSync('walletInfo')
const walleti=uni.getStorageSync('walleti')
const walletInfo=uni.getStorageSync('walletInfo')
console.log(walleti)
for(var i=0;i<walletInfo[this.coinType].length;i++){
console.log(walletInfo[this.coinType].address,111)
console.log(walleti,2211)
if(walletInfo[this.coinType][i].address==walleti){
console.log(1111)
var that=this
this.$EthUtil.getTokenBalance(this.coinAddress
,item.contractAddress,function(balance){
@ -126,10 +119,14 @@
contractAddress:item.contractAddress,
balance:this.tmoney,
};
walletInfo[this.coinType][i].coinList.push(b)
console.log(walletInfo[this.coinType][i],22222)
uni.setStorageSync('walletInfo',walletInfo)
uni.setStorageSync('wallet',walletInfo[this.coinType][i])
}
}
uni.setStorageSync('walletInfo',walletInfo)
}

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

File diff suppressed because one or more lines are too long

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

@ -2405,15 +2405,13 @@ var render = function() {
? _c(
"v-uni-view",
{ attrs: { _i: 27 } },
[
_vm._l(_vm._$g(28, "f"), function(
item,
index,
$20,
$30
) {
return _vm._$g("28-" + $30, "i")
? _c(
return _c(
"v-uni-view",
{
key: item,
@ -2435,259 +2433,52 @@ var render = function() {
[
_vm._$g("30-" + $30, "i")
? _c("v-uni-image", {
staticClass: _vm._$g(
"30-" + $30,
"sc"
),
staticClass: _vm._$g("30-" + $30, "sc"),
attrs: {
src: _vm._$g(
"30-" + $30,
"a-src"
),
src: _vm._$g("30-" + $30, "a-src"),
mode: "aspectFit",
_i: "30-" + $30
}
})
: _vm._e(),
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"31-" + $30,
"sc"
),
attrs: { _i: "31-" + $30 }
},
[
_vm._$g("32-" + $30, "i")
? _c(
"v-uni-view",
{
staticClass: _vm._$g(
"32-" + $30,
"sc"
),
attrs: { _i: "32-" + $30 }
},
[
_vm._v(
_vm._$g(
"32-" + $30,
"t0-0"
)
)
]
)
: _vm._e(),
_vm._$g("33-" + $30, "i")
? _c(
"v-uni-view",
{
staticClass: _vm._$g(
"33-" + $30,
"sc"
),
attrs: { _i: "33-" + $30 }
},
[
_vm._v(
_vm._$g(
"33-" + $30,
"t0-0"
)
)
]
)
: _vm._e()
],
1
)
],
1
),
_c(
"v-uni-view",
{
staticClass: _vm._$g("34-" + $30, "sc"),
attrs: { _i: "34-" + $30 }
},
[
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"35-" + $30,
"sc"
),
attrs: { _i: "35-" + $30 }
},
[
_vm._$g("36-" + $30, "i")
? _c(
"v-uni-text",
{
attrs: { _i: "36-" + $30 }
},
[_vm._v("-")]
)
: _vm._e(),
_vm._v(
_vm._$g("35-" + $30, "t1-0")
),
_c(
"v-uni-text",
{ attrs: { _i: "37-" + $30 } },
[
_vm._v(
_vm._$g("37-" + $30, "t0-0")
)
]
)
],
1
),
_c("v-uni-image", {
staticClass: _vm._$g(
"38-" + $30,
"sc"
),
attrs: {
src: _vm._$g("38-" + $30, "a-src"),
mode: "aspectFit",
_i: "38-" + $30
}
})
],
1
)
],
1
)
: _vm._e()
}),
_vm._l(_vm._$g(39, "f"), function(
item,
index,
$21,
$31
) {
return _vm._$g("39-" + $31, "i")
? _c(
"v-uni-view",
{
key: item,
staticClass: _vm._$g("39-" + $31, "sc"),
attrs: { _i: "39-" + $31 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
}
}
},
[
_c(
"v-uni-view",
{
staticClass: _vm._$g("40-" + $31, "sc"),
attrs: { _i: "40-" + $31 }
},
[
_vm._$g("41-" + $31, "i")
? _c("v-uni-image", {
staticClass: _vm._$g(
"41-" + $31,
"sc"
),
attrs: {
src: _vm._$g(
"41-" + $31,
"a-src"
),
mode: "aspectFit",
_i: "41-" + $31
}
})
: _vm._e(),
_vm._$g("42-" + $31, "i")
_vm._$g("31-" + $30, "i")
? _c("v-uni-image", {
staticClass: _vm._$g(
"42-" + $31,
"sc"
),
staticClass: _vm._$g("31-" + $30, "sc"),
attrs: {
src: _vm._$g(
"42-" + $31,
"a-src"
),
src: _vm._$g("31-" + $30, "a-src"),
mode: "aspectFit",
_i: "42-" + $31
_i: "31-" + $30
}
})
: _vm._e(),
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"43-" + $31,
"sc"
),
attrs: { _i: "43-" + $31 }
staticClass: _vm._$g("32-" + $30, "sc"),
attrs: { _i: "32-" + $30 }
},
[
_vm._$g("44-" + $31, "i")
? _c(
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"44-" + $31,
"33-" + $30,
"sc"
),
attrs: { _i: "44-" + $31 }
attrs: { _i: "33-" + $30 }
},
[
_vm._v(
_vm._$g(
"44-" + $31,
"t0-0"
)
)
]
)
: _vm._e(),
_vm._$g("45-" + $31, "i")
? _c(
"v-uni-view",
{
staticClass: _vm._$g(
"45-" + $31,
"sc"
[_vm._v(_vm._$g("33-" + $30, "t0-0"))]
),
attrs: { _i: "45-" + $31 }
},
[
_vm._v(
_vm._$g(
"45-" + $31,
"t0-0"
)
)
]
)
: _vm._e(),
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"46-" + $31,
"34-" + $30,
"sc"
),
attrs: { _i: "46-" + $31 }
attrs: { _i: "34-" + $30 }
},
[
_vm._v(
_vm._$g("46-" + $31, "t0-0")
)
]
[_vm._v(_vm._$g("34-" + $30, "t0-0"))]
)
],
1
@ -2698,62 +2489,46 @@ var render = function() {
_c(
"v-uni-view",
{
staticClass: _vm._$g("47-" + $31, "sc"),
attrs: { _i: "47-" + $31 }
staticClass: _vm._$g("35-" + $30, "sc"),
attrs: { _i: "35-" + $30 }
},
[
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"48-" + $31,
"sc"
),
attrs: { _i: "48-" + $31 }
staticClass: _vm._$g("36-" + $30, "sc"),
attrs: { _i: "36-" + $30 }
},
[
_vm._$g("49-" + $31, "i")
_vm._$g("37-" + $30, "i")
? _c(
"v-uni-text",
{
attrs: { _i: "49-" + $31 }
},
{ attrs: { _i: "37-" + $30 } },
[_vm._v("+")]
)
: _vm._e(),
_vm._$g("50-" + $31, "i")
_vm._$g("38-" + $30, "i")
? _c(
"v-uni-text",
{
attrs: { _i: "50-" + $31 }
},
{ attrs: { _i: "38-" + $30 } },
[_vm._v("-")]
)
: _vm._e(),
_vm._v(
_vm._$g("48-" + $31, "t2-0")
),
_vm._v(_vm._$g("36-" + $30, "t2-0")),
_c(
"v-uni-text",
{ attrs: { _i: "51-" + $31 } },
[
_vm._v(
_vm._$g("51-" + $31, "t0-0")
)
]
{ attrs: { _i: "39-" + $30 } },
[_vm._v(_vm._$g("39-" + $30, "t0-0"))]
)
],
1
),
_c("v-uni-image", {
staticClass: _vm._$g(
"52-" + $31,
"sc"
),
staticClass: _vm._$g("40-" + $30, "sc"),
attrs: {
src: _vm._$g("52-" + $31, "a-src"),
src: _vm._$g("40-" + $30, "a-src"),
mode: "aspectFit",
_i: "52-" + $31
_i: "40-" + $30
}
})
],
@ -2762,171 +2537,10 @@ var render = function() {
],
1
)
: _vm._e()
}),
_vm._l(_vm._$g(53, "f"), function(
item,
index,
$22,
$32
) {
return _vm._$g("53-" + $32, "i")
? _c(
"v-uni-view",
{
key: item,
staticClass: _vm._$g("53-" + $32, "sc"),
attrs: { _i: "53-" + $32 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
}
}
},
[
_c(
"v-uni-view",
{
staticClass: _vm._$g("54-" + $32, "sc"),
attrs: { _i: "54-" + $32 }
},
[
_vm._$g("55-" + $32, "i")
? _c("v-uni-image", {
staticClass: _vm._$g(
"55-" + $32,
"sc"
),
attrs: {
src: _vm._$g(
"55-" + $32,
"a-src"
),
mode: "aspectFit",
_i: "55-" + $32
}
})
: _vm._e(),
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"56-" + $32,
"sc"
),
attrs: { _i: "56-" + $32 }
},
[
_vm._$g("57-" + $32, "i")
? _c(
"v-uni-view",
{
staticClass: _vm._$g(
"57-" + $32,
"sc"
),
attrs: { _i: "57-" + $32 }
},
[
_vm._v(
_vm._$g(
"57-" + $32,
"t0-0"
)
)
]
)
: _vm._e(),
_vm._$g("58-" + $32, "i")
? _c(
"v-uni-view",
{
staticClass: _vm._$g(
"58-" + $32,
"sc"
),
attrs: { _i: "58-" + $32 }
},
[
_vm._v(
_vm._$g(
"58-" + $32,
"t0-0"
)
)
]
)
: _vm._e()
],
1
)
],
1
),
_c(
"v-uni-view",
{
staticClass: _vm._$g("59-" + $32, "sc"),
attrs: { _i: "59-" + $32 }
},
[
_c(
"v-uni-view",
{
staticClass: _vm._$g(
"60-" + $32,
"sc"
),
attrs: { _i: "60-" + $32 }
},
[
_vm._$g("61-" + $32, "i")
? _c(
"v-uni-text",
{
attrs: { _i: "61-" + $32 }
},
[_vm._v("+")]
)
: _vm._e(),
_vm._v(
_vm._$g("60-" + $32, "t1-0")
),
_c(
"v-uni-text",
{ attrs: { _i: "62-" + $32 } },
[
_vm._v(
_vm._$g("62-" + $32, "t0-0")
)
]
)
],
1
),
_c("v-uni-image", {
staticClass: _vm._$g(
"63-" + $32,
"sc"
),
attrs: {
src: _vm._$g("63-" + $32, "a-src"),
mode: "aspectFit",
_i: "63-" + $32
}
})
],
1
)
],
1
)
: _vm._e()
})
],
2
)
: _vm._e()
],
1
)
@ -2935,13 +2549,13 @@ var render = function() {
),
_c(
"v-uni-view",
{ staticClass: _vm._$g(64, "sc"), attrs: { _i: 64 } },
{ staticClass: _vm._$g(41, "sc"), attrs: { _i: 41 } },
[
_c(
"v-uni-view",
{
staticClass: _vm._$g(65, "sc"),
attrs: { _i: 65 },
staticClass: _vm._$g(42, "sc"),
attrs: { _i: 42 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
@ -2950,11 +2564,11 @@ var render = function() {
},
[
_c("v-uni-image", {
staticClass: _vm._$g(66, "sc"),
staticClass: _vm._$g(43, "sc"),
attrs: {
src: _vm._$g(66, "a-src"),
src: _vm._$g(43, "a-src"),
mode: "aspectFit",
_i: 66
_i: 43
}
}),
_vm._v("Send")
@ -2964,8 +2578,8 @@ var render = function() {
_c(
"v-uni-view",
{
staticClass: _vm._$g(67, "sc"),
attrs: { _i: 67 },
staticClass: _vm._$g(44, "sc"),
attrs: { _i: 44 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
@ -2974,16 +2588,16 @@ var render = function() {
},
[
_c("v-uni-image", {
staticClass: _vm._$g(68, "sc"),
staticClass: _vm._$g(45, "sc"),
attrs: {
src: _vm._$g(68, "a-src"),
src: _vm._$g(45, "a-src"),
mode: "aspectFit",
_i: 68
_i: 45
}
}),
_c(
"v-uni-text",
{ staticClass: _vm._$g(69, "sc"), attrs: { _i: 69 } },
{ staticClass: _vm._$g(46, "sc"), attrs: { _i: 46 } },
[_vm._v("Receive")]
)
],

0
unpackage/dist/dev/app-plus/static/img/copy_24px_outlined.e8932d3c.svg → unpackage/dist/dev/app-plus/static/img/copy_24px_outlined.8dca7e38.svg

Before

Width:  |  Height:  |  Size: 629 B

After

Width:  |  Height:  |  Size: 629 B

0
unpackage/dist/dev/app-plus/static/img/more_vert_24px_outlined.427f4df0.svg → unpackage/dist/dev/app-plus/static/img/more_vert_24px_outlined.266aaa48.svg

Before

Width:  |  Height:  |  Size: 526 B

After

Width:  |  Height:  |  Size: 526 B

2
unpackage/dist/dev/app-plus/view.css

File diff suppressed because one or more lines are too long

4
unpackage/dist/dev/app-plus/view.umd.min.js

File diff suppressed because one or more lines are too long

45
utils/DataUtil.js

@ -49,10 +49,17 @@ let DataUtil = {
}
if (data[i].from === address) {
transactionData.address = data[i].to;
let address = data[i].to;
address = address.substring(0, 6) + '...' + address.substring(25,
address.length)
transactionData.address = address;
transactionData.type = 'out';
} else {
transactionData.address = data[i].from;
let address = data[i].from;
address = address.substring(0, 6) + '...' + address.substring(25,
address.length)
transactionData.address = address;
transactionData.type = 'in';
}
dataList.push(transactionData)
@ -97,10 +104,17 @@ let DataUtil = {
}
if (data[i].from === address) {
transactionData.address = data[i].to;
let address = data[i].to;
address = address.substring(0, 6) + '...' + address.substring(36,
address.length)
transactionData.address = address;
transactionData.type = 'out';
} else {
transactionData.address = data[i].from;
let address = data[i].from;
address = address.substring(0, 6) + '...' + address.substring(36,
address.length)
transactionData.address = address;
transactionData.type = 'in';
}
dataList.push(transactionData)
@ -152,12 +166,20 @@ let DataUtil = {
}
if (data[i].from === address) {
transactionData.address = data[i].to;
var address=data[i].to
address = address.substring(0, 6) + '...' + address.substring(36,
address.length);
transactionData.address = address;
transactionData.type = 'out';
} else {
transactionData.address = data[i].from;
var address=data[i].from
address = address.substring(0, 6) + '...' + address.substring(36,
address.length);
transactionData.address = address;
transactionData.type = 'in';
}
console.log(transactionData.address,123456)
dataList.push(transactionData)
}
@ -199,10 +221,17 @@ let DataUtil = {
}
if (data[i].from === address) {
transactionData.address = data[i].to;
var address=data[i].to
address = address.substring(0, 6) + '...' + address.substring(25,
address.length);
transactionData.address = address;
transactionData.type = 'out';
} else {
transactionData.address = data[i].from;
var address=data[i].from
address = address.substring(0, 6) + '...' + address.substring(25,
address.length);
transactionData.address = address;
transactionData.type = 'in';
}
dataList.push(transactionData)

Loading…
Cancel
Save