|
@@ -7,46 +7,40 @@
|
|
</view>
|
|
</view>
|
|
<view class="allmbox_2 flex">
|
|
<view class="allmbox_2 flex">
|
|
<view class="allmbox_2_font">賬戶總資產折合(USDT)</view>
|
|
<view class="allmbox_2_font">賬戶總資產折合(USDT)</view>
|
|
- <view class="allmbox_2_icon" @click="open()">
|
|
|
|
- <image src="../../static/icon/user-th.png" mode=""></image>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="allmbox_2_icon" @click="open()"><image src="../../static/icon/user-th.png" mode=""></image></view>
|
|
</view>
|
|
</view>
|
|
- <view class="allmbox_3">{{show?'0':'****.****'}}</view>
|
|
|
|
|
|
+ <view class="allmbox_3">{{ show ? money : '****.****' }}</view>
|
|
|
|
|
|
<view class="allmbox_btn">
|
|
<view class="allmbox_btn">
|
|
<view class="allmbox_btn_1">
|
|
<view class="allmbox_btn_1">
|
|
- <view class="allmbox_cbtn btn_active"><span class="fch">充幣</span></view>
|
|
|
|
- <view class="allmbox_tbtn"><span class="fch">提幣</span></view>
|
|
|
|
|
|
+ <view class="allmbox_cbtn btn_active" @click="navTo('/pages/transaction/cblist')">充幣</view>
|
|
|
|
+ <view class="allmbox_tbtn" @click="navTo('/pages/transaction/tblist')">提幣</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="findbox">
|
|
<view class="findbox">
|
|
<view class="findbox_1">
|
|
<view class="findbox_1">
|
|
- <view class="findbox_2">
|
|
|
|
- <view class="findbox_3"><span class="fzmm fch">資產列表</span></view>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="findbox_2"><view class="findbox_3">資產列表</view></view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<scroll-view :scroll-y="true" class="swiper-box" :style="{ height: maxheight }">
|
|
<scroll-view :scroll-y="true" class="swiper-box" :style="{ height: maxheight }">
|
|
- <view class="listbox" v-for="(item, index) in 10">
|
|
|
|
|
|
+ <view class="listbox" v-for="(item, index) in list">
|
|
<view class="listbox_title flex">
|
|
<view class="listbox_title flex">
|
|
- <view class="listbox_title_l">WALLETS-USDT</view>
|
|
|
|
- <view class="listbox_title_r">
|
|
|
|
- <image src="../../static/icon/user-back.png" mode=""></image>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="listbox_title_l">{{ item.name.toLocaleUpperCase() }}</view>
|
|
|
|
+ <view class="listbox_title_r"><image src="../../static/icon/user-back.png" mode=""></image></view>
|
|
</view>
|
|
</view>
|
|
<view class="main flex">
|
|
<view class="main flex">
|
|
<view class="main-item">
|
|
<view class="main-item">
|
|
<view class="main-item-font">可用</view>
|
|
<view class="main-item-font">可用</view>
|
|
- <view class="main-item-num">0.000000</view>
|
|
|
|
|
|
+ <view class="main-item-num">{{ item.data.num || '0.0000' }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="main-item">
|
|
<view class="main-item">
|
|
- <view class="main-item-font">冻结</span></view>
|
|
|
|
- <view class="main-item-num">0.000000</view>
|
|
|
|
|
|
+ <view class="main-item-font">冻结</view>
|
|
|
|
+ <view class="main-item-num">{{ item.data.numd || '0.0000' }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="main-item">
|
|
<view class="main-item">
|
|
<view class="main-item-font">折合(USDT)</view>
|
|
<view class="main-item-font">折合(USDT)</view>
|
|
- <view class="main-item-num">0.000000</view>
|
|
|
|
|
|
+ <view class="main-item-num">{{ item.data.zhe || '0.0000' }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -55,18 +49,15 @@
|
|
<uni-popup ref="popup" type="center">
|
|
<uni-popup ref="popup" type="center">
|
|
<view class="popup-box">
|
|
<view class="popup-box">
|
|
<view class="img"><image src="../../static/img/user-index.png" mode=""></image></view>
|
|
<view class="img"><image src="../../static/img/user-index.png" mode=""></image></view>
|
|
- <view class="popup-font">
|
|
|
|
- 由於資金統計存在延時,賬戶餘額不一定是並非最新余額,如需準確餘額請到相關賬戶頁面進行查詢
|
|
|
|
- </view>
|
|
|
|
- <view class="btn" @click="cancel()">
|
|
|
|
- 確定
|
|
|
|
- </view>
|
|
|
|
|
|
+ <view class="popup-font">由於資金統計存在延時,賬戶餘額不一定是並非最新余額,如需準確餘額請到相關賬戶頁面進行查詢</view>
|
|
|
|
+ <view class="btn" @click="cancel()">確定</view>
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import { usercoin, getallzhehe } from '@/api/wallet.js';
|
|
export default {
|
|
export default {
|
|
onReady(res) {
|
|
onReady(res) {
|
|
var _this = this;
|
|
var _this = this;
|
|
@@ -88,13 +79,26 @@ export default {
|
|
return {
|
|
return {
|
|
maxheight: '',
|
|
maxheight: '',
|
|
show: false,
|
|
show: false,
|
|
|
|
+ list: '',
|
|
|
|
+ money: ''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad() {},
|
|
onLoad() {},
|
|
- onShow() {},
|
|
|
|
|
|
+ onShow() {
|
|
|
|
+ this.loadData();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
look(type) {
|
|
look(type) {
|
|
- this.show = type
|
|
|
|
|
|
+ this.show = type;
|
|
|
|
+ },
|
|
|
|
+ loadData() {
|
|
|
|
+ usercoin({}).then(({ data }) => {
|
|
|
|
+ this.list = data;
|
|
|
|
+ });
|
|
|
|
+ getallzhehe({}).then(e => {
|
|
|
|
+ this.money = e.allzhehe;
|
|
|
|
+ console.log(e, '123456');
|
|
|
|
+ });
|
|
},
|
|
},
|
|
cancel() {
|
|
cancel() {
|
|
this.$refs.popup.close();
|
|
this.$refs.popup.close();
|
|
@@ -105,9 +109,8 @@ export default {
|
|
navTo(url) {
|
|
navTo(url) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url
|
|
url
|
|
- })
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
@@ -285,7 +288,7 @@ a:active {
|
|
}
|
|
}
|
|
.listbox_title_r {
|
|
.listbox_title_r {
|
|
image {
|
|
image {
|
|
- width:28rpx;
|
|
|
|
|
|
+ width: 28rpx;
|
|
height: 28rpx;
|
|
height: 28rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -298,7 +301,7 @@ a:active {
|
|
font-size: 25rpx;
|
|
font-size: 25rpx;
|
|
font-family: PingFang SC;
|
|
font-family: PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
- color: #CDCDCD;
|
|
|
|
|
|
+ color: #cdcdcd;
|
|
}
|
|
}
|
|
.main-item-num {
|
|
.main-item-num {
|
|
margin-top: 14rpx;
|
|
margin-top: 14rpx;
|
|
@@ -318,7 +321,7 @@ a:active {
|
|
padding: 10rpx 0 0 0;
|
|
padding: 10rpx 0 0 0;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: center;
|
|
justify-content: center;
|
|
- image{
|
|
|
|
|
|
+ image {
|
|
width: 72rpx;
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
height: 72rpx;
|
|
}
|
|
}
|
|
@@ -332,7 +335,7 @@ a:active {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 80rpx;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
line-height: 80rpx;
|
|
- background: linear-gradient(to left,#eeb80d,#ffe35b);
|
|
|
|
|
|
+ background: linear-gradient(to left, #eeb80d, #ffe35b);
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|