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
615bb31b
Commit
615bb31b
authored
Mar 07, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单详情样式
parent
bb546863
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
5 deletions
+26
-5
OrderDetail.tsx
src/pages/Order/OrderDetail/OrderDetail.tsx
+8
-1
OrderList.tsx
src/pages/Order/OrderList/OrderList.tsx
+18
-0
OrderInfo.scss
src/pages/Order/components/OrderInfo/OrderInfo.scss
+0
-4
No files found.
src/pages/Order/OrderDetail/OrderDetail.tsx
View file @
615bb31b
...
...
@@ -118,6 +118,7 @@ class OrderDetail extends Component {
equipmentNum
,
equipmentPosition
,
deductionMoney
,
thirdDiscountMoney
,
}
=
this
.
state
;
const
payTypeName
=
getPayType
(
payType
);
return
(
...
...
@@ -140,7 +141,7 @@ class OrderDetail extends Component {
</
View
>
{
deductionBean
?
(
<
View
className=
'OrderDetail-payinfo'
>
<
Text
>
通用
豆抵扣
</
Text
>
<
Text
>
{
serviceName
}
豆抵扣
</
Text
>
<
Text
className=
'deduction'
>
{
deductionBean
.
toFixed
(
2
)
}
</
Text
>
</
View
>
)
:
null
}
...
...
@@ -150,6 +151,12 @@ class OrderDetail extends Component {
<
Text
className=
'deduction'
>
{
deductionMoney
.
toFixed
(
2
)
}
</
Text
>
</
View
>
)
:
null
}
{
thirdDiscountMoney
?
(
<
View
className=
'OrderDetail-payinfo'
>
<
Text
>
三方抵扣
</
Text
>
<
Text
className=
'deduction'
>
{
thirdDiscountMoney
.
toFixed
(
2
)
}
</
Text
>
</
View
>
)
:
null
}
<
View
className=
'OrderDetail-payinfo'
>
<
Text
>
支付方式
</
Text
>
...
...
src/pages/Order/OrderList/OrderList.tsx
View file @
615bb31b
...
...
@@ -32,8 +32,13 @@ type PageOwnProps = {};
type
PageProps
=
PageStateProps
&
PageDispatchProps
&
PageOwnProps
;
type
PageState
=
{
needRefresh
:
boolean
;
};
interface
OrderList
{
props
:
PageProps
;
state
:
PageState
;
}
@
connect
(
...
...
@@ -60,15 +65,22 @@ class OrderList extends Component {
};
constructor
(
props
:
PageProps
)
{
super
(
props
);
this
.
state
=
{
needRefresh
:
false
,
};
}
componentWillMount
()
{
this
.
getPayOrderHandle
();
this
.
getAllOrderHandle
();
}
componentDidShow
()
{
const
{
needRefresh
}
=
this
.
state
;
if
(
needRefresh
)
{
this
.
getPayOrderHandle
();
this
.
getAllOrderHandle
();
}
}
onPullDownRefresh
()
{
console
.
log
(
'in onPullDownRefresh'
);
...
...
@@ -132,12 +144,18 @@ class OrderList extends Component {
}
goPayPage
(
data
)
{
this
.
setState
({
needRefresh
:
true
,
});
this
.
$preload
({
id
:
data
.
id
});
Taro
.
navigateTo
({
url
:
'/pages/Order/OrderPay/OrderPay'
,
});
}
goDetail
(
data
)
{
this
.
setState
({
needRefresh
:
false
,
});
this
.
$preload
(
data
);
Taro
.
navigateTo
({
url
:
'/pages/Order/OrderDetail/OrderDetail'
,
...
...
src/pages/Order/components/OrderInfo/OrderInfo.scss
View file @
615bb31b
.OrderDetail-info
{
display
:
flex
;
height
:
60px
;
line-height
:
60px
;
justify-content
:
space-between
;
font-size
:
28px
;
...
...
@@ -11,8 +10,5 @@
.OrderDetail-info-content
{
text-align
:
right
;
flex
:
1
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
}
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