|
@@ -11,17 +11,11 @@
|
|
|
<view class="content-bg">
|
|
|
<!-- <image src="../../static/yonghu/jf.png" mode=""></image> -->
|
|
|
</view>
|
|
|
- <!-- -->
|
|
|
- <!-- <view class="money-box">
|
|
|
- <view class="money">{{ yj || 0 }}</view>
|
|
|
- <view>流动积分</view>
|
|
|
- </view> -->
|
|
|
<view class="money-box">
|
|
|
<view>{{$t('money.a2')}}</view>
|
|
|
- <view class="money">{{ yj || 0 }}</view>
|
|
|
+ <view class="money">{{userWallet}}U</view>
|
|
|
|
|
|
</view>
|
|
|
-
|
|
|
<!-- 数据代办 -->
|
|
|
<view class="box">
|
|
|
<view class="moneybtn-box1">
|
|
@@ -55,9 +49,6 @@
|
|
|
@change="changeTab">
|
|
|
<swiper-item class="tab-content" v-for="(tabItem, tabIndex) in navList" :key="tabIndex">
|
|
|
<scroll-view scroll-y="true" class="list-scroll-content" @scrolltolower="loadData">
|
|
|
- <!-- 空白页 -->
|
|
|
- <!-- <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty> -->
|
|
|
-
|
|
|
<!-- 订单列表 -->
|
|
|
<view>
|
|
|
<view class="order-item flex" v-for="(item, index) in tabItem.orderList" :key="index">
|
|
@@ -84,6 +75,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {
|
|
|
+ gameWallet,
|
|
|
+ } from "@/api/game.js";
|
|
|
import {
|
|
|
mapState,
|
|
|
mapMutations
|
|
@@ -127,6 +121,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ userWallet: 0, //余额
|
|
|
userInfo: {},
|
|
|
yj: '',
|
|
|
height: '',
|
|
@@ -171,6 +166,12 @@
|
|
|
this.loadData();
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 获取用户余额信息
|
|
|
+ getUserWallet() {
|
|
|
+ gameWallet().then((res) => {
|
|
|
+ this.userWallet = +res.data.back.USDT.money.money
|
|
|
+ })
|
|
|
+ },
|
|
|
getUserInfo() {
|
|
|
getUserInfo({}).then(({
|
|
|
data
|
|
@@ -186,7 +187,7 @@
|
|
|
},
|
|
|
toBack() {
|
|
|
uni.switchTab({
|
|
|
- url: '/pages/user/user'
|
|
|
+ url: '/pages/index/user'
|
|
|
});
|
|
|
},
|
|
|
// 页面跳转
|