Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
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
baiguangyao
mr-julyedu
Commits
7905ccd7
Commit
7905ccd7
authored
Aug 15, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回时判断是否使用余额抵扣
parent
939e928a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/components/order/index.js
+3
-0
No files found.
src/components/order/index.js
View file @
7905ccd7
...
@@ -13,6 +13,7 @@ const Item = List.Item;
...
@@ -13,6 +13,7 @@ const Item = List.Item;
function
OrderList
(
props
)
{
function
OrderList
(
props
)
{
console
.
log
(
props
);
console
.
log
(
props
);
const
listData
=
props
.
list
;
const
listData
=
props
.
list
;
return
(
return
(
<
div
>
<
div
>
{
{
...
@@ -23,6 +24,7 @@ function OrderList(props) {
...
@@ -23,6 +24,7 @@ function OrderList(props) {
<
Link
to
=
{
`/detail?id=
${
course_id
}
`
}
><
p
className
=
'order-title'
style
=
{{
overflow
:
'hidden'
,
textOverflow
:
'ellipsis'
,
whiteSpace
:
'nowrap'
}}
>
{
course_title
}
<
/p></
Link
>
<
Link
to
=
{
`/detail?id=
${
course_id
}
`
}
><
p
className
=
'order-title'
style
=
{{
overflow
:
'hidden'
,
textOverflow
:
'ellipsis'
,
whiteSpace
:
'nowrap'
}}
>
{
course_title
}
<
/p></
Link
>
<
p
className
=
'order-content'
style
=
{{
WebkitBoxOrient
:
'vertical'
,
WebkitLineClamp
:
'2'
,
wordBreak
:
'break-all'
,
overflow
:
'hidden'
,
textOverflow
:
'ellipsis'
,
display
:
'-webkit-box'
}}
>
{
simpledescription
}
<
/p
>
<
p
className
=
'order-content'
style
=
{{
WebkitBoxOrient
:
'vertical'
,
WebkitLineClamp
:
'2'
,
wordBreak
:
'break-all'
,
overflow
:
'hidden'
,
textOverflow
:
'ellipsis'
,
display
:
'-webkit-box'
}}
>
{
simpledescription
}
<
/p
>
<
p
className
=
'order-des'
>
<
p
className
=
'order-des'
>
{
/*// 这里根据类型判断 来显示什么价格 拼团还是砍价 还是特训营*/
}
{
{
props
.
courseId
===
undefined
?
(
<
span
className
=
'order-newprice'
>
¥
{
price1
}
<
/span>
)
:
(
<span className='order-newprice'>¥{price0}</
span
>
)
props
.
courseId
===
undefined
?
(
<
span
className
=
'order-newprice'
>
¥
{
price1
}
<
/span>
)
:
(
<span className='order-newprice'>¥{price0}</
span
>
)
}
}
...
@@ -238,6 +240,7 @@ class Order extends Component {
...
@@ -238,6 +240,7 @@ class Order extends Component {
}
}
this
.
publicGetData
(
preorder
);
this
.
publicGetData
(
preorder
);
this
.
publicLocalStorage
();
})
})
}
else
{
}
else
{
http
.
get
(
`
${
API
[
'base-api'
]}
/m/order/preorder`
).
then
((
res
)
=>
{
http
.
get
(
`
${
API
[
'base-api'
]}
/m/order/preorder`
).
then
((
res
)
=>
{
...
...
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