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
b7a878ef
Commit
b7a878ef
authored
Jan 09, 2020
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
领取页
parent
2dba5b4d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
287 additions
and
44 deletions
+287
-44
src/components/activity/give-courses/assistance/assistance.scss
+13
-4
src/components/activity/give-courses/assistance/index.js
+249
-15
src/components/activity/give-courses/index.js
+25
-25
No files found.
src/components/activity/give-courses/assistance/assistance.scss
View file @
b7a878ef
...
@@ -125,6 +125,9 @@
...
@@ -125,6 +125,9 @@
z-index
:
999
;
z-index
:
999
;
color
:
#15006A
;
color
:
#15006A
;
@include
px2px
(
font-size
,
20
);
@include
px2px
(
font-size
,
20
);
-webkit-appearance
:
none
;
outline
:
0
;
border
:
none
;
}
}
}
}
...
@@ -261,8 +264,11 @@
...
@@ -261,8 +264,11 @@
}
}
.course-wrap
{
.course-wrap
{
padding
:
0
10px
;
overflow
:
hidden
;
overflow
:
hidden
;
display
:
flex
;
justify-content
:
space-between
;
flex-flow
:
wrap
;
li
{
li
{
display
:
inline-block
;
display
:
inline-block
;
width
:
px2rem
(
160
);
width
:
px2rem
(
160
);
...
@@ -355,10 +361,9 @@
...
@@ -355,10 +361,9 @@
.text1
{
.text1
{
color
:
$color_333
;
color
:
$color_333
;
@include
px2px
(
font-size
,
36
);
@include
px2px
(
font-size
,
36
);
margin
:
0
auto
;
text-align
:
center
;
text-align
:
center
;
margin
-bottom
:
20px
;
margin
:
15px
auto
20px
;
margin-top
:
15
px
;
padding
:
0
10
px
;
}
}
.text2
{
.text2
{
...
@@ -457,4 +462,8 @@
...
@@ -457,4 +462,8 @@
}
}
.iconfont
{
font-size
:
30px
;
}
}
}
src/components/activity/give-courses/assistance/index.js
View file @
b7a878ef
This diff is collapsed.
Click to expand it.
src/components/activity/give-courses/index.js
View file @
b7a878ef
...
@@ -29,14 +29,14 @@ class GiveCourses extends Component {
...
@@ -29,14 +29,14 @@ class GiveCourses extends Component {
if
(
errno
===
200
)
{
if
(
errno
===
200
)
{
this
.
setState
({
this
.
setState
({
banner
:
data
.
active_info
.
m_banner
,
banner
:
data
[
"active_info"
][
"m_banner"
]
,
courses
:
data
.
course_info
,
courses
:
data
.
course_info
,
rule
:
data
.
active_info
.
rule
,
rule
:
data
[
"active_info"
][
"rule"
]
,
awardstext
:
data
.
active_info
.
awards_text
.
split
(
'
\
n
\
n'
),
awardstext
:
data
[
"active_info"
][
"awards_text"
]
.
split
(
'
\
n
\
n'
),
query
:
data
.
active_info
.
activity_name
query
:
data
[
"active_info"
][
"activity_name"
]
})
})
this
.
isRouter
(
data
.
active_info
.
activity_name
)
this
.
isRouter
(
data
[
"active_info"
][
"activity_name"
]
)
}
else
{
}
else
{
showToast
(
msg
)
showToast
(
msg
)
...
@@ -44,9 +44,9 @@ class GiveCourses extends Component {
...
@@ -44,9 +44,9 @@ class GiveCourses extends Component {
})
})
this
.
getRankList
()
this
.
getRankList
()
this
.
getMarqueeList
()
;
this
.
getMarqueeList
()
setInterval
(
this
.
showMarquee
,
5000
)
;
setInterval
(
this
.
showMarquee
,
5000
)
setInterval
(
this
.
getMarqueeList
,
60000
)
;
setInterval
(
this
.
getMarqueeList
,
60000
)
}
}
getRankList
=
()
=>
{
getRankList
=
()
=>
{
...
@@ -61,8 +61,8 @@ class GiveCourses extends Component {
...
@@ -61,8 +61,8 @@ class GiveCourses extends Component {
second
:
data
.
list
[
1
],
second
:
data
.
list
[
1
],
third
:
data
.
list
[
2
],
third
:
data
.
list
[
2
],
other
:
data
.
list
.
slice
(
3
,
50
),
other
:
data
.
list
.
slice
(
3
,
50
),
isMyList
:
data
.
nickname
,
isMyList
:
data
[
"nickname"
]
,
myList
:
data
.
nickname
&&
data
myList
:
data
[
"nickname"
]
&&
data
}
}
})
})
}
else
{
}
else
{
...
@@ -102,7 +102,7 @@ class GiveCourses extends Component {
...
@@ -102,7 +102,7 @@ class GiveCourses extends Component {
}
}
isRouter
=
param
=>
{
isRouter
=
param
=>
{
if
(
decodeURIComponent
(
getParam
(
'activename'
))
!=
param
)
{
if
(
decodeURIComponent
(
getParam
(
'activename'
))
!=
param
)
{
this
.
props
.
history
.
push
(
'/'
)
this
.
props
.
history
.
push
(
'/'
)
}
}
}
}
...
@@ -136,8 +136,8 @@ class GiveCourses extends Component {
...
@@ -136,8 +136,8 @@ class GiveCourses extends Component {
<
li
className
=
'course-title'
>
<
li
className
=
'course-title'
>
<
a
href
=
"javascript:"
>
{
course
.
course_title
}
<
/a
>
<
a
href
=
"javascript:"
>
{
course
.
course_title
}
<
/a
>
<
/li
>
<
/li
>
<
li
className
=
'course-teacher'
><
span
className
=
'tag'
>
讲师
<
/span>{course
.teachers
}</
li
>
<
li
className
=
'course-teacher'
><
span
className
=
'tag'
>
讲师
<
/span>{course
[
"teachers"
]
}</
li
>
<
li
className
=
'course-time'
><
span
className
=
'tag'
>
开课时间
<
/span>{course
.start_time
}</
li
>
<
li
className
=
'course-time'
><
span
className
=
'tag'
>
开课时间
<
/span>{course
[
"start_time"
]
}</
li
>
<
li
className
=
'toreceive'
onClick
=
{()
=>
{
<
li
className
=
'toreceive'
onClick
=
{()
=>
{
this
.
setState
({
isShow
:
true
})
this
.
setState
({
isShow
:
true
})
}}
>
免费领取课程
}}
>
免费领取课程
...
@@ -158,8 +158,8 @@ class GiveCourses extends Component {
...
@@ -158,8 +158,8 @@ class GiveCourses extends Component {
return
(
return
(
<
li
key
=
{
index
}
>
<
li
key
=
{
index
}
>
<
img
src
=
{
item
.
head_img
}
alt
=
""
/>
<
img
src
=
{
item
.
head_img
}
alt
=
""
/>
<
span
>
{
item
.
nickname
}
<
/span
>
<
span
>
{
item
[
"nickname"
]
}
<
/span
>
{
item
.
word
}
{
item
[
"word"
]
}
<
/li
>
<
/li
>
)
)
})
})
...
@@ -201,8 +201,8 @@ class GiveCourses extends Component {
...
@@ -201,8 +201,8 @@ class GiveCourses extends Component {
?
?
<
tr
>
<
tr
>
<
td
><
img
src
=
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jin1_icon.png"
alt
=
""
/><
/td
>
<
td
><
img
src
=
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/jin1_icon.png"
alt
=
""
/><
/td
>
<
td
><
img
src
=
{
rank
list
.
first
.
head_img
}
alt
=
""
/><
span
>
{
rankl
ist
.
first
.
name
}
<
/span></
td
>
<
td
><
img
src
=
{
rank
List
.
first
.
head_img
}
alt
=
""
/><
span
>
{
rankL
ist
.
first
.
name
}
<
/span></
td
>
<
td
>
{
rank
l
ist
.
first
.
num
}
<
/td
>
<
td
>
{
rank
L
ist
.
first
.
num
}
<
/td
>
<
/tr
>
<
/tr
>
:
null
:
null
}
}
...
@@ -212,8 +212,8 @@ class GiveCourses extends Component {
...
@@ -212,8 +212,8 @@ class GiveCourses extends Component {
?
?
<
tr
>
<
tr
>
<
td
><
img
src
=
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/yin2_icon.png"
alt
=
""
/><
/td
>
<
td
><
img
src
=
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/yin2_icon.png"
alt
=
""
/><
/td
>
<
td
><
img
src
=
{
rank
list
.
second
.
head_img
}
alt
=
""
/><
span
>
{
rankl
ist
.
second
.
name
}
<
/span></
td
>
<
td
><
img
src
=
{
rank
List
.
second
.
head_img
}
alt
=
""
/><
span
>
{
rankL
ist
.
second
.
name
}
<
/span></
td
>
<
td
>
{
rank
l
ist
.
second
.
num
}
<
/td
>
<
td
>
{
rank
L
ist
.
second
.
num
}
<
/td
>
<
/tr
>
<
/tr
>
:
null
:
null
}
}
...
@@ -223,8 +223,8 @@ class GiveCourses extends Component {
...
@@ -223,8 +223,8 @@ class GiveCourses extends Component {
?
?
<
tr
>
<
tr
>
<
td
><
img
src
=
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/tong_icon.png"
alt
=
""
/><
/td
>
<
td
><
img
src
=
"//julyedu-cdn.oss-cn-beijing.aliyuncs.com/2018_1111/tong_icon.png"
alt
=
""
/><
/td
>
<
td
><
img
src
=
{
rank
list
.
third
.
head_img
}
alt
=
""
/><
span
>
{
rankl
ist
.
third
.
name
}
<
/span></
td
>
<
td
><
img
src
=
{
rank
List
.
third
.
head_img
}
alt
=
""
/><
span
>
{
rankL
ist
.
third
.
name
}
<
/span></
td
>
<
td
>
{
rank
l
ist
.
third
.
num
}
<
/td
>
<
td
>
{
rank
L
ist
.
third
.
num
}
<
/td
>
<
/tr
>
<
/tr
>
:
null
:
null
}
}
...
@@ -245,15 +245,15 @@ class GiveCourses extends Component {
...
@@ -245,15 +245,15 @@ class GiveCourses extends Component {
{
{
rankList
.
isMyList
&&
rankList
.
isMyList
&&
<
tr
className
=
"ismylist"
>
<
tr
className
=
"ismylist"
>
<
td
>
{
rankList
.
myList
.
ranking
}
<
/td
>
<
td
>
{
rankList
.
myList
[
"ranking"
]
}
<
/td
>
<
td
><
img
src
=
{
rankList
.
myList
.
head_img
}
alt
=
""
/><
span
>
{
rankList
.
myList
.
nickname
}
<
/span></
td
>
<
td
><
img
src
=
{
rankList
.
myList
.
head_img
}
alt
=
""
/><
span
>
{
rankList
.
myList
[
"nickname"
]
}
<
/span></
td
>
<
td
>
{
rankList
.
myList
.
inviter_num
}
<
/td
>
<
td
>
{
rankList
.
myList
[
"inviter_num"
]
}
<
/td
>
<
/tr
>
<
/tr
>
}
}
<
/tbody
>
<
/tbody
>
<
/table
>
<
/table
>
<
p
className
=
"btm"
><
/p
>
<
p
className
=
"btm"
/
>
<
/div
>
<
/div
>
<
p
className
=
"julynotice"
>*
本活动最终解释权归七月在线所有
*<
/p
>
<
p
className
=
"julynotice"
>*
本活动最终解释权归七月在线所有
*<
/p
>
...
...
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