App.vue 660 B

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