diff --git a/hybrid/html/local.html b/hybrid/html/local.html
new file mode 100644
index 0000000000000000000000000000000000000000..e379a6d44658c688a049119eeb4c80383a0ded58
--- /dev/null
+++ b/hybrid/html/local.html
@@ -0,0 +1,112 @@
+
+
+
+
+
+ 本地网页
+
+
+
+ web-view 组件加载本地 html 示例,仅在 App 环境下生效。点击下列按钮,跳转至其它页面。
+
+
+
+
+
+
+
+ 网页向应用发送消息。注意:小程序端应用会在此页面后退时接收到消息。
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index ac75be13872a3dbdd359b747bcf2ff571e249509..1ad5c2d71616b36c87a535231d4b8b12355654dd 100644
--- a/pages.json
+++ b/pages.json
@@ -84,6 +84,18 @@
"navigationBarTitleText": "image"
}
},
+ {
+ "path": "pages/component/web-view/web-view",
+ "style": {
+ "navigationBarTitleText": "web-view"
+ }
+ },
+ {
+ "path": "pages/component/web-view-local/web-view-local",
+ "style": {
+ "navigationBarTitleText": "web-view-local"
+ }
+ },
{
"path": "pages/tabBar/API/API",
"style": {
diff --git a/pages/component/web-view-local/web-view-local.uvue b/pages/component/web-view-local/web-view-local.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..0309df1f37f1b031fbccd79b1b17f7de00a82567
--- /dev/null
+++ b/pages/component/web-view-local/web-view-local.uvue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/component/web-view/web-view.uvue b/pages/component/web-view/web-view.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..c041fd9421af23cf513333dbb9fe5c8bb6c21267
--- /dev/null
+++ b/pages/component/web-view/web-view.uvue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabBar/component/component.uvue b/pages/tabBar/component/component.uvue
index 00450e9290c64993a1bf890051b68092371ebf51..4e61f10504ef992249c2fd5c438e771516b5202f 100644
--- a/pages/tabBar/component/component.uvue
+++ b/pages/tabBar/component/component.uvue
@@ -190,12 +190,12 @@
pages: [
{
name: '网络网页',
- enable: false,
+ enable: true,
url: '/pages/component/web-view/web-view'
},
{
name: '本地网页',
- enable: false,
+ enable: true,
url: '/pages/component/web-view-local/web-view-local'
}
] as Page[]