能量碎片接口页面处理
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user