@@ -27,7 +27,8 @@ | |||||
"pages/passCar/couponList/couponList", | "pages/passCar/couponList/couponList", | ||||
"pages/passCar/choicecoupon/choicecoupon", | "pages/passCar/choicecoupon/choicecoupon", | ||||
"pages/passCar/couponDetail/couponDetail", | "pages/passCar/couponDetail/couponDetail", | ||||
"pages/managelicenseplate/managelicenseplate" | |||||
"pages/managelicenseplate/managelicenseplate", | |||||
"pages/payrule/payrule" | |||||
], | ], | ||||
"tabBar": { | "tabBar": { | ||||
"color": "#9F9F9F", | "color": "#9F9F9F", | ||||
@@ -48,6 +48,15 @@ Page({ | |||||
url: '/pages/passCar/couponList/couponList', | url: '/pages/passCar/couponList/couponList', | ||||
}) | }) | ||||
}, | }, | ||||
/** | |||||
* 待完成 | |||||
*/ | |||||
gotodetail:function(e){ | |||||
console.log(e.target.dataset.rule); | |||||
wx.navigateTo({ | |||||
url: `/pages/payrule/payrule?rule=${e.target.dataset.rule}`, | |||||
}) | |||||
}, | |||||
onShow: function (options) { | onShow: function (options) { | ||||
var that = this; | var that = this; | ||||
that.getList(); | that.getList(); | ||||
@@ -92,7 +92,7 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class='textStyle' bindtap='gotodetail'> | |||||
<view class='textStyle' bindtap='gotodetail' data-rule='{{park.stopFee}}'> | |||||
<image src='../../assets/img/rule.png'></image> | <image src='../../assets/img/rule.png'></image> | ||||
缴费规则 | 缴费规则 | ||||
<view class='detail'> | <view class='detail'> | ||||
@@ -0,0 +1,69 @@ | |||||
// pages/payrule/payrule.js | |||||
Page({ | |||||
/** | |||||
* 页面的初始数据 | |||||
*/ | |||||
data: { | |||||
rule:'' | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面加载 | |||||
*/ | |||||
onLoad: function (options) { | |||||
console.log(options.rule); | |||||
this.setData({ | |||||
rule:options.rule | |||||
}) | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面初次渲染完成 | |||||
*/ | |||||
onReady: function () { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面显示 | |||||
*/ | |||||
onShow: function () { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面隐藏 | |||||
*/ | |||||
onHide: function () { | |||||
}, | |||||
/** | |||||
* 生命周期函数--监听页面卸载 | |||||
*/ | |||||
onUnload: function () { | |||||
}, | |||||
/** | |||||
* 页面相关事件处理函数--监听用户下拉动作 | |||||
*/ | |||||
onPullDownRefresh: function () { | |||||
}, | |||||
/** | |||||
* 页面上拉触底事件的处理函数 | |||||
*/ | |||||
onReachBottom: function () { | |||||
}, | |||||
/** | |||||
* 用户点击右上角分享 | |||||
*/ | |||||
onShareAppMessage: function () { | |||||
} | |||||
}) |
@@ -0,0 +1,3 @@ | |||||
{ | |||||
"navigationBarTitleText": "缴费规则" | |||||
} |
@@ -0,0 +1,3 @@ | |||||
<view class='rule'> | |||||
{{rule}} | |||||
</view> |
@@ -0,0 +1,5 @@ | |||||
.rule{ | |||||
padding: 30rpx 20rpx; | |||||
font-size: 26rpx; | |||||
line-height: 40rpx; | |||||
} |