Commit 72db7bfb by zhanghaozhe

周年庆

parent a311a3c7
...@@ -28,7 +28,8 @@ class App extends Component { ...@@ -28,7 +28,8 @@ class App extends Component {
super(props) super(props)
this.state = { this.state = {
isShowActivityEntry: 0, isShowActivityEntry: 0,
isShowChannel: 0, jumpUrl: '',
entryImage: '',
} }
} }
...@@ -108,16 +109,14 @@ class App extends Component { ...@@ -108,16 +109,14 @@ class App extends Component {
// 获取宝箱阶段 // 获取宝箱阶段
getStage = () => { getStage = () => {
let ccode = cookie.get('ccode') let ccode = cookie.get('ccode')
http.get(`${API.home}/activity/stage?ccode=${ccode}`).then(res => { http.get(`${API.home}/sys/anniversary/floating?ccode=${ccode}`).then(res => {
const {code, data, msg} = res.data const {code, data, msg} = res.data
if (code === 200) { if (code === 200) {
// treasure_stage,宝箱阶段,0-不在活动时间,1-活动时间内
this.setState({ this.setState({
isShowActivityEntry: data.treasure_stage, isShowActivityEntry: data.is_show,
isShowChannel: data.is_show_site_window_by_channel, jumpUrl: data.jump_url,
entryImage: data.image_path,
}) })
window.sessionStorage.setItem('isShowSiteWindowByChannel', data.is_show_site_window_by_channel)
} else { } else {
Toast.info(msg, 2) Toast.info(msg, 2)
} }
...@@ -328,16 +327,16 @@ class App extends Component { ...@@ -328,16 +327,16 @@ class App extends Component {
} }
render() { render() {
const {isShowActivityEntry, entryImage, jumpUrl} = this.state
return <> return <>
<Routes/> <Routes/>
{ {
!!this.state.isShowActivityEntry && !!this.state.isShowChannel && isShowActivityEntry &&
<div className="year19-index"> <div className="year19-index">
<i className={'iconfont iconiconfront-2'} onClick={this.closeGlobalEntry}></i> <i className={'iconfont iconiconfront-2'} onClick={this.closeGlobalEntry}></i>
<Link to={'/box/boxActive'}> <a href={jumpUrl}>
<img src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/treasure-active/m/global-entry.png" <img src={entryImage} alt=""/>
alt=""/> </a>
</Link>
</div> </div>
} }
</> </>
......
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
background-color: #2E00DC; background-color: #2E00DC;
padding: 0 10px 75px; padding: 0 10px 75px;
& + .year19-index {
display: none;
}
.banner { .banner {
position: relative; position: relative;
height: 220px; height: 300px;
img { img {
width: 100%; width: 100%;
...@@ -829,7 +833,7 @@ ...@@ -829,7 +833,7 @@
.audition { .audition {
margin-bottom: 20px; margin-bottom: 20px;
h4{ h4 {
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
margin: 10px 0 15px; margin: 10px 0 15px;
...@@ -1200,10 +1204,11 @@ ...@@ -1200,10 +1204,11 @@
} }
.members { .members {
ul{ ul {
max-height: 230px; max-height: 230px;
overflow: auto; overflow: auto;
} }
li { li {
display: flex; display: flex;
align-items: center; align-items: center;
......
...@@ -8,6 +8,11 @@ html, body, #root { ...@@ -8,6 +8,11 @@ html, body, #root {
padding-bottom: 60px; padding-bottom: 60px;
background: #2E00DC; background: #2E00DC;
& + .year19-index {
display: none;
}
.banner { .banner {
height: 67px; height: 67px;
margin: 20px 0; margin: 20px 0;
......
...@@ -3,6 +3,11 @@ ...@@ -3,6 +3,11 @@
min-height: 100%; min-height: 100%;
padding-bottom: 55px; padding-bottom: 55px;
& + .year19-index {
display: none;
}
.banner { .banner {
height: 94px; height: 94px;
background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/question-banner.png"); background: url("https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/active20_717/m/question-banner.png");
...@@ -273,6 +278,6 @@ ...@@ -273,6 +278,6 @@
} }
.captcha-container{ .captcha-container {
padding: 40vh 30px; padding: 40vh 30px;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment