3
0

App.vue 696 B

123456789101112131415161718192021222324252627282930313233
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. uni.loadFontFace({
  5. family: 'SmileySans-Oblique-2',
  6. source: 'url("https://tp5.rungyun.cn//fonts/list/SmileySans-Oblique-2.ttf")',
  7. success() {
  8. console.log('success')
  9. }
  10. })
  11. },
  12. onShow: function() {
  13. console.log('App Show')
  14. },
  15. onHide: function() {
  16. console.log('App Hide')
  17. }
  18. }
  19. </script>
  20. <style lang="scss">
  21. /*每个页面公共css */
  22. @import "@/uni_modules/uview-plus/index.scss";
  23. @import "@/static/iconfont/iconfont.scss";
  24. @import "@/static/iconfont/iconfont_color.scss";
  25. @import '@/static/css/common.scss';
  26. page {
  27. background-color: #f5f5f5;
  28. }
  29. </style>