App.vue 720 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <script setup>
  2. import { onLaunch, onShow, onError } from '@dcloudio/uni-app';
  3. import { ShoproInit } from './sheep';
  4. onLaunch(() => {
  5. // 延时隐藏原生导航栏
  6. setTimeout(() => {
  7. uni.hideTabBar();
  8. }, 200);
  9. // 加载Shopro底层依赖
  10. ShoproInit();
  11. });
  12. onShow((options) => {
  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. // #ifdef MP-WEIXIN
  24. // 确认收货回调结果
  25. console.log(options, 'options');
  26. // #endif
  27. });
  28. </script>
  29. <style lang="scss">
  30. @import '@/sheep/scss/index.scss';
  31. @import "@/uni_modules/vk-uview-ui/index.scss";
  32. </style>