App.vue 820 B

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