西藏巴青项目

App.vue 658B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <script>
  2. import { syncUserOnLaunch } from '@/permission'
  3. export default {
  4. onLaunch() {
  5. syncUserOnLaunch().catch(() => {})
  6. },
  7. onShow() {
  8. console.log('App Show')
  9. },
  10. onHide() {
  11. console.log('App Hide')
  12. }
  13. }
  14. </script>
  15. <style lang="scss">
  16. @import 'uview-plus/index.scss';
  17. @import '@/styles/h5-layout.scss';
  18. /* Tab 页见 h5-layout;栈式详情页用页面内 scroll-view + detail-page.scss */
  19. /* #ifdef H5 */
  20. page {
  21. min-height: 100%;
  22. height: auto;
  23. box-sizing: border-box;
  24. background-color: #f0ebe5;
  25. }
  26. /* #endif */
  27. /* #ifndef H5 */
  28. page {
  29. height: 100%;
  30. min-height: 100%;
  31. background-color: #f0ebe5;
  32. }
  33. /* #endif */
  34. </style>