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
b6729261
Commit
b6729261
authored
Aug 17, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
52c08adb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
8 deletions
+16
-8
public/favicon.ico
+0
-0
src/components/detail/group/index.js
+2
-1
src/components/myOrders/index.js
+2
-2
src/components/myOrders/index.scss
+6
-0
src/components/order/payOrder/PayOrder.js
+3
-3
src/components/search/recommendation/index.js
+3
-2
No files found.
public/favicon.ico
100644 → 100755
View file @
b6729261
No preview for this file type
src/components/detail/group/index.js
View file @
b6729261
...
@@ -37,7 +37,8 @@ class Group extends Component {
...
@@ -37,7 +37,8 @@ class Group extends Component {
toPay
=
(
pdd_order_id
)
=>
{
toPay
=
(
pdd_order_id
)
=>
{
const
courseInfo
=
this
.
props
.
courseInfo
.
courseInfo
.
course_info
;
const
courseInfo
=
this
.
props
.
courseInfo
.
courseInfo
.
course_info
;
if
(
courseInfo
.
group_status
===
3
)
{
if
(
courseInfo
.
group_status
===
3
)
{
this
.
props
.
history
.
push
(
`/order?id=
${
getParam
(
'id'
)}
&&groupon_code=
${
pdd_order_id
}
`
);
this
.
props
.
history
.
push
(
`/order?id=
${
getParam
(
'id'
)}
`
,
{
group
:
1
})
}
else
{
}
else
{
this
.
setState
({
this
.
setState
({
isShowMore
:
false
,
isShowMore
:
false
,
...
...
src/components/myOrders/index.js
View file @
b6729261
...
@@ -61,7 +61,7 @@ class MyOrders extends Component {
...
@@ -61,7 +61,7 @@ class MyOrders extends Component {
}
}
http
.
post
(
`
${
API
.
home
}
/m/cancel_order`
,
data
).
then
((
res
)
=>
{
http
.
post
(
`
${
API
.
home
}
/m/cancel_order`
,
data
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
===
200
)
{
if
(
res
.
data
.
code
===
200
)
{
this
.
getList
()
location
.
reload
();
}
else
{
}
else
{
Toast
.
info
(
res
.
data
.
msg
,
2
);
Toast
.
info
(
res
.
data
.
msg
,
2
);
}
}
...
@@ -139,7 +139,7 @@ function OrderInfo(props) {
...
@@ -139,7 +139,7 @@ function OrderInfo(props) {
let
btn
let
btn
if
(
props
.
item
.
pay_time
===
'0'
&&
props
.
item
.
member_num
===
0
)
{
if
(
props
.
item
.
pay_time
===
'0'
&&
props
.
item
.
member_num
===
0
)
{
btn
=
<
span
className
=
'oid-status'
>
等待支付
<
/span
>
btn
=
<
span
className
=
'oid-status'
>
等待支付
<
/span
>
}
else
if
((
props
.
item
.
member_num
===
props
.
item
.
pdd_info
.
length
)
&&
props
.
item
.
member_num
!==
0
)
{
}
else
if
(
props
.
item
.
pdd_info
&&
(
props
.
item
.
member_num
===
props
.
item
.
pdd_info
.
length
)
&&
props
.
item
.
member_num
!==
0
)
{
btn
=
<
span
className
=
'oid-success'
>
拼团成功
<
/span
>
btn
=
<
span
className
=
'oid-success'
>
拼团成功
<
/span
>
}
else
{
}
else
{
btn
=
<
span
className
=
'oid-success'
>
支付成功
<
/span
>
btn
=
<
span
className
=
'oid-success'
>
支付成功
<
/span
>
...
...
src/components/myOrders/index.scss
View file @
b6729261
...
@@ -37,6 +37,12 @@
...
@@ -37,6 +37,12 @@
background-color
:
$bg_fff
;
background-color
:
$bg_fff
;
border-bottom
:
1px
solid
$border_e7eaf1
;
border-bottom
:
1px
solid
$border_e7eaf1
;
}
}
.order-info
{
.order-des
{
position
:
absolute
;
bottom
:
0
;
}
}
.order-btm
{
.order-btm
{
width
:
100%
;
width
:
100%
;
...
...
src/components/order/payOrder/PayOrder.js
View file @
b6729261
...
@@ -67,7 +67,7 @@ export default class PayOrder extends Component {
...
@@ -67,7 +67,7 @@ export default class PayOrder extends Component {
this
.
alipayPay
(
orderId
)
this
.
alipayPay
(
orderId
)
}
else
if
(
payType
===
1
)
{
}
else
if
(
payType
===
1
)
{
this
.
weixinPay
(
orderId
)
this
.
weixinPay
(
orderId
)
}
}
// else { // 花呗分期暂时不做
// else { // 花呗分期暂时不做
// this.huabeiPay(orderId)
// this.huabeiPay(orderId)
// }
// }
...
@@ -154,7 +154,7 @@ export default class PayOrder extends Component {
...
@@ -154,7 +154,7 @@ export default class PayOrder extends Component {
// 花呗分期 暂时不做
// 花呗分期 暂时不做
huabeiPay
=
(
orderId
)
=>
{
huabeiPay
=
(
orderId
)
=>
{
const
{
singleMoney
,
periodNumber
}
=
this
.
state
;
const
{
singleMoney
,
periodNumber
}
=
this
.
state
;
console
.
log
(
'花呗分期支付'
);
console
.
log
(
'花呗分期支付'
);
http
.
get
(
`/pay/alipay/wap_charge/oid/
${
orderId
}
/plat/{plat} /hb_num/
${
periodNumber
}
`
).
then
(
res
=>
{
http
.
get
(
`/pay/alipay/wap_charge/oid/
${
orderId
}
/plat/{plat} /hb_num/
${
periodNumber
}
`
).
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
...
@@ -290,7 +290,7 @@ export default class PayOrder extends Component {
...
@@ -290,7 +290,7 @@ export default class PayOrder extends Component {
<
/RadioItem
>
<
/RadioItem
>
))}
))}
<
/List
>
<
/List
>
<
div
className
=
'pay-tip'
>
请在
24
小时
内完成支付,否则届时系统将关闭该订单。
<
/div
>
<
div
className
=
'pay-tip'
>
请在
15
分钟
内完成支付,否则届时系统将关闭该订单。
<
/div
>
<
div
className
=
'pay-button'
onClick
=
{
this
.
pay
}
>
确认支付
<
/div
>
<
div
className
=
'pay-button'
onClick
=
{
this
.
pay
}
>
确认支付
<
/div
>
...
...
src/components/search/recommendation/index.js
View file @
b6729261
...
@@ -43,13 +43,14 @@ class Recommendation extends Component {
...
@@ -43,13 +43,14 @@ class Recommendation extends Component {
courses
.
map
((
item
,
index
)
=>
{
courses
.
map
((
item
,
index
)
=>
{
const
Bottom
=
(
const
Bottom
=
(
<
div
className
=
'bottom'
>
<
div
className
=
'bottom'
>
<
span
className
=
'price'
>
{
item
[
'price1'
]}
<
/span
>
<
span
className
=
'price'
>
¥
{
item
[
'price1'
]}
<
/span
>
<
span
className
=
'old-price'
>
{
item
[
'price0'
]}
<
/span
>
<
span
className
=
'old-price'
>
¥
{
item
[
'price0'
]}
<
/span
>
<
/div
>
<
/div
>
)
)
return
(
return
(
<
Course
<
Course
className
=
{
'text-overflow-2'
}
key
=
{
item
[
'course_id'
]}
key
=
{
item
[
'course_id'
]}
id
=
{
item
[
'course_id'
]}
id
=
{
item
[
'course_id'
]}
img
=
{
item
[
'image_name'
]}
img
=
{
item
[
'image_name'
]}
...
...
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