|
@@ -153,7 +153,13 @@ export default class HomePage extends Component {
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.log("获取GPS缓存-err", err);
|
|
console.log("获取GPS缓存-err", err);
|
|
|
})
|
|
})
|
|
|
|
|
+ }
|
|
|
|
|
+ if (isLogin()) {
|
|
|
this.getPinMessage()
|
|
this.getPinMessage()
|
|
|
|
|
+ } else {
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.getPinMessage()
|
|
|
|
|
+ }, 5000);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -525,6 +531,7 @@ export default class HomePage extends Component {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
getPinMessage() {
|
|
getPinMessage() {
|
|
|
|
|
+ if (!isLogin()) return;
|
|
|
apiBase.getPinMessage().then(res => {
|
|
apiBase.getPinMessage().then(res => {
|
|
|
if (res.data && res.data.pinTitle) {
|
|
if (res.data && res.data.pinTitle) {
|
|
|
const pin = {
|
|
const pin = {
|