使用uni.navigateTo
javascript
uni.navigateTo({
url: `/intelligentEntry/intelligentEntry/APPnewbieGuide`
});
1.在pages.json 文件中 加入你的路径
javascript
{
"path": "intelligentEntry/intelligentEntry/APPnewbieGuide",// app弹窗
"style": {
"navigationStyle": "custom",
"app-plus": {
"animationType": "fade-in",
"background": "transparent",
"popGesture": "none",
"titleNView": false,
"scrollIndicator": "none",
"disableSwipeBack": true
}
}
},
弹窗组件 DeviceNot
javascript
<template>
<DeviceNot @unidenLinkClick="handleManual" @unidenClose="handleClose" />
</template>
<script setup lang="ts">
import { getCurrentInstance } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import DeviceNot from './DeviceNot.vue';
// 去手动入库
function handleManual() {
uni.navigateBack();
setTimeout(()=>{
uni.$emit('popupShow');
},120)
}
// 点遮罩关闭
function handleClose() {
uni.navigateBack();
}
</script>
<!-- 全局透明(App 端页面用) -->
<style>
page {
background: transparent;
}
body {
background: transparent;
}
</style>