修复个人中心积分变动金额显示异常问题

This commit is contained in:
赵毅 2025-10-13 18:02:28 +08:00
parent e0abdd3b15
commit 372950b774

View File

@ -39,7 +39,10 @@
<text <text
:class="['amount-sign', record.change_reason == '下单' ? 'positive' : 'negative']">{{ :class="['amount-sign', record.change_reason == '下单' ? 'positive' : 'negative']">{{
record.change_reason == '下单' ? '+' : '-' }}</text> record.change_reason == '下单' ? '+' : '-' }}</text>
<text <text v-if="topVal == '积分'"
:class="['amount-value', record.change_reason == '下单' ? 'positive' : 'negative']">¥{{
record.change_value }}</text>
<text v-else
:class="['amount-value', record.change_reason == '下单' ? 'positive' : 'negative']">¥{{ :class="['amount-value', record.change_reason == '下单' ? 'positive' : 'negative']">¥{{
record.amount_change }}</text> record.amount_change }}</text>
</view> </view>
@ -65,20 +68,7 @@ export default {
topVal: "", topVal: "",
photoVal: '', photoVal: '',
balance: "", balance: "",
records: [ records: [],
{
name: "退单-1312312317972",
time: "2025-08-12 13:00:00",
amount: "-1808.5",
remain: "286.79"
},
{
name: "退单-1312312317972",
time: "2025-08-12 13:00:00",
amount: "-1808.5",
remain: "286.79"
}
],
itemObj: {}, itemObj: {},
itemType: '', itemType: '',
page_num: 1, page_num: 1,