App.vue 850 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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((options) => {
  14. console.log('调用全局的show')
  15. // #ifdef APP-PLUS
  16. // 获取urlSchemes参数
  17. const args = plus.runtime.arguments;
  18. if (args) {
  19. }
  20. // 获取剪贴板
  21. uni.getClipboardData({
  22. success: (res) => { },
  23. });
  24. // #endif
  25. // #ifdef MP-WEIXIN
  26. // 确认收货回调结果
  27. console.log(options,'options');
  28. // #endif
  29. });
  30. </script>
  31. <style lang="scss">
  32. @import '@/sheep/scss/index.scss';
  33. @import '@/static/iconfont.css'
  34. </style>