mall-uniapp/App.vue

40 lines
775 B
Vue
Raw Permalink Normal View History

2023-12-13 03:35:02 +00:00
<script setup>
2023-12-19 15:10:50 +00:00
import { onLaunch, onShow, onError } from '@dcloudio/uni-app';
import { ShoproInit } from './sheep';
onLaunch(() => {
// 隐藏原生导航栏 使用自定义底部导航
uni.hideTabBar();
// 加载Shopro底层依赖
ShoproInit();
});
onError((err) => {
console.log('AppOnError:', err);
});
onShow((options) => {
// #ifdef APP-PLUS
// 获取urlSchemes参数
const args = plus.runtime.arguments;
if (args) {
2024-01-03 06:40:49 +00:00
}
2023-12-19 15:10:50 +00:00
// 获取剪贴板
uni.getClipboardData({
success: (res) => { },
});
// #endif
// #ifdef MP-WEIXIN
// 确认收货回调结果
console.log(options,'options');
// #endif
});
2023-12-13 03:35:02 +00:00
</script>
<style lang="scss">
2023-12-19 15:10:50 +00:00
@import '@/sheep/scss/index.scss';
</style>