feat(mine): 拓展结余展示调整
This commit is contained in:
parent
81505df53f
commit
73f6f1abf1
|
@ -111,32 +111,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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="yestDay">
|
||||||
<view class="yes_t">昨日业绩</view>
|
<view class="yes_t">昨日业绩</view>
|
||||||
<view
|
<view
|
||||||
|
@ -178,6 +153,32 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</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="yestDay">
|
||||||
<view class="yes_t">{{ '历史业绩' }}</view>
|
<view class="yes_t">{{ '历史业绩' }}</view>
|
||||||
<view
|
<view
|
||||||
|
@ -643,13 +644,13 @@ export default {
|
||||||
totalBalanceFormat(value) {
|
totalBalanceFormat(value) {
|
||||||
const num = parseFloat(value)
|
const num = parseFloat(value)
|
||||||
if (isNaN(num)) {
|
if (isNaN(num)) {
|
||||||
return '0.0000万'
|
return '0.00'
|
||||||
}
|
}
|
||||||
if (num >= 5000000) {
|
if (num >= 5000000) {
|
||||||
return '500万+'
|
return '500+'
|
||||||
}
|
}
|
||||||
const valueInWan = num / 10000
|
const valueInWan = num / 10000
|
||||||
return `${valueInWan.toFixed(4)}万`
|
return `${Math.floor(valueInWan * 100) / 100}`
|
||||||
},
|
},
|
||||||
getMemberBalance() {
|
getMemberBalance() {
|
||||||
getMemberBalance().then(res => {
|
getMemberBalance().then(res => {
|
||||||
|
|
Loading…
Reference in New Issue