Commit 5a1722e1 by 姜雷

授信金保留两位小数

parent 2fcc14ad
......@@ -64,6 +64,7 @@ export const AccountComponent = () => {
}
console.log('in recharge');
let preAimiItem = filterBeanList.find(item => item.serviceId === '0');
let preAimi = preAimiItem ? preAimiItem.money : 0;
rechargeOrder({
id: payConfigId,
customerId: userinfo.customerId,
......@@ -102,13 +103,7 @@ export const AccountComponent = () => {
let aimiItem = beanAccount.find(
item => item.serviceId === '0',
);
if (
aimiItem &&
aimiItem.money &&
preAimiItem &&
preAimiItem.money &&
aimiItem.money === preAimiItem.money
) {
if (aimiItem && aimiItem.money === preAimi) {
Taro.showModal({
title: '提示',
content:
......@@ -162,7 +157,9 @@ export const AccountComponent = () => {
<View className='Account-Card-label'>
{creditInfo.showType == '1' ? '我的授信' : '我的保证金'}
</View>
<View className='Account-Card-num'>{creditInfo.amount}</View>
<View className='Account-Card-num'>
{creditInfo.amount.toFixed(2)}
</View>
</View>
)}
</View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment