Before Width: | Height: | Size: 2.0 KiB |
@ -1,25 +0,0 @@
|
||||
<!DOCTYPE html> |
||||
<html lang="zh-CN"> |
||||
|
||||
<head> |
||||
<meta charset="UTF-8" /> |
||||
<script> |
||||
var __UniViewStartTime__ = Date.now(); |
||||
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || |
||||
CSS.supports('top: constant(a)')) |
||||
document.write( |
||||
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + |
||||
(coverSupport ? ', viewport-fit=cover' : '') + '" />') |
||||
</script> |
||||
<title>View</title> |
||||
<link rel="stylesheet" href="view.css" /> |
||||
</head> |
||||
|
||||
<body> |
||||
<div id="app"></div> |
||||
<script src="__uniappes6.js"></script> |
||||
<script src="view.umd.min.js"></script> |
||||
<script src="app-view.js"></script> |
||||
</body> |
||||
|
||||
</html> |
@ -1 +0,0 @@
|
||||
(function(e){function r(r){for(var n,l,i=r[0],p=r[1],a=r[2],c=0,s=[];c<i.length;c++)l=i[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);f&&f(r);while(s.length)s.shift()();return u.push.apply(u,a||[]),t()}function t(){for(var e,r=0;r<u.length;r++){for(var t=u[r],n=!0,i=1;i<t.length;i++){var p=t[i];0!==o[p]&&(n=!1)}n&&(u.splice(r--,1),e=l(l.s=t[0]))}return e}var n={},o={"app-config":0},u=[];function l(r){if(n[r])return n[r].exports;var t=n[r]={i:r,l:!1,exports:{}};return e[r].call(t.exports,t,t.exports,l),t.l=!0,t.exports}l.m=e,l.c=n,l.d=function(e,r,t){l.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},l.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,r){if(1&r&&(e=l(e)),8&r)return e;if(4&r&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(l.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var n in e)l.d(t,n,function(r){return e[r]}.bind(null,n));return t},l.n=function(e){var r=e&&e.__esModule?function(){return e["default"]}:function(){return e};return l.d(r,"a",r),r},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l.p="/";var i=this["webpackJsonp"]=this["webpackJsonp"]||[],p=i.push.bind(i);i.push=r,i=i.slice();for(var a=0;a<i.length;a++)r(i[a]);var f=p;t()})([]); |
Before Width: | Height: | Size: 673 B |
@ -1,88 +0,0 @@
|
||||
<!DOCTYPE html> |
||||
<html> |
||||
<head> |
||||
<meta charset="utf-8" /> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
||||
<title>本地网页</title> |
||||
<style type="text/css"> |
||||
.btn { |
||||
display: block; |
||||
margin: 20px auto; |
||||
padding: 5px; |
||||
background-color: #007aff; |
||||
border: 0; |
||||
color: #ffffff; |
||||
height: 40px; |
||||
width: 200px; |
||||
} |
||||
|
||||
.btn-red { |
||||
background-color: #dd524d; |
||||
} |
||||
|
||||
.btn-yellow { |
||||
background-color: #f0ad4e; |
||||
} |
||||
|
||||
.desc { |
||||
padding: 10px; |
||||
color: #999999; |
||||
} |
||||
</style> |
||||
</head> |
||||
<body> |
||||
<p class="desc">web-view 组件加载本地 html 示例,仅在 App 环境下生效。点击下列按钮,跳转至其它页面。</p> |
||||
<div class="btn-list"> |
||||
<button class="btn" type="button" data-action="navigateTo">navigateTo</button> |
||||
<button class="btn" type="button" data-action="redirectTo">redirectTo</button> |
||||
<button class="btn" type="button" data-action="navigateBack">navigateBack</button> |
||||
<button class="btn" type="button" data-action="reLaunch">reLaunch</button> |
||||
<button class="btn" type="button" data-action="switchTab">switchTab</button> |
||||
</div> |
||||
<p class="desc">网页向应用发送消息。注意:小程序端应用会在此页面后退时接收到消息。</p> |
||||
<div class="btn-list"> |
||||
<button class="btn btn-red" type="button" id="postMessage">postMessage</button> |
||||
</div> |
||||
<!-- uni 的 SDK --> |
||||
<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script> |
||||
<script type="text/javascript"> |
||||
document.addEventListener('UniAppJSBridgeReady', function() { |
||||
document.querySelector('.btn-list').addEventListener('click', function(evt) { |
||||
var target = evt.target; |
||||
if (target.tagName === 'BUTTON') { |
||||
var action = target.getAttribute('data-action'); |
||||
switch (action) { |
||||
case 'switchTab': |
||||
uni.switchTab({ |
||||
url: '/pages/tabBar/API/API' |
||||
}); |
||||
break; |
||||
case 'reLaunch': |
||||
uni.reLaunch({ |
||||
url: '/pages/tabBar/API/API' |
||||
}); |
||||
break; |
||||
case 'navigateBack': |
||||
uni.navigateBack({ |
||||
delta: 1 |
||||
}); |
||||
break; |
||||
default: |
||||
uni[action]({ |
||||
url: '/pages/component/button/button' |
||||
}); |
||||
break; |
||||
} |
||||
} |
||||
}); |
||||
document.querySelector("#postMessage").addEventListener('click', function() { |
||||
uni.postMessage({ |
||||
data: { |
||||
action: 'message' |
||||
} |
||||
}); |
||||
}) |
||||
}); |
||||
</script> |
||||
</body> |
||||
</html> |
@ -1 +0,0 @@
|
||||
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__EB9B743","name":"huixiang","version":{"name":"1.0.0","code":"100"},"description":"应用描述","launch_path":"","developer":{"name":"","email":"","url":""},"permissions":{"OAuth":{},"Payment":{},"Push":{},"Share":{},"Speech":{},"VideoPlayer":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"target":"id:1","autoclose":true,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview","render":"always","uniNView":{"path":"pages/tabBar/component/component.js"}},"statusbar":{"immersed":"supportedDevice","style":"light","background":"#007AFF"},"usingComponents":true,"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","compilerVersion":3,"allowsInlineMediaPlayback":true,"safearea":{"background":"#F8F8F8","bottom":{"offset":"auto"}},"uni-app":{"compilerVersion":"3.1.18","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"fast"},"tabBar":{"color":"#7A7E83","selectedColor":"#007AFF","borderStyle":"rgba(0,0,0,0.4)","backgroundColor":"#F8F8F8","list":[{"pagePath":"pages/tabBar/component/component","iconPath":"static/component.png","selectedIconPath":"static/componentHL.png","text":"内置组件"},{"pagePath":"pages/tabBar/API/API","iconPath":"static/api.png","selectedIconPath":"static/apiHL.png","text":"接口"},{"pagePath":"pages/tabBar/extUI/extUI","iconPath":"static/extui.png","selectedIconPath":"static/extuiHL.png","text":"扩展组件"},{"pagePath":"pages/tabBar/template/template","iconPath":"static/template.png","selectedIconPath":"static/templateHL.png","text":"模板"}],"height":"50px","child":["lauchwebview"]}},"screenOrientation":["portrait-primary","portrait-secondary"]} |
Before Width: | Height: | Size: 774 B |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 470 B |
Before Width: | Height: | Size: 511 B |
Before Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 365 B |
Before Width: | Height: | Size: 587 B |
Before Width: | Height: | Size: 565 B |
Before Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 3.9 KiB |