mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
26 lines
513 B
Vue
26 lines
513 B
Vue
<script>
|
|
//app.js
|
|
const context = require("./context/Java110Context.js");
|
|
const loginFactory = context.factory.login;
|
|
const userFactory = context.factory.user;
|
|
|
|
export default {
|
|
// 小程序启动生命周期
|
|
onLaunch: function () {
|
|
let that = this; // 检查登录状态
|
|
|
|
|
|
//loginFactory.checkLoginStatus(); // 获取用户地理位置
|
|
|
|
userFactory.getUserLocation();
|
|
},
|
|
// app全局数据
|
|
globalData: {
|
|
userInfo: null
|
|
},
|
|
methods: {}
|
|
};
|
|
</script>
|
|
<style>
|
|
@import "./app.css";
|
|
</style> |