能量碎片接口页面处理

This commit is contained in:
2021-09-27 16:21:08 +08:00
parent d6af7dca6c
commit bb0e42104a
7 changed files with 120 additions and 80 deletions

View File

@@ -4,10 +4,10 @@
<image src="/static/imgs/account-bg.png" mode="aspectFill" class="record-bg" />
<view class="propery-content">
<view class="currency">能量球钱包
<!-- <span>( {{ price || '0.00' }} CNY)</span> -->
<span>( {{ price || '0.00' }} CNY)</span>
</view>
<view class="balance">{{ balance.balance || '0.00' }}</view>
<view class="frozen">{{ balance.frozen || '0.00' }} 冻结中</view>
<!-- <view class="frozen">{{ balance.frozen || '0.00' }} 冻结中</view> -->
<view class="balance-flex">
<view class="balance-flex-item" @click="showAddress">区块链地址</view>
<!-- <view class="balance-flex-item" @click="showPrivatekey('privatekey')">我的私钥</view> -->
@@ -71,23 +71,12 @@
onShow() {
this.getsum()
this.getlog()
this.getprice()
},
methods: {
getsum() {
sum().then(res => {
this.balance = res
}).catch(err => {
uni.showToast({
icon: 'none',
title: err.message
})
})
},
getprice() {
price().then(res => {
console.log(res,'87..........')
this.price = res
this.price = res.price
}).catch(err => {
uni.showToast({
icon: 'none',
@@ -97,7 +86,6 @@
},
getlog() {
logs().then(res => {
console.log(res,'98 ...........')
this.logs = res
}).catch(err => {
uni.showToast({