App.vue 902 B

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