App.vue 623 B

123456789101112131415161718192021222324252627282930313233
  1. <script setup>
  2. import { onLaunch, onShow, onError } from '@dcloudio/uni-app';
  3. import { ShoproInit } from './sheep';
  4. onLaunch(() => {
  5. // 隐藏原生导航栏 使用自定义底部导航
  6. uni.hideTabBar({
  7. fail: () => {},
  8. });
  9. // 加载Shopro底层依赖
  10. ShoproInit();
  11. });
  12. onShow(() => {
  13. // #ifdef APP-PLUS
  14. // 获取urlSchemes参数
  15. const args = plus.runtime.arguments;
  16. if (args) {
  17. }
  18. // 获取剪贴板
  19. uni.getClipboardData({
  20. success: (res) => {},
  21. });
  22. // #endif
  23. });
  24. </script>
  25. <style lang="scss">
  26. @import '@/sheep/scss/index.scss';
  27. </style>