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
73265398
Commit
73265398
authored
Dec 07, 2019
by
wangshuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共组件
parent
a8239afb
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
119 additions
and
0 deletions
+119
-0
src/components/activity/newyear-2019/common/commonContainer/index.js
+28
-0
src/components/activity/newyear-2019/common/commonContainer/index.scss
+56
-0
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
+17
-0
src/components/activity/newyear-2019/preheat/LiveRoom/index.scss
+0
-0
src/components/activity/newyear-2019/preheat/index.js
+13
-0
src/components/activity/newyear-2019/preheat/index.scss
+0
-0
src/router/router-config.js
+5
-0
No files found.
src/components/activity/newyear-2019/common/commonContainer/index.js
0 → 100644
View file @
73265398
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
export
default
class
CommonContainer
extends
Component
{
constructor
(
props
)
{
super
(
props
)
}
render
()
{
return
(
<
div
className
=
'common_container'
>
<
div
className
=
'container_top'
><
/div
>
<
div
className
=
'container_content'
>
<
div
className
=
'title_container'
>
<
i
><
/i
>
<
p
>
{
this
.
props
.
title
}
<
/p
>
<
i
><
/i
>
<
/div
>
{
React
.
Children
.
map
(
this
.
props
.
children
,
function
(
child
)
{
return
<>
{
child
}
<
/>
;
})
}
<
/div
>
<
div
className
=
'container_bottom'
><
/div
>
<
/div
>
)
}
}
src/components/activity/newyear-2019/common/commonContainer/index.scss
0 → 100644
View file @
73265398
.common_container
{
.title_container
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
align-content
:
center
;
i
{
width
:
230px
;
height
:
2px
;
background
:
linear-gradient
(
90deg
,
rgba
(
254
,
228
,
29
,
0
)
0%
,
rgba
(
254
,
228
,
29
,
0
.98
)
48%
,
rgba
(
254
,
228
,
29
,
0
)
100%
);
}
p
{
font-size
:
18px
;
line-height
:
18px
;
font-weight
:
500
;
color
:
rgba
(
254
,
228
,
29
,
1
);
margin
:
8px
auto
;
background
:
linear-gradient
(
0deg
,
rgba
(
254
,
228
,
29
,
1
)
23
.9013671875%
,
rgba
(
255
,
204
,
0
,
1
)
50
.146484375%
,
rgba
(
254
,
228
,
29
,
1
)
75%
);
background-clip
:
text
;
-webkit-text-fill-color
:
transparent
;
}
}
.container_top
{
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_top_bj.png")
center
center
no-repeat
;
background-size
:
100%
100%
;
width
:
100%
;
height
:
18px
;
}
.container_bottom
{
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_bottom_bj.png")
center
center
no-repeat
;
background-size
:
100%
100%
;
width
:
100%
;
height
:
22px
;
}
.container_content
{
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/newyear20/H5/m_middle_bj.png")
center
center
no-repeat
;
background-size
:
100%
100%
;
width
:
100%
;
min-height
:
25px
;
}
}
src/components/activity/newyear-2019/preheat/LiveRoom/index.js
0 → 100644
View file @
73265398
import
React
,
{
Component
}
from
'react'
;
import
'./index.scss'
;
import
CommonContainer
from
'./../../common/commonContainer/index'
export
default
class
index
extends
Component
{
render
()
{
return
(
<
div
>
<
CommonContainer
title
=
'大咖直播'
>
<
div
>
<
/div
>
<
/CommonContainer
>
<
/div
>
)
}
}
src/components/activity/newyear-2019/preheat/LiveRoom/index.scss
0 → 100644
View file @
73265398
src/components/activity/newyear-2019/preheat/index.js
0 → 100644
View file @
73265398
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
import
LiveRoom
from
'./LiveRoom/index'
;
export
default
class
index
extends
Component
{
render
()
{
return
(
<
div
>
<
LiveRoom
/>
<
/div
>
)
}
}
src/components/activity/newyear-2019/preheat/index.scss
0 → 100644
View file @
73265398
src/router/router-config.js
View file @
73265398
...
@@ -233,4 +233,9 @@ export default [
...
@@ -233,4 +233,9 @@ export default [
path
:
'/activity/newyear-2019/landing'
,
path
:
'/activity/newyear-2019/landing'
,
component
:
loadable
(()
=>
import
(
/* webpackChunkName: 'newyear-2019-landing'*/
'@components/activity/newyear-2019/landing/index'
))
component
:
loadable
(()
=>
import
(
/* webpackChunkName: 'newyear-2019-landing'*/
'@components/activity/newyear-2019/landing/index'
))
},
},
// 双旦活动预热页面
{
path
:
'/year/yearIndex'
,
component
:
loadable
(()
=>
import
(
/* webpackChunkName: 'newyear-yearIndex' */
'@components/activity/newyear-2019/preheat/index'
))
}
]
]
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