App.vue 871 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
  5. console.log('App Launch')
  6. },
  7. onShow: function() {
  8. console.log('App Show')
  9. },
  10. onHide: function() {
  11. console.log('App Hide')
  12. }
  13. }
  14. </script>
  15. <style lang="scss">
  16. /*每个页面公共css */
  17. @import "@/uni_modules/uview-ui/index.scss";
  18. @import '@/uni_modules/uni-scss/index.scss';
  19. // @import '/static/icons/iconfont.css';
  20. @import '@/static/styles/index.scss';
  21. /* #ifndef APP-NVUE */
  22. @import '@/static/customicons.css';
  23. // 设置整个项目的背景色
  24. page {
  25. background-color: #f5f5f5;
  26. }
  27. /* #endif */
  28. .example-info {
  29. font-size: 14px;
  30. color: #333;
  31. padding: 10px;
  32. }
  33. .footer{
  34. display:fixed;
  35. bottom:40px;
  36. text-align:center;
  37. }
  38. .flex{
  39. display:flex;
  40. }
  41. </style>