feat(mine): 拓展结余展示调整

This commit is contained in:
woody 2025-07-18 11:10:19 +08:00
parent 81505df53f
commit 73f6f1abf1
1 changed files with 30 additions and 29 deletions

View File

@ -111,32 +111,7 @@
</view>
</view>
</view>
<view class="yestDay">
<view class="yes_t">拓展结余</view>
<view
:class="
totalBalanceProgress.leftValue != 0 ||
totalBalanceProgress.rightValue != 0
? 'ju_left_bottom1'
: 'ju_left_bottom'
"
>
<view
class="current-progress"
:style="{
width: yesPercent(
totalBalanceProgress.leftValue,
totalBalanceProgress.rightValue
),
}"
></view>
<view class="cha">
左区
{{ totalBalanceFormat(totalBalanceProgress.leftValue) }}/右区
{{ totalBalanceFormat(totalBalanceProgress.rightValue) }}
</view>
</view>
</view>
<view class="yestDay">
<view class="yes_t">昨日业绩</view>
<view
@ -178,6 +153,32 @@
</view>
</view>
</view>
<view class="yestDay">
<view class="yes_t">拓展结余</view>
<view
:class="
totalBalanceProgress.leftValue != 0 ||
totalBalanceProgress.rightValue != 0
? 'ju_left_bottom1'
: 'ju_left_bottom'
"
>
<view
class="current-progress"
:style="{
width: yesPercent(
totalBalanceProgress.leftValue,
totalBalanceProgress.rightValue
),
}"
></view>
<view class="cha">
左区
{{ totalBalanceFormat(totalBalanceProgress.leftValue) }}/右区
{{ totalBalanceFormat(totalBalanceProgress.rightValue) }}
</view>
</view>
</view>
<view class="yestDay">
<view class="yes_t">{{ '历史业绩' }}</view>
<view
@ -643,13 +644,13 @@ export default {
totalBalanceFormat(value) {
const num = parseFloat(value)
if (isNaN(num)) {
return '0.0000万'
return '0.00'
}
if (num >= 5000000) {
return '500+'
return '500+'
}
const valueInWan = num / 10000
return `${valueInWan.toFixed(4)}`
return `${Math.floor(valueInWan * 100) / 100}`
},
getMemberBalance() {
getMemberBalance().then(res => {