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>
相关推荐
三少爷的鞋17 小时前
Main-safe、非阻塞与结构化并发,才是协程架构的核心
android
黑科技iOS上架19 小时前
iOS4.3合规自测手段:二进制分析
flutter·ios·cocoa·审核
Escalating_xu1 天前
【MySQL】事务管理(上):从 ACID 到提交回滚,把一次转账真正做完整
android·数据库·mysql
StarsGreen1 天前
dumpsys gfxinfo数据信息分析方法
android
好的佩奇1 天前
蓝牙之 GATT 数据模型
android·flutter·蓝牙
Android小码家1 天前
Systemui和Launcher是如何无限重启
android·framework
网易易盾2 天前
iOS 设备环境核验接入实践:从特征扫描到运行时完整性识别
ios
GY-932 天前
【Android】WorkManager
android
fatiaozhang95272 天前
开心电视助手极速版-版本9.6-新增安卓平台版本
android·开心电视助手极速版·版本9.6
普通人62 天前
uniapp鸿蒙开发完整指南
华为·uni-app·harmonyos