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