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
f8b599d0
Commit
f8b599d0
authored
May 06, 2019
by
xuzhenghua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.julyedu.com:baiguangyao/mr-julyedu
parents
37512850
6964f452
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
2 deletions
+21
-2
src/HOCs/WithTab/index.js
+16
-0
src/HOCs/index.js
+2
-0
src/components/Index/index.js
+2
-1
src/router.js
+1
-1
No files found.
src/HOCs/WithTab/index.js
0 → 100644
View file @
f8b599d0
import
React
,
{
Component
}
from
'react'
import
Menu
from
'@/menu'
export
default
function
WithTab
(
WrappedComponent
)
{
return
class
extends
Component
{
render
()
{
return
(
<>
<
WrappedComponent
{...
this
.
props
}
/
>
<
Menu
/>
<
/
>
)
}
}
}
\ No newline at end of file
src/HOCs/index.js
0 → 100644
View file @
f8b599d0
export
{
default
as
WithTab
}
from
'./WithTab'
\ No newline at end of file
src/components/Index/index.js
View file @
f8b599d0
...
...
@@ -3,6 +3,7 @@ import {Course} from '../../common'
import
Scroll
from
'./scroll'
import
Topscroll
from
'./topscroll'
import
'./index.scss'
;
import
{
WithTab
}
from
'@/HOCs'
class
Index
extends
Component
{
state
=
{
...
...
@@ -263,4 +264,4 @@ class Index extends Component {
}
export
default
Index
;
export
default
WithTab
(
Index
)
;
src/router.js
View file @
f8b599d0
...
...
@@ -39,7 +39,7 @@ const router = (props) => (
<
Route
path
=
'/shopcard'
component
=
{
ShopCard
}
><
/Route
>
<
Route
path
=
'/bargain-middle-page'
component
=
{
BargainMiddlePage
}
><
/Route
>
<
/Switch
>
<
Menu
/>
{
/*<Menu/>*/
}
<
/Router
>
)
...
...
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