Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yikao-react
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
yikao-react
Commits
74d56ed4
Commit
74d56ed4
authored
May 04, 2020
by
duanledexianxianxian
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sync
parent
02a849f7
Changes
39
Show whitespace changes
Inline
Side-by-side
Showing
39 changed files
with
419 additions
and
53 deletions
+419
-53
config/router.config.js
config/router.config.js
+6
-0
public/images/exam1.png
public/images/exam1.png
+0
-0
src/pages/exam/components/list/index.js
src/pages/exam/components/list/index.js
+2
-2
src/pages/exam/components/list/index.less
src/pages/exam/components/list/index.less
+14
-0
src/pages/exam/components/list/item.js
src/pages/exam/components/list/item.js
+3
-1
src/pages/exam/components/list/item.less
src/pages/exam/components/list/item.less
+4
-3
src/pages/exam/components/select/index.js
src/pages/exam/components/select/index.js
+0
-3
src/pages/exam/components/written/index.js
src/pages/exam/components/written/index.js
+65
-0
src/pages/exam/components/written/index.less
src/pages/exam/components/written/index.less
+117
-0
src/pages/exam/question/analytical/index.js
src/pages/exam/question/analytical/index.js
+3
-3
src/pages/exam/question/argumentation/index.js
src/pages/exam/question/argumentation/index.js
+3
-3
src/pages/exam/question/caseChoice/index.js
src/pages/exam/question/caseChoice/index.js
+3
-3
src/pages/exam/question/caseMultiple/index.js
src/pages/exam/question/caseMultiple/index.js
+3
-3
src/pages/exam/question/completion/index.js
src/pages/exam/question/completion/index.js
+3
-3
src/pages/exam/question/list/index.js
src/pages/exam/question/list/index.js
+1
-1
src/pages/exam/question/list/index.less
src/pages/exam/question/list/index.less
+0
-0
src/pages/exam/question/short/index.js
src/pages/exam/question/short/index.js
+3
-3
src/pages/profile/balance/index.js
src/pages/profile/balance/index.js
+0
-0
src/pages/profile/balance/index.less
src/pages/profile/balance/index.less
+0
-0
src/pages/profile/basic/index.js
src/pages/profile/basic/index.js
+0
-0
src/pages/profile/basic/index.less
src/pages/profile/basic/index.less
+0
-0
src/pages/profile/basic/phone.js
src/pages/profile/basic/phone.js
+0
-0
src/pages/profile/components/list/index.js
src/pages/profile/components/list/index.js
+21
-0
src/pages/profile/components/list/index.less
src/pages/profile/components/list/index.less
+1
-0
src/pages/profile/components/list/item.js
src/pages/profile/components/list/item.js
+29
-0
src/pages/profile/components/list/item.less
src/pages/profile/components/list/item.less
+55
-0
src/pages/profile/course/index.js
src/pages/profile/course/index.js
+37
-0
src/pages/profile/index.js
src/pages/profile/index.js
+2
-3
src/pages/profile/integral/detail.js
src/pages/profile/integral/detail.js
+0
-0
src/pages/profile/integral/exchange.js
src/pages/profile/integral/exchange.js
+0
-0
src/pages/profile/integral/index.js
src/pages/profile/integral/index.js
+0
-0
src/pages/profile/integral/index.less
src/pages/profile/integral/index.less
+0
-0
src/pages/profile/order/index.js
src/pages/profile/order/index.js
+7
-7
src/pages/profile/order/index.less
src/pages/profile/order/index.less
+37
-15
src/pages/profile/refuelingCard/index.js
src/pages/profile/refuelingCard/index.js
+0
-0
src/pages/profile/refuelingCard/index.less
src/pages/profile/refuelingCard/index.less
+0
-0
src/pages/profile/vip/index.js
src/pages/profile/vip/index.js
+0
-0
src/pages/profile/vip/index.less
src/pages/profile/vip/index.less
+0
-0
src/pages/profile/vip/submit.js
src/pages/profile/vip/submit.js
+0
-0
No files found.
config/router.config.js
View file @
74d56ed4
...
@@ -142,6 +142,12 @@ export default [
...
@@ -142,6 +142,12 @@ export default [
isFull
:
true
,
isFull
:
true
,
component
:
'
./profile/order
'
,
component
:
'
./profile/order
'
,
},
},
{
key
:
'
317
'
,
path
:
'
/profile/course
'
,
isFull
:
true
,
component
:
'
./profile/course
'
,
},
],
],
},
},
],
],
...
...
public/images/exam1.png
View replaced file @
02a849f7
View file @
74d56ed4
14.8 KB
|
W:
|
H:
90 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/exam/components/list.js
→
src/pages/exam/components/list
/index
.js
View file @
74d56ed4
...
@@ -2,7 +2,7 @@ import React from 'react';
...
@@ -2,7 +2,7 @@ import React from 'react';
import
{
SearchBar
}
from
'
antd-mobile
'
;
import
{
SearchBar
}
from
'
antd-mobile
'
;
import
Item
from
'
./item
'
;
import
Item
from
'
./item
'
;
import
styles
from
'
./
list
.less
'
;
import
styles
from
'
./
index
.less
'
;
const
Index
=
({
dataSource
=
[],
buttonLable
,
onClickLike
,
onClickShare
,
onClickButton
,
showCnt
})
=>
{
const
Index
=
({
dataSource
=
[],
buttonLable
,
onClickLike
,
onClickShare
,
onClickButton
,
showCnt
})
=>
{
const
renderItem
=
()
=>
{
const
renderItem
=
()
=>
{
...
@@ -21,7 +21,7 @@ const Index = ({ dataSource=[], buttonLable, onClickLike, onClickShare, onClickB
...
@@ -21,7 +21,7 @@ const Index = ({ dataSource=[], buttonLable, onClickLike, onClickShare, onClickB
<
div
className
=
{
styles
.
root
}
>
<
div
className
=
{
styles
.
root
}
>
<
div
className
=
"
search
"
>
<
div
className
=
"
search
"
>
<
SearchBar
placeholder
=
"
Search
"
maxLength
=
{
8
}
/
>
<
SearchBar
placeholder
=
"
Search
"
maxLength
=
{
8
}
/
>
<
div
>
{
renderItem
()}
<
/div
>
<
div
className
=
{
styles
.
list
}
>
{
renderItem
()}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
);
);
...
...
src/pages/exam/components/list/index.less
0 → 100644
View file @
74d56ed4
@import "~@/themes/vars.less";
.root{
font-size: @font-size-sm;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 16px;
.list{
padding-top: 16px;
}
}
\ No newline at end of file
src/pages/exam/components/item.js
→
src/pages/exam/components/
list/
item.js
View file @
74d56ed4
...
@@ -20,7 +20,9 @@ const Index = ({
...
@@ -20,7 +20,9 @@ const Index = ({
return
(
return
(
<
div
className
=
{
styles
.
root
}
>
<
div
className
=
{
styles
.
root
}
>
<
div
>
<
img
src
=
{
image
}
alt
=
""
/>
<
img
src
=
{
image
}
alt
=
""
/>
<
/div>
<
div
className
=
{
styles
.
right
}
>
<
div
className
=
{
styles
.
right
}
>
<
div
className
=
{
styles
.
title
}
>
{
title
}
<
/div>
<
div
className
=
{
styles
.
title
}
>
{
title
}
<
/div>
<
div
className
=
{
styles
.
action
}
style
=
{
showActionStyle
}
>
<
div
className
=
{
styles
.
action
}
style
=
{
showActionStyle
}
>
...
...
src/pages/exam/components/item.less
→
src/pages/exam/components/
list/
item.less
View file @
74d56ed4
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
}
}
display: flex;
display: flex;
justify-content: space-between;
justify-content: space-between;
padding: @space-xxxs @space-xxs
;
margin-bottom: 16px
;
img {
img {
border-radius: 5px;
border-radius: 5px;
width: 120px;
width: 120px;
...
@@ -23,11 +23,12 @@
...
@@ -23,11 +23,12 @@
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
justify-content: space-between;
justify-content: space-between;
padding
-left: @space-xxxs
;
padding
: 4px 0 4px 16px
;
.title {
.title {
font-size: @space-sm;
font-size: @space-sm;
font-weight:
5
00;
font-weight:
6
00;
color: @item-title-color;
color: @item-title-color;
line-height: 1.5;
}
}
.action {
.action {
display: flex;
display: flex;
...
...
src/pages/exam/components/select/index.js
View file @
74d56ed4
...
@@ -2,9 +2,7 @@ import React, { useState } from 'react';
...
@@ -2,9 +2,7 @@ import React, { useState } from 'react';
import
router
from
'
umi/router
'
;
import
router
from
'
umi/router
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
import
config
from
'
@/config
'
;
import
{
Button
}
from
'
antd-mobile
'
;
import
{
Button
}
from
'
antd-mobile
'
;
import
classNames
from
'
classNames
'
;
import
Option
from
'
./option
'
;
import
Option
from
'
./option
'
;
const
Index
=
({
type
=
0
,
analysis
,
title
,
total
,
no
,
rightAnswer
,
optionList
=
[]
})
=>
{
const
Index
=
({
type
=
0
,
analysis
,
title
,
total
,
no
,
rightAnswer
,
optionList
=
[]
})
=>
{
const
[
isShowAnswer
,
setIsShowAnswer
]
=
useState
(
false
);
const
[
isShowAnswer
,
setIsShowAnswer
]
=
useState
(
false
);
...
@@ -18,7 +16,6 @@ const Index = ({ type = 0, analysis, title, total, no, rightAnswer, optionList =
...
@@ -18,7 +16,6 @@ const Index = ({ type = 0, analysis, title, total, no, rightAnswer, optionList =
router
.
push
(
'
/exam/question/submit/analysis/0
'
);
router
.
push
(
'
/exam/question/submit/analysis/0
'
);
};
};
const
selectOption
=
()
=>
{};
const
handleSelect
=
(
id
,
isSelected
)
=>
{
const
handleSelect
=
(
id
,
isSelected
)
=>
{
options
.
forEach
(
item
=>
{
options
.
forEach
(
item
=>
{
...
...
src/pages/exam/components/written/index.js
0 → 100644
View file @
74d56ed4
import
React
,
{
useState
}
from
'
react
'
;
import
router
from
'
umi/router
'
;
import
{
Button
,
InputItem
,
TextareaItem
}
from
'
antd-mobile
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
({
type
=
3
,
no
,
total
,
title
,
analysis
,
rightAnswer
})
=>
{
const
[
isShowAnswer
,
setIsShowAnswer
]
=
useState
(
false
);
const
showAnswer
=
()
=>
{
setIsShowAnswer
(
true
);
};
const
goSubmitAnalysis
=
()
=>
{
router
.
push
(
'
/exam/question/submit/analysis/0
'
);
};
return
(
<
div
className
=
{
styles
.
root
}
>
<
div
className
=
{
styles
.
content
}
>
<
div
className
=
{
styles
.
title
}
>
{
no
}
/{total}、{title
}
<
/div
>
<
div
className
=
{
styles
.
paper
}
>
{
type
===
3
&&
(
<
div
className
=
{
styles
.
input
}
>
<
InputItem
placeholder
=
"
请输入
"
/>
<
/div
>
)}
{(
type
===
4
||
type
===
6
||
type
===
8
||
type
===
9
)
&&
(
<
div
className
=
{
styles
.
textarea
}
>
<
TextareaItem
rows
=
{
6
}
placeholder
=
"
请输入
"
/>
<
/div
>
)}
<
/div
>
{
isShowAnswer
&&
(
<
div
className
=
{
styles
.
answer
}
>
<
div
className
=
{
styles
.
rightAnswer
}
>
正确答案为
:
{
rightAnswer
}
<
/div
>
<
div
className
=
{
styles
.
analysis
}
>
<
span
>
题型解析
<
/span>:{analysis
}
<
/div
>
<
div
className
=
{
styles
.
goAnalysis
}
onClick
=
{
goSubmitAnalysis
}
>
我要解析
<
/div
>
<
/div
>
)}
{
!
isShowAnswer
&&
(
<
div
className
=
{
styles
.
submit
}
>
<
Button
type
=
"
primary
"
onClick
=
{
showAnswer
}
>
查看答案
<
/Button
>
<
/div
>
)}
<
/div
>
<
div
className
=
{
styles
.
action
}
>
<
div
className
=
{
styles
.
pre
}
>
上一题
<
/div
>
<
div
className
=
{
styles
.
input
}
>
跳转到
<
input
type
=
"
text
"
/>
题
<
/div
>
<
div
className
=
{
styles
.
next
}
>
下一题
<
/div
>
<
/div
>
<
/div
>
);
};
export
default
Index
;
src/pages/exam/components/written/index.less
0 → 100644
View file @
74d56ed4
.root {
height: 100%;
font-size: 16px;
padding: 16px;
display: flex;
flex-direction: column;
justify-content: space-between;
.content {
.title {
color: #202030;
font-weight: 600;
line-height: 1.5;
}
.paper {
padding: 32px 0 48px;
:global {
.am-list-item {
padding-left: 0;
}
.am-list-line {
padding-right: 0;
}
.am-input-control {
height: 44px;
background: rgba(250, 250, 250, 1);
border-radius: 4px;
}
}
.input {
input {
line-height: 44px;
padding-left: 16px;
}
}
.textarea {
textarea {
background: rgba(250, 250, 250, 1);
border-radius: 4px;
padding-top: 8px;
padding-left: 16px;
}
}
}
.submit {
:global {
.am-button {
line-height: 40px;
font-size: 16px;
width: 105px;
height: 40px;
background: linear-gradient(270deg, rgba(23, 106, 254, 1) 0%, rgba(97, 159, 255, 1) 100%);
border-radius: 20px;
}
}
}
.answer {
.rightAnswer {
margin-bottom: 16px;
color: #3dc484;
}
.analysis {
margin-bottom: 16px;
font-size: 14px;
color: #202030;
line-height: 1.5;
span {
font-weight: 600;
}
}
.goAnalysis {
text-align: right;
color: #176aff;
}
}
}
.action {
display: flex;
justify-content: space-between;
font-size: 14px;
.pre {
width: 72px;
height: 32px;
background: #f9f9f9;
border-radius: 16px;
color: #cccccc;
font-weight: 600;
line-height: 32px;
text-align: center;
}
.input {
input {
width: 36px;
height: 26px;
border-radius: 4px;
border: 1px solid #eff4fe;
color: #176aff;
font-weight: 500;
margin: 0 12px;
}
}
.next {
width: 72px;
height: 32px;
line-height: 32px;
background: #e3edfe;
border-radius: 16px;
color: #176aff;
font-weight: 600;
text-align: center;
}
}
}
src/pages/exam/question/analytical/index.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Select
from
'
../../components/select
'
;
import
Written
from
'
../../components/written
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
()
=>
{
const
Index
=
()
=>
{
const
opt
=
{
const
opt
=
{
type
:
1
,
type
:
9
,
no
:
1
,
no
:
1
,
total
:
213
,
total
:
213
,
title
:
title
:
...
@@ -43,7 +43,7 @@ const Index = () => {
...
@@ -43,7 +43,7 @@ const Index = () => {
};
};
return
(
return
(
<>
<>
<
Select
{...
opt
}
/
>
<
Written
{...
opt
}
/
>
<
/
>
<
/
>
);
);
};
};
...
...
src/pages/exam/question/argumentation/index.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Select
from
'
../../components/select
'
;
import
Written
from
'
../../components/written
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
()
=>
{
const
Index
=
()
=>
{
const
opt
=
{
const
opt
=
{
type
:
1
,
type
:
4
,
no
:
1
,
no
:
1
,
total
:
213
,
total
:
213
,
title
:
title
:
...
@@ -43,7 +43,7 @@ const Index = () => {
...
@@ -43,7 +43,7 @@ const Index = () => {
};
};
return
(
return
(
<>
<>
<
Select
{...
opt
}
/
>
<
Written
{...
opt
}
/
>
<
/
>
<
/
>
);
);
};
};
...
...
src/pages/exam/question/caseChoice/index.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Select
from
'
../../components/select
'
;
import
Written
from
'
../../components/written
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
()
=>
{
const
Index
=
()
=>
{
const
opt
=
{
const
opt
=
{
type
:
1
,
type
:
4
,
no
:
1
,
no
:
1
,
total
:
213
,
total
:
213
,
title
:
title
:
...
@@ -43,7 +43,7 @@ const Index = () => {
...
@@ -43,7 +43,7 @@ const Index = () => {
};
};
return
(
return
(
<>
<>
<
Select
{...
opt
}
/
>
<
Written
{...
opt
}
/
>
<
/
>
<
/
>
);
);
};
};
...
...
src/pages/exam/question/caseMultiple/index.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Select
from
'
../../components/select
'
;
import
Written
from
'
../../components/written
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
()
=>
{
const
Index
=
()
=>
{
const
opt
=
{
const
opt
=
{
type
:
1
,
type
:
8
,
no
:
1
,
no
:
1
,
total
:
213
,
total
:
213
,
title
:
title
:
...
@@ -43,7 +43,7 @@ const Index = () => {
...
@@ -43,7 +43,7 @@ const Index = () => {
};
};
return
(
return
(
<>
<>
<
Select
{...
opt
}
/
>
<
Written
{...
opt
}
/
>
<
/
>
<
/
>
);
);
};
};
...
...
src/pages/exam/question/completion/index.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Select
from
'
../../components/select
'
;
import
Written
from
'
../../components/written
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
()
=>
{
const
Index
=
()
=>
{
const
opt
=
{
const
opt
=
{
type
:
1
,
type
:
3
,
no
:
1
,
no
:
1
,
total
:
213
,
total
:
213
,
title
:
title
:
...
@@ -43,7 +43,7 @@ const Index = () => {
...
@@ -43,7 +43,7 @@ const Index = () => {
};
};
return
(
return
(
<>
<>
<
Select
{...
opt
}
/
>
<
Written
{...
opt
}
/
>
<
/
>
<
/
>
);
);
};
};
...
...
src/pages/exam/question/list.js
→
src/pages/exam/question/list
/index
.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
styles
from
'
./
list
.less
'
;
import
styles
from
'
./
index
.less
'
;
import
router
from
'
umi/router
'
;
import
router
from
'
umi/router
'
;
const
images
=
[
const
images
=
[
...
...
src/pages/exam/question/list.less
→
src/pages/exam/question/list
/index
.less
View file @
74d56ed4
File moved
src/pages/exam/question/short/index.js
View file @
74d56ed4
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
Select
from
'
../../components/select
'
;
import
Written
from
'
../../components/written
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
()
=>
{
const
Index
=
()
=>
{
const
opt
=
{
const
opt
=
{
type
:
1
,
type
:
6
,
no
:
1
,
no
:
1
,
total
:
213
,
total
:
213
,
title
:
title
:
...
@@ -43,7 +43,7 @@ const Index = () => {
...
@@ -43,7 +43,7 @@ const Index = () => {
};
};
return
(
return
(
<>
<>
<
Select
{...
opt
}
/
>
<
Written
{...
opt
}
/
>
<
/
>
<
/
>
);
);
};
};
...
...
src/pages/profile/balance/index.js
0 → 100644
View file @
74d56ed4
src/pages/profile/balance/index.less
0 → 100644
View file @
74d56ed4
src/pages/profile/basic/index.js
0 → 100644
View file @
74d56ed4
src/pages/profile/basic/index.less
0 → 100644
View file @
74d56ed4
src/pages/profile/basic/phone.js
0 → 100644
View file @
74d56ed4
src/pages/profile/components/list/index.js
0 → 100644
View file @
74d56ed4
import
React
from
'
react
'
;
import
Item
from
'
./item
'
;
import
styles
from
'
./index.less
'
;
const
Index
=
({
dataSource
=
[]})
=>
{
const
renderItem
=
()
=>
{
return
dataSource
.
map
(
x
=>
(
<
Item
{...
x
}
/
>
));
};
return
(
<
div
className
=
{
styles
.
root
}
>
<
div
>
{
renderItem
()}
<
/div
>
<
/div
>
);
};
export
default
Index
;
src/pages/
exam/components/list
.less
→
src/pages/
profile/components/list/index
.less
View file @
74d56ed4
...
@@ -7,4 +7,5 @@
...
@@ -7,4 +7,5 @@
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
justify-content: space-between;
justify-content: space-between;
padding: 16px;
}
}
\ No newline at end of file
src/pages/profile/components/list/item.js
0 → 100644
View file @
74d56ed4
import
React
from
'
react
'
;
import
{
Button
}
from
'
antd-mobile
'
;
import
Icon
from
'
components/Icon
'
;
import
styles
from
'
./item.less
'
;
const
Index
=
({
id
,
image
,
title
,
like
,
share
})
=>
{
return
(
<
div
className
=
{
styles
.
root
}
>
<
div
>
<
img
src
=
{
image
}
alt
=
""
/>
<
/div>
<
div
className
=
{
styles
.
right
}
>
<
div
className
=
{
styles
.
title
}
>
{
title
}
<
/div>
<
div
className
=
{
styles
.
action
}
>
<
div
className
=
{
styles
.
limitTime
}
>
<
span
>
有效期至
<
/span>
<
span
className
=
{
styles
.
cnt
}
>
2020.05
.
10
<
/span>
<
/div>
<
div
className
=
{
styles
.
view
}
>
<
span
>
浏览
<
/span>
<
span
className
=
{
styles
.
cnt
}
>
14222
<
/span>
<
/div>
<
/div>
<
/div>
<
/div>
);
};
export
default
Index
;
src/pages/profile/components/list/item.less
0 → 100644
View file @
74d56ed4
@import '~@/themes/vars.less';
.root {
:global {
.am-button {
background-color: #176aff;
height: 24px;
line-height: 24px;
width: 64px;
border-radius: 10px;
font-size: 12px;
}
}
display: flex;
justify-content: space-between;
margin-bottom: 16px;
img {
border-radius: 5px;
width: 120px;
height: 92px;
}
.right {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 4px 0 4px 16px;
.title {
font-size: @space-sm;
font-weight: 600;
color: @item-title-color;
line-height: 1.5;
}
.action {
display: flex;
justify-content: space-between;
.cnt{
margin-left: 12px;
}
.limitTime {
height: 17px;
font-size: 12px;
font-weight: 500;
color: rgba(236, 164, 0, 1);
line-height: 17px;
}
.view {
height: 17px;
font-size: 12px;
font-weight: 500;
color: rgba(204, 204, 204, 1);
line-height: 17px;
}
}
}
}
src/pages/profile/course/index.js
0 → 100644
View file @
74d56ed4
import
React
from
'
react
'
;
import
List
from
'
../components/list
'
;
const
Index
=
()
=>
{
const
dataSource
=
[
{
id
:
1
,
image
:
'
/images/exam1.png
'
,
title
:
'
2020版中西医结合执业助理医师 模拟试
'
,
like
:
0
,
share
:
1
,
},
{
id
:
2
,
image
:
'
/images/exam1.png
'
,
title
:
'
2020版中西医结合执业助理医师 模拟试
'
,
like
:
0
,
share
:
0
,
},
{
id
:
3
,
image
:
'
/images/exam1.png
'
,
title
:
'
2020版中西医结合执业助理医师 模拟试
'
,
like
:
1
,
share
:
1
,
},
];
const
opt
=
{
dataSource
,
}
return
(
<>
<
List
{...
opt
}
/
>
<
/
>
);
};
export
default
Index
;
src/pages/profile/index.js
View file @
74d56ed4
...
@@ -64,10 +64,9 @@ const Index = () => {
...
@@ -64,10 +64,9 @@ const Index = () => {
<
div
className
=
{
styles
.
label
}
>
加入会员
<
/div
>
<
div
className
=
{
styles
.
label
}
>
加入会员
<
/div
>
<
/div
>
<
/div
>
<
/Item
>
<
/Item
>
<
Item
arrow
=
"
horizontal
"
onClick
=
{()
=>
{}}
>
<
Item
arrow
=
"
horizontal
"
onClick
=
{()
=>
{
router
.
push
(
'
/profile/order
'
);
}}
>
<
div
className
=
{
styles
.
item
}
>
<
div
className
=
{
styles
.
item
}
>
<
Icon
<
Icon
onClick
=
{()
=>
{
router
.
push
(
'
/profile/order
'
);}}
{...
iconOpt
}
{...
iconOpt
}
type
=
{
require
(
'
public/images/profile/my-order.svg
'
)}
type
=
{
require
(
'
public/images/profile/my-order.svg
'
)}
/
>
/
>
...
@@ -84,7 +83,7 @@ const Index = () => {
...
@@ -84,7 +83,7 @@ const Index = () => {
<
div
className
=
{
styles
.
label
}
>
错题集
<
/div
>
<
div
className
=
{
styles
.
label
}
>
错题集
<
/div
>
<
/div
>
<
/div
>
<
/Item
>
<
/Item
>
<
Item
arrow
=
"
horizontal
"
onClick
=
{()
=>
{}}
>
<
Item
arrow
=
"
horizontal
"
onClick
=
{()
=>
{
router
.
push
(
'
/profile/course
'
);
}}
>
<
div
className
=
{
styles
.
item
}
>
<
div
className
=
{
styles
.
item
}
>
<
Icon
<
Icon
onClick
=
{()
=>
{}}
onClick
=
{()
=>
{}}
...
...
src/pages/profile/integral/detail.js
0 → 100644
View file @
74d56ed4
src/pages/profile/integral/exchange.js
0 → 100644
View file @
74d56ed4
src/pages/profile/integral/index.js
0 → 100644
View file @
74d56ed4
src/pages/profile/integral/index.less
0 → 100644
View file @
74d56ed4
src/pages/profile/order/index.js
View file @
74d56ed4
...
@@ -7,21 +7,21 @@ const list = [
...
@@ -7,21 +7,21 @@ const list = [
courseType
:
'
购买普通课程
'
,
courseType
:
'
购买普通课程
'
,
buyTime
:
'
2012.01.23
'
,
buyTime
:
'
2012.01.23
'
,
invalidTime
:
'
2012.01.23
'
,
invalidTime
:
'
2012.01.23
'
,
amount
:
8
,
amount
:
8
.00
,
},
},
{
{
title
:
'
医学细胞生物学(本临床定向)
'
,
title
:
'
医学细胞生物学(本临床定向)
'
,
courseType
:
'
购买普通课程
'
,
courseType
:
'
购买普通课程
'
,
buyTime
:
'
20
12.01.23
'
,
buyTime
:
'
20
20.3.28 09:47:11
'
,
invalidTime
:
'
20
12.01.23
'
,
invalidTime
:
'
20
20.3.28 09:47:11
'
,
amount
:
8
,
amount
:
8
.00
,
},
},
{
{
title
:
'
医学细胞生物学(本临床定向)
'
,
title
:
'
医学细胞生物学(本临床定向)
'
,
courseType
:
'
购买普通课程
'
,
courseType
:
'
购买普通课程
'
,
buyTime
:
'
20
12.01.23
'
,
buyTime
:
'
20
20.3.28 09:47:11
'
,
invalidTime
:
'
20
12.01.23
'
,
invalidTime
:
'
20
20.3.28 09:47:11
'
,
amount
:
8
,
amount
:
8
.00
,
},
},
];
];
const
Index
=
()
=>
{
const
Index
=
()
=>
{
...
...
src/pages/profile/order/index.less
View file @
74d56ed4
.root {
.root {
height: 100%;
height: 100%;
background:
rgba(247,247,247,
1);
background:
rgba(247, 247, 247,
1);
padding: 16px;
padding: 16px;
.item {
.item {
min-height: 121px;
min-height: 121px;
background: rgba(255, 255, 255, 1);
background: rgba(255, 255, 255, 1);
border-radius: 4px;
border-radius: 4px;
margin-bottom: 16px;
margin-bottom: 16px;
padding: 24px 16px;
padding: 16px 16px;
.top {
display: flex;
justify-content: space-between;
.title{
.title{
color: #202030;
.courseTitle {
font-size: 16px;
font-size: 16px;
font-weight:600;
font-weight: 600;
margin-bottom: 8px;
color: #202030;
line-height: 1.5;
}
}
.content{
.courseType {
color: #909096;
font-size: 12px;
font-size: 12px;
font-weight: 500;
color: rgba(144, 144, 150, 1);
line-height: 1.5;
line-height: 1.5;
}
}
.noticeTime{
}
text-align: right;
color: #CCCCCC;
.amount {
height: 26px;
font-size: 20px;
font-weight: 500;
color: rgba(255, 0, 0, 1);
line-height: 2;
}
}
.bottom {
margin-top: 16px;
height: 17px;
font-size: 12px;
font-size: 12px;
font-weight: 500;
color: rgba(204, 204, 204, 1);
line-height: 17px;
.time{
display: flex;
justify-content: space-between;
}
}
}
}
}
}
}
src/pages/profile/refuelingCard/index.js
0 → 100644
View file @
74d56ed4
src/pages/profile/refuelingCard/index.less
0 → 100644
View file @
74d56ed4
src/pages/profile/vip/index.js
0 → 100644
View file @
74d56ed4
src/pages/profile/vip/index.less
0 → 100644
View file @
74d56ed4
src/pages/profile/vip/submit.js
0 → 100644
View file @
74d56ed4
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