App.vue 684 B

123456789101112131415161718192021222324252627282930313233343536
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log("App Launch");
  5. // #ifdef APP-PLUS
  6. // 禁止横屏
  7. plus.screen.lockOrientation("portrait-primary")
  8. // #endif
  9. },
  10. onShow: function() {
  11. console.log("App Show");
  12. },
  13. onHide: function() {
  14. console.log("App Hide");
  15. },
  16. onPageNotFound(res) {
  17. uni.navigateTo({
  18. url: '/pages/login/login',
  19. })
  20. },
  21. };
  22. </script>
  23. <style lang="scss">
  24. /*每个页面公共css */
  25. // @import "@/uni_modules/uni-scss/index.scss";
  26. // 设置整个项目的样式
  27. page {
  28. background-color: #f9fafb;
  29. * {
  30. box-sizing: border-box;
  31. }
  32. }
  33. </style>