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
e43c1313
Commit
e43c1313
authored
Jun 20, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打开APP 拼团到订单页价格显示
parent
dc17dab5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
7 deletions
+26
-7
src/components/detail/btnstatus/index.js
+14
-0
src/components/order/index.js
+8
-5
src/components/scholarship/DrawDocument/DrawDocument.js
+4
-2
No files found.
src/components/detail/btnstatus/index.js
View file @
e43c1313
...
...
@@ -60,6 +60,20 @@ class BtnStatus extends Component {
})
}
}
// 直接购买 TODO 等弄清楚了逻辑 再和加入购物车合并
toBuy
=
()
=>
{
let
data
=
{
course_id
:
getParam
(
'id'
)
};
http
.
post
(
`
${
api
.
home
}
/m/cart/add`
,
data
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
!==
200
)
{
Toast
.
info
(
res
.
data
.
msg
,
2
);
return
;
}
this
.
props
.
history
.
replace
(
'/shopcart'
);
})
}
// 取消砍价
cancel
=
()
=>
{
...
...
src/components/order/index.js
View file @
e43c1313
...
...
@@ -16,13 +16,16 @@ function OrderList(props) {
<
div
>
{
listData
.
map
((
item
,
index
)
=>
{
console
.
log
(
item
);
const
{
is_coupon
,
course_id
,
image_name
,
price1
,
price0
,
simpledescription
,
course_title
,
coupon_num
,
coupon_desc
}
=
item
;
const
Info
=
(
<
div
className
=
"order-info"
>
<
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-des'
>
<
span
className
=
'order-newprice'
>
¥
{
price1
}
<
/span
>
{
props
.
courseId
===
undefined
?
(
<
span
className
=
'order-newprice'
>
¥
{
price1
}
<
/span>
)
:
(
<span className='order-newprice'>¥{item.pdd_group_info.price}</
span
>
)
}
<
span
className
=
'order-price'
>
¥
{
price0
}
<
/span
>
<
/p
>
<
/div
>
...
...
@@ -168,10 +171,10 @@ class Order extends Component {
componentDidMount
()
{
let
_this
=
this
;
if
(
getParam
(
'id'
)
!==
undefined
)
{
Promise
.
all
([
http
.
get
(
`
${
api
.
home
}
/m/order/preorder`
),
http
.
get
(
`
${
api
.
home
}
/m/course/detail/
${
getParam
(
'id'
)}
`
)]).
then
(
res
=>
{
Promise
.
all
([
http
.
get
(
`
${
api
.
home
}
/m/
del_cart_order/
${
getParam
(
'id'
)}
`
),
http
.
get
(
`
${
api
.
home
}
/m/
order/preorder`
),
http
.
get
(
`
${
api
.
home
}
/m/course/detail/
${
getParam
(
'id'
)}
`
)]).
then
(
res
=>
{
let
preorder
=
res
[
0
],
detail
=
res
[
1
],
let
preorder
=
res
[
1
],
detail
=
res
[
2
],
orderList
=
[];
console
.
log
(
detail
);
if
(
preorder
.
data
.
code
!==
200
)
{
...
...
@@ -287,7 +290,7 @@ class Order extends Component {
<
/div
>
}
<
div
className
=
"order-list"
>
<
OrderList
list
=
{
orderList
}
compute
=
{
this
.
computedMoney
}
/
>
<
OrderList
list
=
{
orderList
}
compute
=
{
this
.
computedMoney
}
courseId
=
{
getParam
(
'id'
)}
/
>
<
/div
>
<
div
className
=
"order-balance"
>
<
List
>
...
...
src/components/scholarship/DrawDocument/DrawDocument.js
View file @
e43c1313
import
React
,
{
Component
}
from
'react'
;
import
{
Flex
,
WhiteSpace
,
WingBlank
}
from
'antd-mobile'
;
import
'./DrawDocument.scss'
import
'./DrawDocument.scss'
;
import
OpenApp
from
'@/common/CallApp'
;
export
default
class
DrawDocument
extends
Component
{
constructor
(
props
)
{
...
...
@@ -35,7 +36,8 @@ export default class DrawDocument extends Component {
<
WingBlank
>
<
Flex
justify
=
'between'
align
=
'center'
style
=
{{
height
:
'44px'
}}
>
<
p
className
=
{
'tip'
}
>
收支明细及待确认金额请前往
App
查看
<
/p
>
<
div
className
=
{
'app'
}
>
在
APP
打开
<
/div
>
{
/* <div className={'app'}>在APP打开</div> */
}
<
OpenApp
/>
<
/Flex
>
<
/WingBlank
>
<
/div
>
...
...
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