App.vue 746 B

123456789101112131415161718192021222324252627282930
  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. uni.setStorageSync('repairData','')
  12. uni.setStorageSync('rapidRepNext','')
  13. uni.removeStorageSync('pollingCode')
  14. console.log('App Hide')
  15. }
  16. }
  17. </script>
  18. <style lang="scss">
  19. /*每个页面公共css */
  20. @import '@/uni_modules/uni-scss/index.scss';
  21. /* #ifndef APP-NVUE */
  22. @import '@/static/customicons.css';
  23. /* #endif */
  24. // 自定义公共样式
  25. @import '@/static/scss/common.scss';
  26. // 字体图标
  27. @import '@/static/font/iconfont.css';
  28. </style>