Commit 7d207caa by zhanghaozhe

Merge branch '00' into dev

parents bde31290 2850dcc9
...@@ -158,7 +158,7 @@ class Landing extends Component { ...@@ -158,7 +158,7 @@ class Landing extends Component {
this.fetchPageData() this.fetchPageData()
this.getFollowStatus() this.getFollowStatus()
.then(isFollow => { .then(isFollow => {
!isFollow && this.remind('join', this.state.treasure_code) !isFollow && this.remind('join', this.state.treasure_code, 2)
}) })
} }
}) })
...@@ -191,7 +191,7 @@ class Landing extends Component { ...@@ -191,7 +191,7 @@ class Landing extends Component {
return code === 200 && data['is_follow'] return code === 200 && data['is_follow']
}) })
createTeamSuccess = (member, team_num, lack_member, treasure_code) => { createTeamSuccess = ({member, team_num, lack_member, treasure_code}) => {
this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null) this.joinSuccessPopup && this.joinSuccessPopup.remove() && (this.joinSuccessPopup = null)
this.getFollowStatus() this.getFollowStatus()
.then(isFollow => { .then(isFollow => {
...@@ -233,7 +233,7 @@ class Landing extends Component { ...@@ -233,7 +233,7 @@ class Landing extends Component {
}) })
} }
remind = (type = 'create', treasure_code) => { remind = (type = 'create', treasure_code, origin = 1) => {
const {match, history, user} = this.props const {match, history, 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 => {
...@@ -255,7 +255,7 @@ class Landing extends Component { ...@@ -255,7 +255,7 @@ class Landing extends Component {
// history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`) // history.replace(`${match.path}?treasure_code=${treasure_code}&origin=1`)
this.fetchPageData({ this.fetchPageData({
treasure_code, treasure_code,
origin: '1' origin
}) })
} }
}) })
...@@ -290,7 +290,7 @@ class Landing extends Component { ...@@ -290,7 +290,7 @@ class Landing extends Component {
sessionStorage.removeItem('showShareTip') sessionStorage.removeItem('showShareTip')
this.getFollowStatus() this.getFollowStatus()
.then(isFollow => { .then(isFollow => {
!isFollow && this.remind('create', getParam('treasure_code')) !isFollow && this.remind('create', getParam('treasure_code'), 1)
}) })
} }
}) })
......
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