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
6f5fbe3c
Commit
6f5fbe3c
authored
Jun 03, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu into detail
parents
3425c7ed
6590508b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
src/components/examination/index.js
+2
-3
src/utils/index.js
+9
-2
No files found.
src/components/examination/index.js
View file @
6f5fbe3c
...
...
@@ -30,10 +30,9 @@ export default class Examination extends PureComponent {
}
render
()
{
// let {ques, type_id, options, analysis} = this.state.questionData
let
{
questionData
:
{
ques
,
type_id
,
options
,
analysis
ques
,
type_id
,
options
,
analysis
,
category
},
isShowAnswer
}
=
this
.
state
...
...
@@ -41,7 +40,7 @@ export default class Examination extends PureComponent {
<
div
className
=
'examination'
>
<
div
className
=
"question-container"
>
<
div
className
=
"topic"
>
<
Tag
className
=
'category-tag'
>
深度学习
<
/Tag
>
<
Tag
className
=
'category-tag'
>
{
category
}
<
/Tag
>
{
ques
}
<
/div
>
{
...
...
src/utils/index.js
View file @
6f5fbe3c
...
...
@@ -50,4 +50,11 @@ export const isPhone = ($poneInput) => {
}
else
{
return
false
;
}
}
\ No newline at end of file
}
export
const
getParam
=
(
key
,
str
)
=>
{
const
_s
=
str
?
str
:
location
.
href
;
const
re
=
new
RegExp
(
`(?:\\?|#|&)(
${
key
}
)=([^=&#\\?]+)`
,
'ig'
);
let
found
;
return
(
found
=
re
.
exec
(
_s
))
?
found
[
2
]
:
null
;
}
\ No newline at end of file
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