From 6b3398026f0e13ae0eb40de31ec467bd631cbce3 Mon Sep 17 00:00:00 2001 From: luqc Date: Mon, 22 Apr 2019 15:13:01 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=95=86=E6=88=B7=E8=AF=A6=E6=83=85][?= =?UTF-8?q?=E6=96=B0=E5=A2=9E]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 1 + pages/index/detail/index.js | 66 ++++++++++++++++++++++++++++++++++ pages/index/detail/index.json | 5 +++ pages/index/detail/index.wxml | 4 +++ pages/index/detail/index.wxss | 1 + pages/index/searchbar/index.js | 7 ++++ 6 files changed, 84 insertions(+) create mode 100644 pages/index/detail/index.js create mode 100644 pages/index/detail/index.json create mode 100644 pages/index/detail/index.wxml create mode 100644 pages/index/detail/index.wxss diff --git a/app.json b/app.json index e4e634e..4e4a6d9 100644 --- a/app.json +++ b/app.json @@ -13,6 +13,7 @@ "pages/topicDetail/index", "pages/main/index", "pages/index/searchbar/index", + "pages/index/detail/index", "pages/bargain/bargainDatail/bargainDatail", "pages/bargain/bargain", "pages/cardorder/index/index", diff --git a/pages/index/detail/index.js b/pages/index/detail/index.js new file mode 100644 index 0000000..fa95348 --- /dev/null +++ b/pages/index/detail/index.js @@ -0,0 +1,66 @@ +// pages/index/detail/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/index/detail/index.json b/pages/index/detail/index.json new file mode 100644 index 0000000..2d6e0bb --- /dev/null +++ b/pages/index/detail/index.json @@ -0,0 +1,5 @@ +{ + "navigationBarTitleText": "券详情", + "backgroundColor": "#f4f4f4", + "enablePullDownRefresh": true +} \ No newline at end of file diff --git a/pages/index/detail/index.wxml b/pages/index/detail/index.wxml new file mode 100644 index 0000000..916e55b --- /dev/null +++ b/pages/index/detail/index.wxml @@ -0,0 +1,4 @@ + + + + diff --git a/pages/index/detail/index.wxss b/pages/index/detail/index.wxss new file mode 100644 index 0000000..381a297 --- /dev/null +++ b/pages/index/detail/index.wxss @@ -0,0 +1 @@ +/* pages/index/detail/index.wxss */ \ No newline at end of file diff --git a/pages/index/searchbar/index.js b/pages/index/searchbar/index.js index 7f0afac..6035c96 100644 --- a/pages/index/searchbar/index.js +++ b/pages/index/searchbar/index.js @@ -124,6 +124,13 @@ Page({ }); }) }, + // 跳往商户详情 + godetail: function (e) { + console.log(e) + wx.navigateTo({ + url: `/pages/order/detail/index?orderId=${e.currentTarget.dataset.id}` + }) + }, phone: function (e) { let that = this; if (e.currentTarget.dataset.merchantlinkphone) {