fix(commission): 账户资产卡片将dmepa价值调整为直接显示dmepa数量
这个提交包含在:
@@ -55,16 +55,16 @@
|
|||||||
|
|
||||||
<!-- 第二行 -->
|
<!-- 第二行 -->
|
||||||
<view class="grid-row ss-flex">
|
<view class="grid-row ss-flex">
|
||||||
<!-- dmepa价值 -->
|
<!-- dmepa数量 -->
|
||||||
<view
|
<view
|
||||||
class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
|
class="bento-cell ss-flex-1 ss-flex-col ss-col-center metric-item"
|
||||||
@tap="sheep.$router.go('/pages/commission/madow')"
|
@tap="sheep.$router.go('/pages/commission/madow')"
|
||||||
>
|
>
|
||||||
<view class="item-title">dmepa价值(元)</view>
|
<view class="item-title">dmepa数量</view>
|
||||||
<view class="item-detail text-primary">
|
<view class="item-detail text-primary">
|
||||||
{{
|
{{
|
||||||
state.showMoney
|
state.showMoney
|
||||||
? agentInfo?.madow_value || userInfo?.madow_value || '0.00'
|
? formatMadow(agentInfo?.madow || userInfo?.madow)
|
||||||
: '***'
|
: '***'
|
||||||
}}
|
}}
|
||||||
</view>
|
</view>
|
||||||
@@ -102,6 +102,13 @@
|
|||||||
showMoney: false,
|
showMoney: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function formatMadow(val) {
|
||||||
|
if (val === '' || val === null || val === undefined || val === '--') return '0';
|
||||||
|
const num = Number(val);
|
||||||
|
if (isNaN(num)) return '0';
|
||||||
|
return num % 1 === 0 ? String(Math.round(num)) : String(Number(num.toFixed(2)));
|
||||||
|
}
|
||||||
|
|
||||||
function formatVoucher(val) {
|
function formatVoucher(val) {
|
||||||
if (val === '' || val === null || val === undefined || val === '--') return '0';
|
if (val === '' || val === null || val === undefined || val === '--') return '0';
|
||||||
const num = Number(val);
|
const num = Number(val);
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户