App.vue 755 B

123456789101112131415161718192021222324252627282930313233343536
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style lang="scss">
  15. /*每个页面公共css */
  16. @import "@/uni_modules/uview-ui/index.scss";
  17. @import "@/static/css/fui.css";
  18. @import "@/static/css/flex.css";
  19. @import "@/static/css/uflex.css";
  20. page{
  21. background: #fafafa;
  22. }
  23. .fiexd_box{
  24. position: fixed;
  25. bottom: var(--window-bottom);
  26. bottom: calc(constant(safe-area-inset-bottom));
  27. bottom: calc(env(safe-area-inset-bottom));
  28. height: calc(env(safe-area-inset-bottom) + 100rpx);
  29. padding-top: 16rpx;
  30. background-color: #fff;
  31. width: 100vw;
  32. left: 0;
  33. display: flex;
  34. }
  35. </style>