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
66b2ae72
Commit
66b2ae72
authored
Oct 30, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner
parent
b92299d5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
0 deletions
+73
-0
src/components/blessingPreheat/banner/index.js
+48
-0
src/components/blessingPreheat/banner/index.scss
+23
-0
src/components/blessingPreheat/index.js
+2
-0
No files found.
src/components/blessingPreheat/banner/index.js
0 → 100644
View file @
66b2ae72
import
React
,
{
Component
}
from
'react'
import
'./index.scss'
class
Banner
extends
Component
{
state
=
{
navs
:
[
{
text
:
'积福气'
},
{
text
:
'幸运大抽奖'
},
{
text
:
'预付定金'
},
{
text
:
'精品特惠'
},
{
text
:
'AI测试'
},
{
text
:
'大咖直播'
},
]
}
render
()
{
const
{
navs
}
=
this
.
state
return
(
<
div
id
=
{
'main-banner'
}
>
<
div
className
=
"banner"
><
/div
>
<
nav
id
=
{
'main-nav'
}
>
<
ul
>
{
navs
.
map
((
item
,
index
)
=>
{
return
(
<
li
key
=
{
index
}
>
{
item
.
text
}
<
/li
>
)
})
}
<
/ul
>
<
/nav
>
<
/div
>
)
}
}
export
default
Banner
src/components/blessingPreheat/banner/index.scss
0 → 100644
View file @
66b2ae72
#main-banner
{
.banner
{
width
:
375px
;
height
:
183px
;
background
:
url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active19_1111/m/banner.png")
no-repeat
;
background-size
:
contain
;
}
#main-nav
{
margin-bottom
:
30px
;
ul
{
background
:
#3900C9
;
display
:
flex
;
}
li
{
width
:
63px
;
height
:
30px
;
font-size
:
11px
;
color
:
#fff
;
text-align
:
center
;
line-height
:
30px
;
}
}
}
src/components/blessingPreheat/index.js
View file @
66b2ae72
...
@@ -17,6 +17,7 @@ import { Popup } from '@/common'
...
@@ -17,6 +17,7 @@ import { Popup } from '@/common'
import
{
CopyToClipboard
}
from
'react-copy-to-clipboard'
import
{
CopyToClipboard
}
from
'react-copy-to-clipboard'
import
{
Toast
}
from
"antd-mobile"
import
{
Toast
}
from
"antd-mobile"
import
Live
from
'./live'
import
Live
from
'./live'
import
Banner
from
'./banner'
class
BlessingPreheat
extends
Component
{
class
BlessingPreheat
extends
Component
{
...
@@ -147,6 +148,7 @@ class BlessingPreheat extends Component {
...
@@ -147,6 +148,7 @@ class BlessingPreheat extends Component {
const
{
userInfo
,
isRule
,
isCourse
,
inviteUrl
,
inviteVisible
,
isFormal
,
isServer
,
serverUrl
,
isSign
,
showRecordList
,
shareMark
}
=
this
.
state
const
{
userInfo
,
isRule
,
isCourse
,
inviteUrl
,
inviteVisible
,
isFormal
,
isServer
,
serverUrl
,
isSign
,
showRecordList
,
shareMark
}
=
this
.
state
return
(
return
(
<
div
id
=
{
'blessing-preheat'
}
>
<
div
id
=
{
'blessing-preheat'
}
>
<
Banner
/>
{
/* 积福气 */
}
{
/* 积福气 */
}
<
ListHeader
text
=
"积福气,享受更多福利"
styles
=
{{
margin
:
'0 0 15px'
}}
/
>
<
ListHeader
text
=
"积福气,享受更多福利"
styles
=
{{
margin
:
'0 0 15px'
}}
/
>
<
CollectBlessing
<
CollectBlessing
...
...
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