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
4734a33d
Commit
4734a33d
authored
Nov 01, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
pull
parents
dfe9d9a2
264a3d9a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
17 deletions
+56
-17
src/components/blessingPreheat/ReserveCourse/index.js
+29
-3
src/components/blessingPreheat/collectBlessing/index.js
+22
-12
src/components/blessingPreheat/live/index.js
+1
-0
src/components/coupons/Coupon/index.js
+0
-0
src/components/coupons/myCoupons/index.js
+0
-0
src/components/detail/index.scss
+1
-0
src/components/expand/share.js
+1
-2
src/components/expand/share.scss
+2
-0
No files found.
src/components/blessingPreheat/ReserveCourse/index.js
View file @
4734a33d
...
@@ -62,8 +62,34 @@ class ReserveCourse extends Component {
...
@@ -62,8 +62,34 @@ class ReserveCourse extends Component {
}
}
}
}
// 立即付尾款
// 立即付尾款
expandPaywk
=
(
courseId
,
day
)
=>
{
expandPaywk
=
(
courseId
,
time
,
day
)
=>
{
Toast
.
info
(
"付尾款时间将在"
+
day
+
"开启"
,
2
);
const
{
user
,
history
}
=
this
.
props
;
const
uid
=
user
&&
user
.
data
&&
user
.
data
.
uid
;
if
(
!
uid
)
{
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
'/passport/login'
)
}
else
{
SendMessageToApp
(
"toLogin"
);
}
}
else
{
let
timeStamp
=
Date
.
parse
(
new
Date
())
/
1000
;
if
(
timeStamp
>=
time
)
{
if
(
!
getParam
(
'version'
))
{
this
.
props
.
history
.
push
(
'/final-deposit-order?source=1'
,
{
id
:
courseId
,
sourcenum
:
1
}
)
}
else
{
SendMessageToApp
(
"TailMoney"
);
}
}
else
{
Toast
.
info
(
"付尾款时间将在"
+
day
+
"开启"
,
2
);
}
}
}
}
// 去学习
// 去学习
tostudy
=
(
courseId
)
=>
{
tostudy
=
(
courseId
)
=>
{
...
@@ -138,7 +164,7 @@ function CourseList(props) {
...
@@ -138,7 +164,7 @@ function CourseList(props) {
{
{
item
.
is_buy
===
1
&&
item
.
is_buy
===
1
&&
<
button
className
=
"to-expand-buy2"
<
button
className
=
"to-expand-buy2"
onClick
=
{()
=>
expandPaywk
(
item
.
course_id
,
item
.
final_start_time
)}
>
立即付尾款
<
/button
>
onClick
=
{()
=>
expandPaywk
(
item
.
course_id
,
item
.
start_timestamp
,
item
.
final_start_time
)}
>
立即付尾款
<
/button
>
}
}
{
{
item
.
is_buy
===
2
&&
item
.
is_buy
===
2
&&
...
...
src/components/blessingPreheat/collectBlessing/index.js
View file @
4734a33d
...
@@ -231,16 +231,22 @@ class CollectBlessing extends Component {
...
@@ -231,16 +231,22 @@ class CollectBlessing extends Component {
<
i
className
=
"collect-blessing__num"
>
{
index
+
1
}
<
/i
>
<
i
className
=
"collect-blessing__num"
>
{
index
+
1
}
<
/i
>
<
p
className
=
"collect-blessing__title"
>
{
item
}
<
/p
>
<
p
className
=
"collect-blessing__title"
>
{
item
}
<
/p
>
{
{
index
===
0
&&
(
isLogin
&&
isSign
)
&&
index
===
0
&&
<
a
className
=
"collect-blessing__content"
data
-
status
=
"done"
>
<>
+
5
点
<
br
/>
福气值
{
<
/a
>
(
isLogin
&&
isSign
)
}
?
(
{
<
a
className
=
"collect-blessing__content"
data
-
status
=
"done"
>
index
===
0
&&
(
!
isLogin
||
!
isSign
)
&&
+
5
点
<
br
/>
福气值
<
span
onClick
=
{
toLogin
}
className
=
"collect-blessing__content"
>
<
/a
>
点击
<
br
/>
签到
)
<
/span
>
:
(
<
span
onClick
=
{
toLogin
}
className
=
"collect-blessing__content"
>
点击
<
br
/>
签到
<
/span
>
)
}
<
/
>
}
}
{
{
index
===
1
&&
index
===
1
&&
...
@@ -281,7 +287,9 @@ class CollectBlessing extends Component {
...
@@ -281,7 +287,9 @@ class CollectBlessing extends Component {
index
===
4
&&
index
===
4
&&
<
a
className
=
"collect-blessing__content"
onClick
=
{
handleToShowInvite
}
>
<
a
className
=
"collect-blessing__content"
onClick
=
{
handleToShowInvite
}
>
<
span
>
邀请链接
<
/span
>
<
span
>
邀请链接
<
/span
>
<
i
>
已加
{
inviteBlessing
}
点
<
/i
>
{
inviteBlessing
>
0
&&
<
i
>
已加
{
inviteBlessing
}
点
<
/i
>
}
<
/a
>
<
/a
>
}
}
{
{
...
@@ -290,7 +298,9 @@ class CollectBlessing extends Component {
...
@@ -290,7 +298,9 @@ class CollectBlessing extends Component {
className
=
"collect-blessing__content"
className
=
"collect-blessing__content"
onClick
=
{
toSection
}
>
onClick
=
{
toSection
}
>
<
span
>
去选课
<
/span
>
<
span
>
去选课
<
/span
>
<
i
>
已加
{
buyBlessing
}
点
<
/i
>
{
buyBlessing
>
0
&&
<
i
>
已加
{
buyBlessing
}
点
<
/i
>
}
<
/a
>
<
/a
>
}
}
<
/div
>
<
/div
>
...
...
src/components/blessingPreheat/live/index.js
View file @
4734a33d
...
@@ -115,6 +115,7 @@ class Live extends Component {
...
@@ -115,6 +115,7 @@ class Live extends Component {
tabBarInactiveTextColor
=
{
'#FFF604'
}
tabBarInactiveTextColor
=
{
'#FFF604'
}
tabBarUnderlineStyle
=
{{
display
:
'none'
}}
tabBarUnderlineStyle
=
{{
display
:
'none'
}}
initialPage
=
{
today
}
initialPage
=
{
today
}
swipeable
=
{
false
}
>
>
{
{
this
.
props
.
isFormal
this
.
props
.
isFormal
...
...
src/components/coupons/Coupon/index.js
View file @
4734a33d
This diff is collapsed.
Click to expand it.
src/components/coupons/myCoupons/index.js
View file @
4734a33d
This diff is collapsed.
Click to expand it.
src/components/detail/index.scss
View file @
4734a33d
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
font-size
:
14px
;
font-size
:
14px
;
color
:
$color_666
;
color
:
$color_666
;
margin-top
:
10px
;
margin-top
:
10px
;
line-height
:
16px
;
}
}
.des
{
.des
{
...
...
src/components/expand/share.js
View file @
4734a33d
...
@@ -164,8 +164,7 @@ class ExpandShare extends Component {
...
@@ -164,8 +164,7 @@ class ExpandShare extends Component {
step
:
2
,
step
:
2
,
helpData
:
data
helpData
:
data
})
})
this
.
getListorData
()
console
.
log
(
data
)
}
else
if
(
errno
===
17018
||
errno
===
17020
)
{
}
else
if
(
errno
===
17018
||
errno
===
17020
)
{
this
.
setState
({
this
.
setState
({
isShow
:
true
,
isShow
:
true
,
...
...
src/components/expand/share.scss
View file @
4734a33d
...
@@ -569,6 +569,7 @@
...
@@ -569,6 +569,7 @@
color
:
#fff
;
color
:
#fff
;
font-size
:
15px
;
font-size
:
15px
;
margin-top
:
20px
;
margin-top
:
20px
;
border
:
none
;
}
}
}
}
...
@@ -596,6 +597,7 @@
...
@@ -596,6 +597,7 @@
border-radius
:
17px
;
border-radius
:
17px
;
color
:
#fff
;
color
:
#fff
;
font-size
:
15px
;
font-size
:
15px
;
border
:
none
;
}
}
}
}
...
...
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