| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- <script>
- import { syncUserOnLaunch } from '@/permission'
-
- export default {
- onLaunch() {
- syncUserOnLaunch().catch(() => {})
- },
- onShow() {
- console.log('App Show')
- },
- onHide() {
- console.log('App Hide')
- }
- }
- </script>
-
- <style lang="scss">
- /* 须写在首行:与 uni.scss 中的 theme 配合,否则 index 内 $u-* 未定义 */
- @import 'uview-plus/index.scss';
- @import '@/styles/app-lang.scss';
-
- /* 全屏高度链:H5 若写死 page height:100%,易与原生 tabBar 抢高度导致底栏「看不见」 */
- /* #ifdef H5 */
- page {
- min-height: 100%;
- height: auto;
- box-sizing: border-box;
- background-color: #f0ebe5;
- }
- /* #endif */
-
- /* #ifndef H5 */
- page {
- height: 100%;
- min-height: 100%;
- background-color: #f0ebe5;
- }
- /* #endif */
- </style>
-
|