更新了我的页面第一次进入缺少商家入驻
This commit is contained in:
parent
494427d94c
commit
da010bf09d
@ -249,7 +249,8 @@
|
|||||||
setVisit
|
setVisit
|
||||||
} from '@/api/user.js';
|
} from '@/api/user.js';
|
||||||
import {
|
import {
|
||||||
getVersion
|
getVersion,
|
||||||
|
getconfig
|
||||||
} from "@/api/public";
|
} from "@/api/public";
|
||||||
import {
|
import {
|
||||||
orderData
|
orderData
|
||||||
@ -437,6 +438,7 @@
|
|||||||
let curRoute = routes[routes.length - 1].route
|
let curRoute = routes[routes.length - 1].route
|
||||||
this.activeRouter = '/' + curRoute
|
this.activeRouter = '/' + curRoute
|
||||||
this.getNav();
|
this.getNav();
|
||||||
|
this.getConfigData();
|
||||||
if (that.isLogin) {
|
if (that.isLogin) {
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.orderNum();
|
this.orderNum();
|
||||||
@ -677,6 +679,13 @@
|
|||||||
this.openAuto()
|
this.openAuto()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 获取配置
|
||||||
|
getConfigData() {
|
||||||
|
getconfig().then(res => {
|
||||||
|
uni.$emit('update', res.data)
|
||||||
|
this.$store.commit('GLOBAL_DATA', res.data);
|
||||||
|
}).catch(err => {});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user