From 6ae244338e3a8a728e251191b1290eb01456a7ed Mon Sep 17 00:00:00 2001
From: liudan <18634735655@163.com>
Date: Tue, 27 Jun 2023 22:28:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package-lock.json | 2 +-
pages.json | 6 ++++++
pages/index/index.vue | 10 +++++++++-
pages/webview/webview.vue | 23 +++++++++++++++++++++++
4 files changed, 39 insertions(+), 2 deletions(-)
create mode 100644 pages/webview/webview.vue
diff --git a/package-lock.json b/package-lock.json
index 9cf78ff..e81c3d6 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "lxwx",
- "version": "1.0.0",
+ "version": "4.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/pages.json b/pages.json
index 4efe212..3ca6f27 100644
--- a/pages.json
+++ b/pages.json
@@ -109,6 +109,12 @@
{
"navigationStyle": "custom"
}
+ },{
+ "path" : "pages/webview/webview",
+ "style" :
+ {
+ "navigationStyle": "custom"
+ }
}
],
"globalStyle": {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index f221c54..17efb04 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -77,7 +77,15 @@
methods: {
bannerHandle(index){
console.log(index)
- window.location.href = this.bannerAdvList[index].advurl
+ // #ifdef APP-PLUS
+ console.log("ooo")
+ uni.navigateTo({
+ url:'/pages/webview/webview?item='+this.bannerAdvList[index].advurl
+ })
+ // #endif
+ // #ifdef H5
+ window.location.href = this.bannerAdvList[index].advurl;
+ // #endif
},
click(name) {
uni.navigateTo({
diff --git a/pages/webview/webview.vue b/pages/webview/webview.vue
new file mode 100644
index 0000000..a0b0fe5
--- /dev/null
+++ b/pages/webview/webview.vue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file