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
de0a67fe
Commit
de0a67fe
authored
Apr 22, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a标签
parent
0d0b56dc
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
262 additions
and
131 deletions
+262
-131
.idea/workspace.xml
+139
-80
src/common/Courseload/index.js
+0
-13
src/common/Courseload/listview.scss
+0
-0
src/common/index.js
+0
-1
src/components/classify/courselist.js
+63
-33
src/components/classify/courselist.scss
+56
-0
src/components/classify/index.js
+4
-4
No files found.
.idea/workspace.xml
View file @
de0a67fe
...
...
@@ -2,16 +2,13 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"60bc3527-5f9e-436f-8ed9-968e6eddd66e"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/src/common/Courseload/index.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/common/Courseload/listview.scss"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/components/classify/courselist.js"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/components/classify/courselist.scss"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/common/Courseload/index.js"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/common/Courseload/listview.scss"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/common/index.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/common/index.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/classify/courselist.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/classify/courselist.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/classify/courselist.scss"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/classify/courselist.scss"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/classify/index.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/classify/index.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/components/classify/index.scss"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/components/classify/index.scss"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/router.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/router.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/yarn.lock"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/yarn.lock"
afterDir=
"false"
/>
</list>
<ignored
path=
"$PROJECT_DIR$/node_modules/"
/>
<ignored
path=
"$PROJECT_DIR$/.tmp/"
/>
...
...
@@ -25,41 +22,39 @@
</component>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/com
mon/Courseload/index
.js"
>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/com
ponents/classify/courselist
.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1
26
"
>
<caret
line=
"6
"
column=
"14"
selection-start-line=
"6"
selection-start-column=
"14"
selection-end-line=
"6"
selection-end-column=
"14
"
/>
<state
relative-caret-position=
"1
53
"
>
<caret
line=
"6
1"
column=
"40"
lean-forward=
"true"
selection-start-line=
"61"
selection-start-column=
"40"
selection-end-line=
"61"
selection-end-column=
"40
"
/>
<folding>
<element
signature=
"e#0#
26
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
39
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/common/Courseload/listview.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/courselist.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"379"
>
<caret
line=
"21"
column=
"23"
lean-forward=
"true"
selection-start-line=
"21"
selection-start-column=
"23"
selection-end-line=
"21"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/
courselist
.js"
>
<file
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/
index
.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
189
"
>
<caret
line=
"
48"
column=
"28"
selection-start-line=
"48"
selection-start-column=
"28"
selection-end-line=
"48"
selection-end-column=
"28
"
/>
<state
relative-caret-position=
"
272
"
>
<caret
line=
"
103"
column=
"46"
selection-start-line=
"103"
selection-start-column=
"46"
selection-end-line=
"103"
selection-end-column=
"46
"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#154#1571#0"
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/courselist.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
</file>
</leaf>
</component>
<component
name=
"FindInProjectRecents"
>
...
...
@@ -67,6 +62,10 @@
<find>
vip
</find>
<find>
class
</find>
<find>
classify
</find>
<find>
VList
</find>
<find>
handleClick
</find>
<find>
contact
</find>
<find>
href
</find>
</findStrings>
</component>
<component
name=
"Git.Settings"
>
...
...
@@ -76,15 +75,16 @@
<option
name=
"CHANGED_PATHS"
>
<list>
<option
value=
"$PROJECT_DIR$/node_modules/less-loader/dist/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/index.scss"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/courselist.scss"
/>
<option
value=
"$PROJECT_DIR$/src/common/ListView/listview.scss"
/>
<option
value=
"$PROJECT_DIR$/src/router.js"
/>
<option
value=
"$PROJECT_DIR$/src/common/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/common/ListView/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/courselist.js"
/>
<option
value=
"$PROJECT_DIR$/src/common/Courseload/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/common/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/components/Index/index.js"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/courselist.scss"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/courselist.js"
/>
<option
value=
"$PROJECT_DIR$/src/components/classify/index.js"
/>
</list>
</option>
</component>
...
...
@@ -120,7 +120,7 @@
<item
name=
"mr-julyedu"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"common"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
Course
"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"
VList
"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"mr-julyedu"
type=
"b2602c69:ProjectViewProjectNode"
/>
...
...
@@ -142,6 +142,19 @@
<item
name=
"components"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"Index"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"mr-julyedu"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"mr-julyedu"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"components"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"study"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
<path>
<item
name=
"mr-julyedu"
type=
"b2602c69:ProjectViewProjectNode"
/>
<item
name=
"mr-julyedu"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"src"
type=
"462c0819:PsiDirectoryNode"
/>
<item
name=
"styles"
type=
"462c0819:PsiDirectoryNode"
/>
</path>
</expand>
<select
/>
</subPane>
...
...
@@ -188,12 +201,12 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1555481508116
</updated>
<workItem
from=
"1555481509516"
duration=
"544000"
/>
<workItem
from=
"1555900140776"
duration=
"
4317
000"
/>
<workItem
from=
"1555900140776"
duration=
"
6239
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
4904
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
6826
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"0"
width=
"1440"
height=
"900"
extended-state=
"0"
/>
...
...
@@ -240,27 +253,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/styles/variable.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"324"
>
<caret
line=
"36"
column=
"20"
lean-forward=
"true"
selection-start-line=
"36"
selection-end-line=
"37"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/Index/index.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<caret
line=
"119"
selection-start-line=
"119"
selection-end-line=
"131"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/index.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"462"
>
<caret
line=
"65"
column=
"21"
lean-forward=
"true"
selection-start-line=
"65"
selection-start-column=
"21"
selection-end-line=
"65"
selection-end-column=
"21"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/config/paths.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-1212"
/>
...
...
@@ -299,28 +291,98 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/common/Course/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
<caret
line=
"10"
column=
"16"
lean-forward=
"true"
selection-end-line=
"18"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/common/Courseload/index.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/study/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"126"
>
<caret
line=
"6"
lean-forward=
"true"
selection-start-line=
"6"
selection-end-line=
"6"
/>
<folding>
<element
signature=
"e#0#40#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/common/Courseload/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
<caret
line=
"10"
lean-forward=
"true"
selection-start-line=
"10"
selection-end-line=
"10"
/>
<folding>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/study/my-courses/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"223"
>
<caret
line=
"37"
column=
"5"
lean-forward=
"true"
selection-start-line=
"35"
selection-start-column=
"4"
selection-end-line=
"37"
selection-end-column=
"5"
/>
<folding>
<element
signature=
"e#0#25#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/index.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"42"
>
<caret
line=
"45"
column=
"7"
lean-forward=
"true"
selection-start-line=
"45"
selection-start-column=
"7"
selection-end-line=
"45"
selection-end-column=
"7"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/study/study.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"504"
>
<caret
line=
"24"
lean-forward=
"true"
selection-end-line=
"49"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/common/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"147"
>
<caret
line=
"7"
column=
"30"
selection-start-line=
"7"
selection-start-column=
"20"
selection-end-line=
"7"
selection-end-column=
"30
"
/>
<caret
line=
"7"
lean-forward=
"true"
selection-start-line=
"7"
selection-end-line=
"7
"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/com
ponents/classify
/index.js"
>
<entry
file=
"file://$PROJECT_DIR$/src/com
mon/VList
/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state>
<caret
column=
"7"
lean-forward=
"true"
selection-start-column=
"7"
selection-end-column=
"7
"
/>
<state
relative-caret-position=
"210"
>
<caret
line=
"10"
column=
"22"
selection-start-line=
"10"
selection-start-column=
"17"
selection-end-line=
"10"
selection-end-column=
"22
"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"n#!!block;n#render#0;n#Classify#0"
/>
<element
signature=
"e#0#26#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/common/VList/index.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"483"
>
<caret
line=
"23"
column=
"1"
lean-forward=
"true"
selection-start-line=
"23"
selection-start-column=
"1"
selection-end-line=
"23"
selection-end-column=
"1"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/styles/variable.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"147"
>
<caret
line=
"7"
column=
"10"
selection-start-line=
"7"
selection-end-line=
"7"
selection-end-column=
"10"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/Index/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
73
"
>
<caret
line=
"
71"
column=
"28"
lean-forward=
"true"
selection-start-line=
"71"
selection-end-line=
"72
"
/>
<state
relative-caret-position=
"2
92
"
>
<caret
line=
"
124"
column=
"37"
lean-forward=
"true"
selection-start-line=
"124"
selection-start-column=
"37"
selection-end-line=
"124"
selection-end-column=
"37
"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#193#1642#0"
/>
...
...
@@ -329,39 +391,36 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/courselist.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/courselist.js"
>
<entry
file=
"file://$PROJECT_DIR$/src/components/Index/index.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"189"
>
<caret
line=
"48"
column=
"28"
selection-start-line=
"48"
selection-start-column=
"28"
selection-end-line=
"48"
selection-end-column=
"28"
/>
<folding>
<element
signature=
"e#0#39#0"
expanded=
"true"
/>
<element
signature=
"e#154#1571#0"
/>
</folding>
<state
relative-caret-position=
"65"
>
<caret
line=
"178"
selection-start-line=
"178"
selection-end-line=
"206"
selection-end-column=
"3"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/common/Courseload/listview.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
<entry
file=
"file://$PROJECT_DIR$/src/components/classify/courselist.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"379"
>
<caret
line=
"21"
column=
"23"
lean-forward=
"true"
selection-start-line=
"21"
selection-start-column=
"23"
selection-end-line=
"21"
selection-end-column=
"23"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/com
mon/Course/index
.js"
>
<entry
file=
"file://$PROJECT_DIR$/src/com
ponents/classify/courselist
.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
210
"
>
<caret
line=
"
10"
column=
"16"
lean-forward=
"true"
selection-end-line=
"18
"
/>
<state
relative-caret-position=
"
153
"
>
<caret
line=
"
61"
column=
"40"
lean-forward=
"true"
selection-start-line=
"61"
selection-start-column=
"40"
selection-end-line=
"61"
selection-end-column=
"40
"
/>
<folding>
<element
signature=
"e#0#
26
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
39
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/com
mon/Courseload
/index.js"
>
<entry
file=
"file://$PROJECT_DIR$/src/com
ponents/classify
/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
126
"
>
<caret
line=
"
6"
column=
"14"
selection-start-line=
"6"
selection-start-column=
"14"
selection-end-line=
"6"
selection-end-column=
"14
"
/>
<state
relative-caret-position=
"
272
"
>
<caret
line=
"
103"
column=
"46"
selection-start-line=
"103"
selection-start-column=
"46"
selection-end-line=
"103"
selection-end-column=
"46
"
/>
<folding>
<element
signature=
"e#0#
26
#0"
expanded=
"true"
/>
<element
signature=
"e#0#
39
#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
src/common/Courseload/index.js
deleted
100644 → 0
View file @
0d0b56dc
import
React
from
'react'
;
import
'./course.scss'
const
Course
=
(
props
)
=>
{
return
(
<
li
className
=
'course-item'
>
wwwww
<
/li
>
);
};
export
default
Course
;
src/common/Courseload/listview.scss
deleted
100644 → 0
View file @
0d0b56dc
src/common/index.js
View file @
de0a67fe
...
...
@@ -5,4 +5,3 @@ export { default as Course } from './Course' // 课程状态(试听 正在
export
{
default
as
Carousel
}
from
'./Carousel'
// 横向滚动
export
{
default
as
Topscroll
}
from
'./Topscroll'
// 首页头部轮播
export
{
default
as
Scroll
}
from
'./Scroll'
// 首页正常轮播图
export
{
default
as
Courseload
}
from
'./Courseload'
// 下拉加载课程列表
src/components/classify/courselist.js
View file @
de0a67fe
import
React
,
{
Component
}
from
'react'
;
import
{
Courseload
}
from
'../../common'
;
import
'./
index
.scss'
;
import
{
VList
}
from
'../../common'
;
import
'./
courselist
.scss'
;
class
Classify
extends
Component
{
state
=
{
dataList
:
[
mockData
:
[
{
'src'
:
'http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/5afe433d01.png'
,
'title'
:
'Spark大数据'
,
'teacher'
:
'wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww'
,
'time'
:
'2343234'
,
'isbuy'
:
0
,
'price0'
:
100
,
'price1'
:
1000
title
:
'三月面试求职班'
,
imgUrl
:
'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/4c5ccac604.jpg'
,
contact
:
'QQ群:449141326'
,
time
:
'03月12日'
,
record
:
'学习到第2课2分33秒'
,
isbuy
:
0
,
price0
:
100
,
price1
:
100
},
{
'src'
:
'http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/5afe433d01.png'
,
'title'
:
'机器学习'
,
'teacher'
:
'wwwwww'
,
'time'
:
'2343234'
,
'isbuy'
:
0
,
'price0'
:
100
,
'price1'
:
1000
title
:
'三月面试求职班'
,
imgUrl
:
'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/4c5ccac604.jpg'
,
contact
:
'QQ群:449141326'
,
time
:
'03月12日'
,
record
:
'学习到第2课2分33秒'
,
isbuy
:
0
,
price0
:
100
,
price1
:
100
},
{
'src'
:
'http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/5afe433d01.png'
,
'title'
:
'Linux'
,
'teacher'
:
'wwwwww'
,
'time'
:
'2343234'
,
'isbuy'
:
0
,
'price0'
:
100
,
'price1'
:
1000
title
:
'三月面试求职班'
,
imgUrl
:
'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/4c5ccac604.jpg'
,
contact
:
'QQ群:449141326'
,
time
:
'03月12日'
,
record
:
'学习到第2课2分33秒'
,
isbuy
:
0
,
price0
:
100
,
price1
:
100
},
{
'src'
:
'http://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/home/5afe433d01.png'
,
'title'
:
'数学'
,
'teacher'
:
'wwwwww'
,
'time'
:
'2343234'
,
'isbuy'
:
1
,
'price0'
:
200
,
'price1'
:
2000
}
title
:
'三月面试求职班'
,
imgUrl
:
'https://julyedu-img-public.oss-cn-beijing.aliyuncs.com/Public/Image/4c5ccac604.jpg'
,
contact
:
'QQ群:449141326'
,
time
:
'03月12日'
,
record
:
'学习到第2课2分33秒'
,
isbuy
:
0
,
price0
:
100
,
price1
:
100
},
]
}
render
()
{
const
handleClick
=
()
=>
{
console
.
log
(
1
);
}
return
(
<
div
className
=
'class-box'
>
<
Courseload
><
/Courseload
>
<
ul
>
{
this
.
state
.
mockData
.
map
((
item
,
index
)
=>
{
const
Info
=
(
<
div
className
=
"info"
>
<
p
className
=
'title'
>
{
item
.
title
}
<
/p
>
<
p
className
=
'contact'
>
{
item
.
contact
}
<
/p
>
<
div
className
=
'des'
>
{
item
.
isbuy
===
0
&&
<
p
className
=
"course-price"
>
<
span
className
=
"new"
>
¥
{
item
.
price0
}
<
/span
>
<
span
className
=
"old"
>
¥
{
item
.
price1
}
<
/span
>
<
/p
>
}
{
item
.
isbuy
===
1
&&
<
a
href
=
"/#"
className
=
"isbuy"
>
已购买
<
/a
>
}
<
/div
>
<
/div
>
)
return
(
<
VList
handleClick
=
{
handleClick
}
{...
item
}
key
=
{
index
}
info
=
{
Info
}
><
/VList
>
)
})}
<
/ul
>
<
/div
>
)
}
...
...
src/components/classify/courselist.scss
View file @
de0a67fe
.class-box
{
.v-list-item
{
.content
{
border
:
none
;
.cover
{
flex
:
inherit
;
}
}
.info
{
.title
{
font-size
:
16px
;
color
:
$color_333
;
}
.contact
{
font-size
:
14px
;
color
:
$color_666
;
margin-top
:
14px
;
}
.des
{
.course-price
{
margin-top
:
15px
;
.new
{
color
:
$red
;
font-size
:
15px
;
}
.old
{
color
:
$color_999
;
font-size
:
12px
;
display
:
inline-block
;
margin-left
:
15px
;
text-decoration
:
line-through
;
}
}
.isbuy
{
display
:
inline-block
;
margin-top
:
15px
;
width
:
61px
;
height
:
18px
;
background-color
:
$bg_active
;
border-radius
:
9px
;
color
:
$white
;
font-size
:
12px
;
text-align
:
center
;
line-height
:
18px
;
}
}
}
}
}
\ No newline at end of file
src/components/classify/index.js
View file @
de0a67fe
...
...
@@ -54,7 +54,7 @@ class Classify extends Component {
{
this
.
state
.
dataList
.
map
((
item
,
index
)
=>
{
return
(
<
a
href
=
"#"
key
=
{
index
}
className
=
'item-banner'
><
img
<
a
href
=
"
/
#"
key
=
{
index
}
className
=
'item-banner'
><
img
src
=
{
item
.
src
}
alt
=
""
/><
/a
>
)
...
...
@@ -71,7 +71,7 @@ class Classify extends Component {
{
this
.
state
.
dataList
.
map
((
item
,
index
)
=>
{
return
(
<
a
href
=
"#"
key
=
{
index
}
className
=
'item-banner'
><
img
<
a
href
=
"
/
#"
key
=
{
index
}
className
=
'item-banner'
><
img
src
=
{
item
.
src
}
alt
=
""
/><
/a
>
)
...
...
@@ -87,7 +87,7 @@ class Classify extends Component {
{
this
.
state
.
dataList
.
map
((
item
,
index
)
=>
{
return
(
<
a
href
=
"#"
key
=
{
index
}
className
=
'item-label'
>
{
item
.
title
}
<
/a
>
<
a
href
=
"
/
#"
key
=
{
index
}
className
=
'item-label'
>
{
item
.
title
}
<
/a
>
)
})
}
...
...
@@ -101,7 +101,7 @@ class Classify extends Component {
{
this
.
state
.
dataList
.
map
((
item
,
index
)
=>
{
return
(
<
a
href
=
"#"
key
=
{
index
}
className
=
'item-label'
>
{
item
.
title
}
<
/a
>
<
a
href
=
"
/
#"
key
=
{
index
}
className
=
'item-label'
>
{
item
.
title
}
<
/a
>
)
})
}
...
...
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