From dc69d60e0a2990b0b0dedcc00aea30f3a2665b3c Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Wed, 13 Oct 2021 09:27:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8C=E5=AE=9E=E5=BD=95=E5=85=A5=E7=9B=B8?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 7 +++ pages/index/index.js | 4 ++ pages/index/index.wxml | 2 +- subpages/information/pages/index/index.js | 69 +++++++++++++++++++++ subpages/information/pages/index/index.json | 3 + subpages/information/pages/index/index.wxml | 3 + subpages/information/pages/index/index.wxss | 1 + 7 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 subpages/information/pages/index/index.js create mode 100644 subpages/information/pages/index/index.json create mode 100644 subpages/information/pages/index/index.wxml create mode 100644 subpages/information/pages/index/index.wxss diff --git a/app.json b/app.json index e08e080..3629731 100644 --- a/app.json +++ b/app.json @@ -79,6 +79,13 @@ "pages/index/index", "pages/historyDetail/historyDetail" ] + }, + { + "root": "subpages/information", + "name": "information", + "pages": [ + "pages/index/index" + ] } ], "preloadRule": { diff --git a/pages/index/index.js b/pages/index/index.js index e33f004..af6c3d3 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -224,6 +224,10 @@ Page({ this.toPlugin() } else if (navCode == 'wgy_02') { this.toWanggeyuan() + } else if (navCode.indexOf('plugin-h5') != -1) { // 如果包含plugin-h5 说明是h5 页面 + wx.navigateTo({ + url: `/subpages/information/pages/index/index?url=`+encodeURIComponent(e.currentTarget.dataset.remark) + }) } break default: diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 5a76079..b0fa555 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -59,7 +59,7 @@ {{itemPanel.mainLabel}} - + {{itemChild.label}} diff --git a/subpages/information/pages/index/index.js b/subpages/information/pages/index/index.js new file mode 100644 index 0000000..75ab2dc --- /dev/null +++ b/subpages/information/pages/index/index.js @@ -0,0 +1,69 @@ +// subpages/integralCentre/pages/eshop/eshop.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + webUrl: '' + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + webUrl: `${decodeURIComponent(options.url)}&Authorization=${wx.getStorageSync('token')}` + }) + // console.log(this.data.webUrl) + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/subpages/information/pages/index/index.json b/subpages/information/pages/index/index.json new file mode 100644 index 0000000..8835af0 --- /dev/null +++ b/subpages/information/pages/index/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/subpages/information/pages/index/index.wxml b/subpages/information/pages/index/index.wxml new file mode 100644 index 0000000..58250fb --- /dev/null +++ b/subpages/information/pages/index/index.wxml @@ -0,0 +1,3 @@ + + + diff --git a/subpages/information/pages/index/index.wxss b/subpages/information/pages/index/index.wxss new file mode 100644 index 0000000..a60d321 --- /dev/null +++ b/subpages/information/pages/index/index.wxss @@ -0,0 +1 @@ +/* subpages/information/pages/index/index.wxss */ \ No newline at end of file