App.vue 714 B

123456789101112131415161718192021222324252627282930313233
  1. <script setup>
  2. import { ref, computed, watch, nextTick } from "vue";
  3. import { onLoad, onShow, onLaunch } from "@dcloudio/uni-app";
  4. // onLoad 接受 A 页面传递的参数
  5. onLoad((option) => {
  6. });
  7. onShow(() => {
  8. // console.log("app 页面 onShow");
  9. });
  10. onLaunch(async () => {
  11. // console.log("app 页面 onLaunch");
  12. });
  13. </script>
  14. <style lang="scss">
  15. @import "static/css/style.scss";
  16. @import "static/css/base.css";
  17. // @import "@/uni_modules/uview-plus/index.scss";
  18. // @import "static/iconfont/iconfont.css";
  19. /* 隐藏滚动条,但依旧具备可以滚动的功能 */
  20. .uni-scroll-view::-webkit-scrollbar {
  21. display: none;
  22. }
  23. ::-webkit-scrollbar {
  24. width: 0;
  25. height: 0;
  26. color: transparent;
  27. }
  28. </style>