mall-uniapp/App.vue

42 lines
777 B
Vue
Raw Normal View History

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