Commit c8d1a8aa by xuzhenghua

id

parent dcb0f750
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -33,11 +33,15 @@ class App extends Component {
pathnameBlacklist = ['/country', '/passport']
firstLoad = true
// componentWillMount(){
// if (!getParam('version')) {
// this.getqimoClientId()
// }
// }
componentWillMount(){
if (!getParam('version')) {
if(!localStorage.getItem('qimoClientIdedu')){
this.getqimoClientId()
} else {
window.qimoClientId = localStorage.getItem('qimoClientIdedu')
}
}
}
componentDidMount() {
this.umengStatistic()
//平台信息
......@@ -286,6 +290,7 @@ class App extends Component {
.then(res => {
if (res.data.code == 200) {
window.qimoClientId = res.data.data.userId
localStorage.setItem('qimoClientIdedu', res.data.data.userId)
}
})
.catch(function () {
......
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