| @@ -13,6 +13,7 @@ | |||||
| "pages/topicDetail/index", | "pages/topicDetail/index", | ||||
| "pages/main/index", | "pages/main/index", | ||||
| "pages/index/searchbar/index", | "pages/index/searchbar/index", | ||||
| "pages/index/detail/index", | |||||
| "pages/bargain/bargainDatail/bargainDatail", | "pages/bargain/bargainDatail/bargainDatail", | ||||
| "pages/bargain/bargain", | "pages/bargain/bargain", | ||||
| "pages/cardorder/index/index", | "pages/cardorder/index/index", | ||||
| @@ -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 () { | |||||
| } | |||||
| }) | |||||
| @@ -0,0 +1,5 @@ | |||||
| { | |||||
| "navigationBarTitleText": "券详情", | |||||
| "backgroundColor": "#f4f4f4", | |||||
| "enablePullDownRefresh": true | |||||
| } | |||||
| @@ -0,0 +1,4 @@ | |||||
| <!--pages/index/detail/index.wxml--> | |||||
| <view> | |||||
| </view> | |||||
| @@ -0,0 +1 @@ | |||||
| /* pages/index/detail/index.wxss */ | |||||
| @@ -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) { | phone: function (e) { | ||||
| let that = this; | let that = this; | ||||
| if (e.currentTarget.dataset.merchantlinkphone) { | if (e.currentTarget.dataset.merchantlinkphone) { | ||||