Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
5a1722e1
Commit
5a1722e1
authored
Jul 04, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授信金保留两位小数
parent
2fcc14ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Account.tsx
src/pages/Account/Account.tsx
+5
-8
No files found.
src/pages/Account/Account.tsx
View file @
5a1722e1
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment