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
412d2753
Commit
412d2753
authored
Nov 01, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
denglu
parent
1acfb5db
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
12 deletions
+16
-12
src/components/blessingPreheat/collectBlessing/index.js
+2
-1
src/components/blessingPreheat/courseItem/index.js
+2
-2
src/components/blessingPreheat/courseItem/index.scss
+2
-0
src/components/blessingPreheat/courseList/index.js
+7
-7
src/components/blessingPreheat/courseList/index.scss
+3
-2
src/components/blessingPreheat/index.js
+0
-0
No files found.
src/components/blessingPreheat/collectBlessing/index.js
View file @
412d2753
...
@@ -177,7 +177,8 @@ class CollectBlessing extends Component {
...
@@ -177,7 +177,8 @@ class CollectBlessing extends Component {
render
()
{
render
()
{
const
{
const
{
isSign
,
isSign
,
userInfo
:
{
isLogin
=
false
,
blessingVal
=
0
,
buyBlessing
=
0
,
inviteBlessing
=
0
},
userInfo
:
{
blessingVal
=
0
,
buyBlessing
=
0
,
inviteBlessing
=
0
},
isLogin
,
handleToShowNotice
,
handleToShowNotice
,
handleToShowList
,
handleToShowList
,
handleToShowInvite
,
handleToShowInvite
,
...
...
src/components/blessingPreheat/courseItem/index.js
View file @
412d2753
...
@@ -3,11 +3,11 @@ import './index.scss';
...
@@ -3,11 +3,11 @@ import './index.scss';
class
CourseItem
extends
Component
{
class
CourseItem
extends
Component
{
render
()
{
render
()
{
const
{
image
}
=
this
.
props
;
const
{
image
,
toCourse
,
id
}
=
this
.
props
;
return
(
return
(
<
div
className
=
"course-container"
>
<
div
className
=
"course-container"
>
<
div
className
=
"course__cover"
>
<
div
className
=
"course__cover"
>
<
img
src
=
{
image
}
alt
=
"cover"
/>
<
img
src
=
{
image
}
alt
=
"cover"
onClick
=
{()
=>
toCourse
(
id
)}
/
>
<
/div
>
<
/div
>
{
this
.
props
.
children
}
{
this
.
props
.
children
}
<
/div
>
<
/div
>
...
...
src/components/blessingPreheat/courseItem/index.scss
View file @
412d2753
...
@@ -15,5 +15,6 @@
...
@@ -15,5 +15,6 @@
img
{
img
{
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
height
:
100%
;
}
}
}
}
\ No newline at end of file
src/components/blessingPreheat/courseList/index.js
View file @
412d2753
...
@@ -259,7 +259,7 @@ class CourseList extends Component {
...
@@ -259,7 +259,7 @@ class CourseList extends Component {
}
else
{
}
else
{
toLogin
();
toLogin
();
}
}
}
}
...
@@ -298,7 +298,7 @@ class CourseList extends Component {
...
@@ -298,7 +298,7 @@ class CourseList extends Component {
<
div
data
-
layout
=
"row"
>
<
div
data
-
layout
=
"row"
>
{
{
group
.
course
.
map
(
item
=>
(
group
.
course
.
map
(
item
=>
(
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
>
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
toCourse
=
{
this
.
toCourse
}
>
<
div
className
=
"coupon-course__footer"
>
<
div
className
=
"coupon-course__footer"
>
<
a
onClick
=
{()
=>
this
.
toQQque
()}
className
=
"course-button"
>
立抢超低团购价
<
/a
>
<
a
onClick
=
{()
=>
this
.
toQQque
()}
className
=
"course-button"
>
立抢超低团购价
<
/a
>
<
/div
>
<
/div
>
...
@@ -323,7 +323,7 @@ class CourseList extends Component {
...
@@ -323,7 +323,7 @@ class CourseList extends Component {
<
div
data
-
layout
=
"row"
>
<
div
data
-
layout
=
"row"
>
{
{
training
.
course
.
map
(
item
=>
(
training
.
course
.
map
(
item
=>
(
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
>
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
toCourse
=
{
this
.
toCourse
}
>
<
div
className
=
"coupon-course__footer"
>
<
div
className
=
"coupon-course__footer"
>
{
{
item
.
course_status
===
1
&&
item
.
course_status
===
1
&&
...
@@ -391,7 +391,7 @@ class CourseList extends Component {
...
@@ -391,7 +391,7 @@ class CourseList extends Component {
<
div
data
-
layout
=
"row"
>
<
div
data
-
layout
=
"row"
>
{
{
basic
.
course
.
map
(
item
=>
(
basic
.
course
.
map
(
item
=>
(
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
>
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
toCourse
=
{
this
.
toCourse
}
>
{
{
item
.
type
===
0
&&
item
.
type
===
0
&&
<
div
className
=
"coupon-course__footer"
>
<
div
className
=
"coupon-course__footer"
>
...
@@ -472,7 +472,7 @@ class CourseList extends Component {
...
@@ -472,7 +472,7 @@ class CourseList extends Component {
<
div
data
-
layout
=
"row"
>
<
div
data
-
layout
=
"row"
>
{
{
advanced
.
course
.
map
(
item
=>
(
advanced
.
course
.
map
(
item
=>
(
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
>
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
toCourse
=
{
this
.
toCourse
}
>
{
{
item
.
type
===
0
&&
item
.
type
===
0
&&
<
div
className
=
"coupon-course__footer"
>
<
div
className
=
"coupon-course__footer"
>
...
@@ -552,7 +552,7 @@ class CourseList extends Component {
...
@@ -552,7 +552,7 @@ class CourseList extends Component {
<
div
data
-
layout
=
"row"
>
<
div
data
-
layout
=
"row"
>
{
{
higher
.
course
.
map
(
item
=>
(
higher
.
course
.
map
(
item
=>
(
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
>
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
toCourse
=
{
this
.
toCourse
}
>
{
{
item
.
type
===
0
&&
item
.
type
===
0
&&
<
div
className
=
"coupon-course__footer"
>
<
div
className
=
"coupon-course__footer"
>
...
@@ -632,7 +632,7 @@ class CourseList extends Component {
...
@@ -632,7 +632,7 @@ class CourseList extends Component {
<
div
data
-
layout
=
"row"
>
<
div
data
-
layout
=
"row"
>
{
{
expand
.
course
.
map
(
item
=>
(
expand
.
course
.
map
(
item
=>
(
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
>
<
CourseItem
image
=
{
item
.
image_name
}
key
=
{
item
.
course_id
}
id
=
{
item
.
course_id
}
toCourse
=
{
this
.
toCourse
}
>
{
{
item
.
type
===
0
&&
item
.
type
===
0
&&
<
div
className
=
"coupon-course__footer"
>
<
div
className
=
"coupon-course__footer"
>
...
...
src/components/blessingPreheat/courseList/index.scss
View file @
412d2753
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
padding
:
10px
0
;
padding
:
10px
0
;
.course-button
{
.course-button
{
margin
:
5px
auto
0
;
//
margin: 5px auto 0;
}
}
}
}
...
@@ -42,7 +42,8 @@
...
@@ -42,7 +42,8 @@
text-align
:
center
;
text-align
:
center
;
line-height
:
1
;
line-height
:
1
;
background-image
:
url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png')
;
background-image
:
url('https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/coupon-bg-0.png')
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
}
}
.coupon-course__button--receive
{
.coupon-course__button--receive
{
...
...
src/components/blessingPreheat/index.js
View file @
412d2753
This diff is collapsed.
Click to expand it.
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