修复个人中心积分变动金额显示异常问题
This commit is contained in:
parent
e0abdd3b15
commit
372950b774
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user