2 Star 0 Fork 1

中科锐新(北京)科技有限公司/票务核销小程序

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
dongjiqiang 提交于 2024-10-30 14:26 +08:00 . 项目创建
<script>
import storage from '@/utils/storage'
export default {
onLaunch: function() {
let userInfo = uni.getStorageSync('userInfo') || null;
let token = uni.getStorageSync('token') || "";
this.$store.commit('setUserInfo', userInfo);
this.$store.commit('setToken', token);
// 网络状态监听
uni.onNetworkStatusChange(function(res) {
if (res.networkType == 'none' || res.networkType == '2g') {
uni.showToast({
title: '请检查网络连接',
icon: 'none', // "success", "loading", "none"
duration: 2000,
mask: false
})
}
})
// 检查更新
const updateManager = uni.getUpdateManager();
updateManager.onUpdateReady(function(res) {
updateManager.applyUpdate();
});
},
onShow: function() {
},
onHide: function() {
}
}
</script>
<style lang="scss">
@import "uview-ui/index.scss";
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wenlt2005/institutional-mini-program.git
git@gitee.com:wenlt2005/institutional-mini-program.git
wenlt2005
institutional-mini-program
票务核销小程序
master

搜索帮助