App.vue 629 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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>
  15. /*每个页面公共css */
  16. @import "colorui/main.css";
  17. @import "colorui/icon.css";
  18. @import "static/iconfont/iconfont.css";
  19. /* 解决头条小程序组件内引入字体不生效的问题 */
  20. /* #ifdef MP-TOUTIAO */
  21. @font-face {
  22. font-family: uniicons;
  23. src: url('/static/uni.ttf');
  24. }
  25. /* #endif */
  26. </style>
  27. <style lang="scss">
  28. @import "common/common.scss";
  29. </style>