App.vue 828 B

12345678910111213141516171819202122232425
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. uni.toast = (...args) => uni.showToast({ duration: 3333, title: args[0], icon: 'none' })
  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. @import 'common/style/main.scss'; //引入 ColorUI 组件库主样式
  17. @import 'common/style/icon.scss'; //引入 ColorUI 组件库图标样式
  18. @import 'common/style/animation.scss'; //引入 ColorUI 组件库动画样式
  19. page { //uniapp 中的 page 标签相当于 html 中的 body, 默认高度为 auto, 但是高度为 100% 更利于 app 布局,你也可以在 page 中设置一些全局样式,比如全局背景色
  20. height: 100%;
  21. background: #FFFFFF;
  22. color: $app-main-text-color;
  23. }
  24. </style>