mall-uniapp/App.vue

37 lines
708 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<script setup>
import { onLaunch, onShow, onError } from '@dcloudio/uni-app';
import { ShoproInit } from './sheep';
onLaunch(() => {
// 延时隐藏原生导航栏
setTimeout(() => {
try {
uni.hideNavigationBar();
} catch (error) {
// 忽略该 error不一定存在
}
}, 200);
// 加载Shopro底层依赖
ShoproInit();
});
onShow(() => {
// #ifdef APP-PLUS
// 获取urlSchemes参数
const args = plus.runtime.arguments;
if (args) {
}
// 获取剪贴板
uni.getClipboardData({
success: (res) => {},
});
// #endif
});
</script>
<style lang="scss">
@import '@/sheep/scss/index.scss';
</style>