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
21a80cb8
Commit
21a80cb8
authored
Aug 23, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复订单中金额显示
parent
761bb09a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
OrderItem.tsx
src/pages/Order/components/OrderItem/OrderItem.tsx
+3
-1
RechargeItem.tsx
src/pages/Order/components/RechargeItem/RechargeItem.tsx
+2
-1
No files found.
src/pages/Order/components/OrderItem/OrderItem.tsx
View file @
21a80cb8
...
@@ -64,6 +64,8 @@ class OrderItem extends Component {
...
@@ -64,6 +64,8 @@ class OrderItem extends Component {
const
{
const
{
data
:
{
orderState
,
createAt
,
serviceName
,
payableMoney
},
data
:
{
orderState
,
createAt
,
serviceName
,
payableMoney
},
}
=
this
.
props
;
}
=
this
.
props
;
let
moneyStr
=
payableMoney
.
toFixed
(
2
);
return
(
return
(
<
View
className=
'OrderItem'
onClick=
{
this
.
detailHandle
}
>
<
View
className=
'OrderItem'
onClick=
{
this
.
detailHandle
}
>
<
View
className=
'OrderItem-text'
>
<
View
className=
'OrderItem-text'
>
...
@@ -83,7 +85,7 @@ class OrderItem extends Component {
...
@@ -83,7 +85,7 @@ class OrderItem extends Component {
</
View
>
</
View
>
<
View
<
View
className=
{
`OrderItem-price ${orderState === '1' ? 'topay' : ''}`
}
>
className=
{
`OrderItem-price ${orderState === '1' ? 'topay' : ''}`
}
>
¥
{
payableMoney
.
toFixed
(
2
)
}
¥
{
moneyStr
}
</
View
>
</
View
>
</
View
>
</
View
>
);
);
...
...
src/pages/Order/components/RechargeItem/RechargeItem.tsx
View file @
21a80cb8
...
@@ -8,6 +8,7 @@ const RechargeItem = (props: { data: RechargeOrder }) => {
...
@@ -8,6 +8,7 @@ const RechargeItem = (props: { data: RechargeOrder }) => {
const
{
const
{
data
:
{
createAt
,
rechargeRemark
,
actualAmount
,
orderNum
},
data
:
{
createAt
,
rechargeRemark
,
actualAmount
,
orderNum
},
}
=
props
;
}
=
props
;
let
moneyStr
=
actualAmount
.
toFixed
(
2
);
return
(
return
(
<
View
className=
'RechargeItem'
>
<
View
className=
'RechargeItem'
>
...
@@ -26,7 +27,7 @@ const RechargeItem = (props: { data: RechargeOrder }) => {
...
@@ -26,7 +27,7 @@ const RechargeItem = (props: { data: RechargeOrder }) => {
</
View
>
</
View
>
<
View
<
View
className=
{
`RechargeItem-price ${actualAmount >= 0 ? 'topay' : ''}`
}
>
className=
{
`RechargeItem-price ${actualAmount >= 0 ? 'topay' : ''}`
}
>
¥
{
actualAmount
.
toFixed
(
2
)
}
¥
{
moneyStr
}
</
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