1 Star 0 Fork 2

郭睿明/UNID

forked from DEMO/UNID 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 915 Bytes
一键复制 编辑 原始数据 按行查看 历史
何宴阳 提交于 2021-02-15 16:23 . init projecy
<script>
import { getLst } from '@/common/api/index.js'
export default {
globalData: {
systemInfo: null
},
created() {
// 获取系统状态栏的高度
this.systemInfo = uni.getSystemInfoSync();
console.log('App created',this.systemInfo)
},
onLaunch: function() {
console.log('App Launch')
this.$store.commit('login')
setTimeout(() => {
console.log(this.$IM,'----- IM添加到原型链上 -----');
},2000)
},
onShow: function() {
console.log('App Show')
},
mounted() {
this.getInfo()
console.log('App Mounted')
},
methods: {
async getInfo() {
let res = await getLst()
console.log(res,'canhsu');
if (res.code === 0) {
console.log('接口请求成功');
}
}
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
@import url("./common/css/main.less");
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dandelight/unid.git
git@gitee.com:dandelight/unid.git
dandelight
unid
UNID
master

搜索帮助