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
d50c6c6e
Commit
d50c6c6e
authored
Sep 23, 2019
by
FE
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'issue-20190920' into pre
parents
a02090ad
2c214b02
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
src/common/Captcha/index.js
+2
-2
src/components/classify/courselist.js
+8
-2
No files found.
src/common/Captcha/index.js
View file @
d50c6c6e
...
...
@@ -7,10 +7,10 @@ const CAPTCHAID = '6b0f5f6c8f334f3693ee754ba5692e36'
class
Captcha
extends
Component
{
componentDidMount
()
{
const
{
getInstance
,
handleError
,
onVerify
}
=
this
.
props
const
el
=
document
.
getElementById
(
'captcha'
)
const
el
=
document
.
getElementById
(
'captcha'
)
;
el
&&
initCaptcha
(
function
()
{
initNECaptcha
({
element
:
'#captcha'
,
element
:
el
,
captchaId
:
CAPTCHAID
,
mode
:
'float'
,
width
:
'auto'
,
...
...
src/components/classify/courselist.js
View file @
d50c6c6e
...
...
@@ -26,7 +26,8 @@ class Classify extends Component {
allClass
:
[],
data
:
[],
activeTab
:
decodeURIComponent
(
getParam
(
'name'
)),
isLoading
:
true
isLoading
:
true
,
top
:
44
}
}
...
...
@@ -34,6 +35,11 @@ class Classify extends Component {
componentDidMount
()
{
this
.
getTabs
()
this
.
getList
()
const
el
=
document
.
querySelector
(
'.search-nav'
);
this
.
setState
({
top
:
el
.
offsetHeight
});
}
componentWillUnmount
()
{
...
...
@@ -173,7 +179,7 @@ class Classify extends Component {
<
Sticky
>
{({
style
})
=>
{
return
(
<
div
style
=
{{
...
style
,
top
:
'44px'
,
zIndex
:
1
}}
>
<
div
style
=
{{
...
style
,
top
:
`
${
this
.
state
.
top
}
px`
,
zIndex
:
1
}}
>
<
Tabs
.
DefaultTabBar
{...
props
}
/
>
<
/div
>
)
...
...
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