Commit 5a1722e1 by 姜雷

授信金保留两位小数

parent 2fcc14ad
...@@ -64,6 +64,7 @@ export const AccountComponent = () => { ...@@ -64,6 +64,7 @@ export const AccountComponent = () => {
} }
console.log('in recharge'); console.log('in recharge');
let preAimiItem = filterBeanList.find(item => item.serviceId === '0'); let preAimiItem = filterBeanList.find(item => item.serviceId === '0');
let preAimi = preAimiItem ? preAimiItem.money : 0;
rechargeOrder({ rechargeOrder({
id: payConfigId, id: payConfigId,
customerId: userinfo.customerId, customerId: userinfo.customerId,
...@@ -102,13 +103,7 @@ export const AccountComponent = () => { ...@@ -102,13 +103,7 @@ export const AccountComponent = () => {
let aimiItem = beanAccount.find( let aimiItem = beanAccount.find(
item => item.serviceId === '0', item => item.serviceId === '0',
); );
if ( if (aimiItem && aimiItem.money === preAimi) {
aimiItem &&
aimiItem.money &&
preAimiItem &&
preAimiItem.money &&
aimiItem.money === preAimiItem.money
) {
Taro.showModal({ Taro.showModal({
title: '提示', title: '提示',
content: content:
...@@ -162,7 +157,9 @@ export const AccountComponent = () => { ...@@ -162,7 +157,9 @@ export const AccountComponent = () => {
<View className='Account-Card-label'> <View className='Account-Card-label'>
{creditInfo.showType == '1' ? '我的授信' : '我的保证金'} {creditInfo.showType == '1' ? '我的授信' : '我的保证金'}
</View> </View>
<View className='Account-Card-num'>{creditInfo.amount}</View> <View className='Account-Card-num'>
{creditInfo.amount.toFixed(2)}
</View>
</View> </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