Commit 664f2961 by zhanghaozhe

Merge branch '00' into dev

parents 99ba8121 46ff9691
......@@ -34,6 +34,7 @@ class Landing extends Component {
componentDidMount() {
this.fetchPageData()
window.showFollowAlert = this.remind('create')
}
componentDidUpdate(prevProps) {
......@@ -54,7 +55,8 @@ class Landing extends Component {
this.setState({
teamData: data,
isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1
isCaptain: sessionStorage.getItem('isCaptain') ? sessionStorage.getItem('isCaptain') : getParam('origin') == 1,
activityEnd: data.status == 5
})
let searchParams = new URLSearchParams(window.location.search)
......@@ -67,12 +69,6 @@ class Landing extends Component {
this.showSharePromptWithParam()
} else if (code === 12005) {
this.setState({
activityEnd: true
})
} else {
Toast.info(msg, 2, null, false)
}
......@@ -235,7 +231,7 @@ class Landing extends Component {
}
remind = (type = 'create', treasure_code, origin = 1) => {
const {match, history, user} = this.props
const {user} = this.props
http.get(`${API["base-api"]}/wx/user_temporary_qrcode/${user.data.uid}`)
.then(res => {
const {data} = res.data
......@@ -289,10 +285,12 @@ class Landing extends Component {
closable: false,
close: () => {
sessionStorage.removeItem('showShareTip')
this.getFollowStatus()
.then(isFollow => {
!isFollow && this.remind('create', getParam('treasure_code'), 1)
})
if (!user.hasError) {
this.getFollowStatus()
.then(isFollow => {
!isFollow && this.remind('create', getParam('treasure_code'), 1)
})
}
}
})
}
......
......@@ -391,3 +391,7 @@
width: 312px;
}
}
.year19-index{
display: none;
}
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