uniapp app嵌套webview 弹窗方式

使用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>
相关推荐
好的佩奇15 小时前
Dart 之扩展方法
android·flutter·dart
三少爷的鞋17 小时前
换个思路理解:非阻塞挂起
android
好的佩奇17 小时前
蓝牙之经典蓝牙
android·flutter·蓝牙
传奇开心果编程20 小时前
【Flutter踩坑排雷】第19课:路由硬编码坑|字符串路由书写错误,页面跳转失败排查
android·flutter·ios·移动开发·跨平台·ui框架·声明式ui
微小的鱼1 天前
Linux的渲染与显示系统链路
android·java·linux
茶底世界之下1 天前
雨后街口的斑马线:用 Awaking 把颜色让给光与步伐
ios·app·产品
道尔柯南1 天前
C++ string 类详解:从常用接口到深拷贝,彻底掌握字符串处理
android·java·c++
唐诺1 天前
5、Android JNI 动态注册中的“签名“详解
android·jni
zhaoshuzhaoshu2 天前
Android 系统启动与调试中的日志抓取方式全解析
android
雨声不在2 天前
android 动画掉帧
android