|
@@ -301,8 +301,12 @@ import {
|
|
|
switchCompany,
|
|
|
getWeather,
|
|
|
} from '@/api/home.js';
|
|
|
-import { getCompanyDataByPhone, wxLogin , checkHasUserInfo, checkLoginNew } from '@/service/user.js';
|
|
|
-
|
|
|
+import {
|
|
|
+ getCompanyDataByPhone,
|
|
|
+ wxLogin,
|
|
|
+ checkHasUserInfo,
|
|
|
+ checkLoginNew,
|
|
|
+} from '@/service/user.js';
|
|
|
|
|
|
wepy.page({
|
|
|
store,
|
|
@@ -318,6 +322,7 @@ wepy.page({
|
|
|
showCard: {},
|
|
|
spaceParam: {},
|
|
|
weather: {},
|
|
|
+ iii: 1,
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState({
|
|
@@ -462,7 +467,7 @@ wepy.page({
|
|
|
console.log("home----onLoad");
|
|
|
checkLoginNew()
|
|
|
.then(() => {
|
|
|
- console.log("触发了")
|
|
|
+
|
|
|
checkHasUserInfo();
|
|
|
//获取项目list
|
|
|
getCompanyDataByPhone()
|
|
@@ -503,7 +508,8 @@ wepy.page({
|
|
|
},
|
|
|
onShow() {
|
|
|
console.log("home----onShow");
|
|
|
- // checkHasUserInfo();
|
|
|
+ this.loadData();
|
|
|
+
|
|
|
},
|
|
|
});
|
|
|
</script>
|