解决冲突报错

This commit is contained in:
2025-11-27 15:01:31 +08:00
parent f70fc65c24
commit 26cef66e82
2 changed files with 15 additions and 18 deletions

View File

@@ -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">积分</view>
<view class="assets_row">{{ $t('order.points') }}</view>
<view>{{userInfo.jf ?? 1}}</view>
</view>
<!-- <view>
@@ -56,7 +56,7 @@
<view>0</view>
</view> -->
</view>
<view class="chong_btn" @click="goRecharge"> </view>
<view class="chong_btn" @click="goRecharge">{{ $t('user.recharge') }}</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,21 +148,18 @@
* 获取数据
*/
const getData = async () => {
console.log(userInfo.value);
try {
// 获取用户信息
const userRes = await getUserInfo()
console.log(userRes, '-----userRes');
console.log(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
}
}}
}
/**
* 跳转到设置页面
@@ -217,7 +214,7 @@
url: '/pages/user/recharge/index'
})
}
/**
* 跳转虚拟币页面
*/
@@ -226,7 +223,7 @@
url: '/pages/user/virtual/index'
})
}
/**
* 跳转积分列表
*/
@@ -235,11 +232,11 @@
url: '/pages/user/points/index'
})
}
onShow(() => {
getData()
})
onMounted(() => {
getPlatform()
})
@@ -392,7 +389,7 @@
flex: 1;
justify-content: space-around;
text-align: center;
transform:translateX(-20px);
transform: translateX(-20px);
.assets_row {
margin-bottom: 20rpx;

View File

@@ -9,7 +9,7 @@
:class="aloneItem.priceTypeId === item.priceTypeId ? 'selected' : ''"
v-for="item in rechargeList.bookBuyConfigList" :key="item.priceTypeId">
<view class="recharge_money">{{item.realMoney}}</view>
<view>{{item.money}}{{$t('order.virtualCoin')}}</view>
<view>{{item.money}}{{$t('global.coin')}}</view>
<!-- 红框位置的618活动标签 -->
<!-- <view class="activity-tag">618活动</view> -->
<span class="activity-label" v-if="item.givejf >0">618充值活动</span>