Commit e3d8135d by zhanghaozhe

分享页

parent 0894f593
......@@ -28,7 +28,8 @@ class Landing extends Component {
treasure_code: getParam('treasure_code'),
activityEnd: false,
notices: [],
rule: ''
rule: '',
isCaptain: sessionStorage.getItem('status')
}
componentDidMount() {
......@@ -51,6 +52,7 @@ class Landing extends Component {
let searchParams = new URLSearchParams(window.location.search)
if (searchParams.get('origin') === '1' && !browser.isWeixin) {
sessionStorage.setItem('isCaptain', '1')
searchParams.set('origin', '2')
window.history.replaceState(null, '', `landing?${searchParams.toString()}`)
}
......@@ -334,7 +336,8 @@ class Landing extends Component {
prize_info,
my_team
},
activityEnd
activityEnd,
isCaptain
} = this.state
/*
......@@ -466,7 +469,7 @@ class Landing extends Component {
</button>
}
{
prize_info && !activityEnd && <div className="certainly-prompt">
!isCaptain && prize_info && !activityEnd && <div className="certainly-prompt">
{prize_info.stage_no}次必中 {prize_info.name}
</div>
}
......@@ -482,7 +485,9 @@ class Landing extends Component {
</div>
</BoxContainer>
<WhiteSpace size={'xl'}/>
<YearCourse></YearCourse>
{
isCaptain && <YearCourse/>
}
</div>
)
}
......
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