1 Star 0 Fork 30

ydh761213 / 社交论坛(Uni-app+uView)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
MrThinco 提交于 2022-10-09 22:44 . fix: 优化微信小程序
<script>
export default {
onLaunch: function() {
console.log('App Launch')
// 网络监听
this.$tool.getNetwork()
this.$tool.onNetwork()
// #ifdef APP-PLUS
// 检测更新
// this.$tool.update()
// 获取网络状态
// #endif
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/* 每个页面公共css */
/* uViewUI */
@import "@/uni_modules/uview-ui/index.scss";
/* uni-ui库 */
// @import '/static/css/uni.css';
/* 图标库 */
@import "/static/css/iconfont.css";
/* 动画库 */
@import "/static/css/animate.css";
/* 样式库 */
@import '/static/css/thinco.scss';
/* #ifdef H5 */
/* 针对h5页面取消返回按钮 */
uni-page[data-page="pages/paper/friend"] .uni-page-head-hd {
display: none;
}
/* #endif */
// 隐藏小程序滚动条(无用)
/* #ifdef MP-WEIXIN */
::-webkit-scrollbar {
display: none;
}
/* #endif */
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ydh761213/share-bbs.git
git@gitee.com:ydh761213/share-bbs.git
ydh761213
share-bbs
社交论坛(Uni-app+uView)
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891