App.vue 737 B

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