mui和uniapp跳转外部链接

Hbuilder开发的app,会涉及到跳转H5页面

mui

typescript 复制代码
<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8">
  <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  <link rel="stylesheet" href="css/mui.min.css" />
  <link rel="stylesheet" href="css/common/style.css" />
  <title></title>
 </head>
 <body>
  <header id="header" class="mui-bar mui-bar-nav">
      <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
      <h1 class="mui-title" id="title"></h1>
  </header>
  <script type="text/javascript" src="js/mui.min.js"></script>
  <script>
   mui.init();
   mui.plusReady(function () {
    var self = plus.webview.currentWebview();
    var title = self.title;
    document.getElementById("title").innerText = title;
    var url = "https://nt.zjrcbank.com/openplatformgw/app/openplatform/HN/index.html#/entry";
       var embed=plus.webview.create(url,'embed',{top:'44px',bottom:'0px'});
    var ws = plus.webview.currentWebview();
    ws.append(embed); 
    embed.addEventListener('loading',function(){       //当页面加载时
        plus.nativeUI.showWaiting('',{style:'black',modal:false,background:'rgba(0,0,0,0)'});
    },false);
    embed.addEventListener('loaded',function(){       //当页面加载完成时
        plus.nativeUI.closeWaiting();
    },false);
   })
  </script>
 </body>
</html>

uniapp

官网文档:web-view

typescript 复制代码
<web-view :src="webUrl" ></web-view>
相关推荐
带着梦想扬帆启航1 天前
UniApp 全局使用字体教程
css·uni-app
Best1 天前
uniapp 微信小程序记录
微信小程序·小程序·uni-app
shykevin1 天前
uni-app x开发商城系统,商品列表点击跳转至商品详情页
windows·uni-app
蜕变菜鸟1 天前
PC网站和uniapp安卓APP、H5接入支付宝支付
uni-app
狼性书生1 天前
uniapp实现的Tab 选项卡组件模板
前端·uni-app·vue·组件·插件
糖糖2461 天前
uniapp + uni-ui + vue3转cli
uni-app
多秋浮沉度华年1 天前
uni-app开发app移动端使用ucharts自定义标签栏Tooltip
uni-app
2501_916007471 天前
手机使用过的痕迹能查到吗?完整查询指南与步骤
android·ios·智能手机·小程序·uni-app·iphone·webview
Amewin2 天前
在vue3+uniapp+vite中挂载全局属性方法
javascript·vue.js·uni-app
2501_915106322 天前
App HTTPS 抓包 工程化排查与工具组合实战
网络协议·ios·小程序·https·uni-app·php·iphone