App.vue 700 B

12345678910111213141516171819202122232425262728293031323334
  1. <script>
  2. export default {
  3. onLaunch: function() {},
  4. onShow: function() {
  5. console.log('App Show');
  6. },
  7. onHide: function() {
  8. console.log('App Hide');
  9. }
  10. };
  11. </script>
  12. <style lang="scss">
  13. @import 'uview-ui/index.scss';
  14. page {
  15. background-color: white;
  16. }
  17. /**uniapp中uni.showModal H5中被挡住的解决方案*/
  18. uni-modal {
  19. z-index: 19999 !important;
  20. }
  21. /**去掉官方button边框线*/
  22. button::after { border: none }
  23. /**挂载iconfont图表*/
  24. @font-face {
  25. font-family: 'iconfont';
  26. src: url('https://at.alicdn.com/t/font_2816842_prqpn28m9t.ttf?t=1631771735015') format('truetype');
  27. /* src: url('~@/static/font/iconfont.ttf') format('truetype'); */
  28. }
  29. .icon {
  30. font-family: iconfont;
  31. }
  32. </style>