@@ -44,11 +44,11 @@
|
||||
<view class="vip-card wallet_l">
|
||||
<view class="assets">
|
||||
<view @click="goVirtualList">
|
||||
<view class="assets_row">{{ $t('global.coin') }}</view>
|
||||
<view class="assets_row">{{ t('global.coin') }}</view>
|
||||
<view>{{userInfo.peanutCoin ?? 1}}</view>
|
||||
</view>
|
||||
<view @click="goPointsList">
|
||||
<view class="assets_row">{{ $t('order.points') }}</view>
|
||||
<view class="assets_row">积分</view>
|
||||
<view>{{userInfo.jf ?? 1}}</view>
|
||||
</view>
|
||||
<!-- <view>
|
||||
@@ -56,7 +56,7 @@
|
||||
<view>0</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="chong_btn" @click="goRecharge">{{ $t('user.recharge') }}</view>
|
||||
<view class="chong_btn" @click="goRecharge">充 值</view>
|
||||
<!-- <text class="wallet_title">{{$t('my.coin')}}<uni-icons type="help" size="19" color="#666"></uni-icons></text>
|
||||
<text class="wallet_count">{{userMes.peanutCoin}}</text> -->
|
||||
</view>
|
||||
@@ -148,18 +148,21 @@
|
||||
* 获取数据
|
||||
*/
|
||||
const getData = async () => {
|
||||
console.log(userInfo.value);
|
||||
try {
|
||||
// 获取用户信息
|
||||
const userRes = await getUserInfo()
|
||||
console.log(userRes);
|
||||
console.log(userRes, '-----userRes');
|
||||
if (userRes.result) {
|
||||
userStore.setUserInfo(userRes.result)
|
||||
}
|
||||
|
||||
// 获取VIP信息
|
||||
const vipRes = await getVipInfo()
|
||||
if (vipRes.vipInfo) {
|
||||
vipInfo.value = vipRes.vipInfo
|
||||
// 获取VIP信息
|
||||
const vipRes = await getVipInfo()
|
||||
if (vipRes.vipInfo) {
|
||||
vipInfo.value = vipRes.vipInfo
|
||||
}
|
||||
}
|
||||
}}
|
||||
|
||||
/**
|
||||
* 跳转到设置页面
|
||||
@@ -214,7 +217,7 @@
|
||||
url: '/pages/user/recharge/index'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 跳转虚拟币页面
|
||||
*/
|
||||
@@ -223,7 +226,7 @@
|
||||
url: '/pages/user/virtual/index'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 跳转积分列表
|
||||
*/
|
||||
@@ -232,11 +235,11 @@
|
||||
url: '/pages/user/points/index'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
onShow(() => {
|
||||
getData()
|
||||
})
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
getPlatform()
|
||||
})
|
||||
@@ -389,7 +392,7 @@
|
||||
flex: 1;
|
||||
justify-content: space-around;
|
||||
text-align: center;
|
||||
transform: translateX(-20px);
|
||||
transform:translateX(-20px);
|
||||
|
||||
.assets_row {
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
Reference in New Issue
Block a user