Commit 998a8f50 by 高淑倩

add: 积分列表接口

parent 2ec7b8e0
......@@ -9,41 +9,56 @@ wxService.page({
* 页面的初始数据
*/
data: {
integralNum: 1246
},
// 点击跳转至会员规则页
handleGoMemberRulesRules() {
wxService.router(`/pages/memberRules/memberRules`)
},
// 去积分商城
handleGoIntegralMall() {
wxService.router(`/pages/IntegralMall/IntegralMall`)
},
// 消费详情
handleGoDetail() {
wxService.router(`/pages/consumptionDetails/consumptionDetails`)
integralNum: 1246,
pageNo: 1,
pageSize: 30
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
onLoad() {},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
// 积分流水
this.getIntegralList()
},
getIntegralList() {
// wx.showLoading({
// title: '加载中'
// })
const params = {
pageNo: this.data.pageNo,
pageSize: this.data.pageSize
}
wxService.post(`/memberPointLog/findPage?pageNo=${this.data.pageNo}&pageSize=${this.data.pageSize}`, params).then(res=> {
// const {code,data} = res.data
// if(code == 200){
// wx.hideLoading()
// }
})
},
// 点击跳转至会员规则页
handleGoMemberRulesRules() {
wxService.router(`/pages/memberRules/memberRules`)
},
// 去积分商城
handleGoIntegralMall() {
wxService.router(`/pages/IntegralMall/IntegralMall`)
},
// 消费详情
handleGoDetail() {
wxService.router(`/pages/consumptionDetails/consumptionDetails`)
},
/**
* 生命周期函数--监听页面隐藏
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment