App.vue 911 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch');
  5. // if (!this.$store.state.userLoginFlag) {
  6. // uni.reLaunch({
  7. // url: '/pages/index/index',
  8. // })
  9. // }
  10. },
  11. onShow: function() {
  12. console.log('App onShow');
  13. },
  14. onHide: function() {
  15. console.log('App Hide');
  16. }
  17. };
  18. </script>
  19. <style lang="scss">
  20. @import "uview-ui/index.scss";
  21. /* uni图标库 */
  22. @import '/common/iconfont.css';
  23. /* 公共样式库 */
  24. @import '/common/global.css';
  25. /* 解决头条小程序组件内引入字体不生效的问题 */
  26. /* #ifdef MP-TOUTIAO */
  27. @font-face {
  28. font-family: uniicons;
  29. src: url('/iconFont/uni.ttf');
  30. }
  31. page {
  32. width: 100%;
  33. height: 100%;
  34. background-color: #42349A;
  35. }
  36. /* #endif */
  37. ::-webkit-scrollbar {
  38. display: none;
  39. width: 0 !important;
  40. height: 0 !important;
  41. -webkit-appearance: none;
  42. // background: transparent;
  43. }
  44. </style>