Browse Source

fix 不显示历史金币

youhua/chongzhi
lihui 2 months ago
parent
commit
7078af443a
  1. 30
      src/views/consume/gold/addCoinConsume.vue
  2. 92
      src/views/recharge/gold/addCoinRecharge.vue
  3. 63
      src/views/refund/gold/addCoinRefund.vue

30
src/views/consume/gold/addCoinConsume.vue

@ -585,21 +585,21 @@ onMounted(async function () {
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item label="历史金币总数">
<!-- 检查 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-form-item label="历史金币总数">-->
<!-- &lt;!&ndash; 检查 user.historySumGold 是否为有效的数字 &ndash;&gt;-->
<!-- <p style="color: #2fa1ff; margin-right: 5px" v-if="!isNaN(Number(user.historySumGold))">-->
<!-- {{ Number(user.historySumGold) }}-->
<!-- </p>-->
<!-- &lt;!&ndash; 如果不是有效的数字显示默认值 &ndash;&gt;-->
<!-- <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-col>
</el-row> </el-row>

92
src/views/recharge/gold/addCoinRecharge.vue

@ -730,23 +730,23 @@ onMounted(() => {
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item label="历史金币总数">
<!-- 检查 user.historySumGold 是否为有效的数字 -->
<p style="color: #2fa1ff; margin-right: 5px" v-if="!isNaN(Number(user.historySumGold))">
{{ Number(user.historySumGold) / 100 }}
</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 / 100
}};免费金币:{{
(user.historyFreeGold) / 100
}};任务金币:{{ user.historyTaskGold / 100 }})</span>
</el-form-item>
<!-- <el-form-item label="历史金币总数">-->
<!-- &lt;!&ndash; 检查 user.historySumGold 是否为有效的数字 &ndash;&gt;-->
<!-- <p style="color: #2fa1ff; margin-right: 5px" v-if="!isNaN(Number(user.historySumGold))">-->
<!-- {{ Number(user.historySumGold) / 100 }}-->
<!-- </p>-->
<!-- &lt;!&ndash; 如果不是有效的数字显示默认值 &ndash;&gt;-->
<!-- <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 / 100-->
<!-- }};免费金币:{{-->
<!-- (user.historyFreeGold) / 100-->
<!-- }};任务金币:{{ user.historyTaskGold / 100 }})</span>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
@ -924,35 +924,6 @@ p {
margin-left: 50px; margin-left: 50px;
} }
/* 上传图片的格式 */
.avatar-uploader {
width: 50px;
height: 50px;
display: block;
}
.avatar-uploader .el-upload {
border: 1px dashed var(--el-border-color);
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 50px;
height: 50px;
text-align: center;
}
.add-form { .add-form {
margin-top: 50px; margin-top: 50px;
max-width: 50%; max-width: 50%;
@ -984,3 +955,32 @@ p {
gap: 12px; gap: 12px;
} }
</style> </style>
<style>
/* 上传图片的格式 */
.avatar-uploader .avatar {
width: 50px;
height: 50px;
display: block;
}
.avatar-uploader .el-upload {
border: 1px dashed var(--el-border-color);
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: var(--el-transition-duration-fast);
}
.avatar-uploader .el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 50px;
height: 50px;
text-align: center;
}
</style>

63
src/views/refund/gold/addCoinRefund.vue

@ -518,11 +518,11 @@ onMounted(async function () {
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<el-form-item label="历史金币总数">
<p v-if="!isNaN(Number(user.historySumGold))">
{{ Number(user.historySumGold) }}
</p>
</el-form-item>
<!-- <el-form-item label="历史金币总数">-->
<!-- <p v-if="!isNaN(Number(user.historySumGold))">-->
<!-- {{ Number(user.historySumGold) }}-->
<!-- </p>-->
<!-- </el-form-item>-->
</el-col> </el-col>
</el-row> </el-row>
@ -590,16 +590,41 @@ p {
.el-form-item { .el-form-item {
margin-left: 50px; margin-left: 50px;
} }
</style>
<style>
.form-style {
margin-top: 50px;
max-width: 50%;
float: left;
}
.form-style2 {
max-width: 60%;
}
p {
font-size: 13px;
transform: scale(1);
}
.beautiful {
width: 700px;
float: right;
margin-right: 300px;
margin-top: 150px;
}
</style>
<style>
/* 上传图片的格式 */ /* 上传图片的格式 */
.avatar-uploader .avatar { .avatar-uploader .avatar {
width: 50px; width: 50px;
height: 50px; height: 50px;
display: block; display: block;
} }
</style>
<style>
.avatar-uploader .el-upload { .avatar-uploader .el-upload {
border: 1px dashed var(--el-border-color); border: 1px dashed var(--el-border-color);
border-radius: 6px; border-radius: 6px;
@ -620,26 +645,4 @@ p {
height: 50px; height: 50px;
text-align: center; text-align: center;
} }
.form-style {
margin-top: 50px;
max-width: 50%;
float: left;
}
.form-style2 {
max-width: 60%;
}
p {
font-size: 13px;
transform: scale(1);
}
.beautiful {
width: 700px;
float: right;
margin-right: 300px;
margin-top: 150px;
}
</style> </style>
Loading…
Cancel
Save