Commit 664f2961 by zhanghaozhe

Merge branch '00' into dev

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