Browse Source

feat:添加历史金币明细的显示

zhangrenyuan/feature-20250623164058-金币前端
lihui 4 weeks ago
parent
commit
87637af774
  1. 16
      src/views/consume/addCoinConsume.vue

16
src/views/consume/addCoinConsume.vue

@ -607,9 +607,21 @@ onMounted(async function () {
</el-col>
<el-col :span="14">
<el-form-item label="历史金币总数">
<p v-if="!isNaN(Number(user.historySumGold))">
{{ Number(user.historySumGold) }}
<!-- 检查 user.historySumGold 是否为有效的数字 -->
<p style="color: #2fa1ff; margin-right: 5px" v-if="!isNaN(Number(user.historySumGold))">
{{ Number(user.historySumGold ) }}
</p>
<!-- 如果不是有效的数字显示默认值 -->
<p v-else></p>
</el-form-item>
<el-form-item style="margin-top: -23px">
<span
style="display: inline; white-space: nowrap; color: #b1b1b1"
v-if="user.historyPermanentGold !== undefined"
>(永久金币:{{ user.historyPermanentGold }};免费金币:{{
(user.historyFreeGold)
}};任务金币:{{ user.historyTaskGold }})</span>
</el-form-item>
</el-col>
</el-row>

Loading…
Cancel
Save