Commit 2c1e8cd4 by daqian

add: 会员积分信息

parent 7950b71e
......@@ -9,7 +9,7 @@ wxService.page({
* 页面的初始数据
*/
data: {
integralNum: 1246,
integralNum: 0,
pageNo: 1,
pageSize: 30,
integralList: [],
......@@ -29,8 +29,25 @@ wxService.page({
onShow: function () {
// 积分流水
this.getIntegralList()
// 查询会员积分信息
this.getMemberPointInfo()
},
// 查询会员积分信息
getMemberPointInfo(){
wx.showLoading({
title: '加载中'
})
wxService.post(`/member/memberPoint/getMyPointInfo`).then(res => {
const { result, data } = res.data
if (result == 0) {
wx.hideLoading()
this.setData({
integralNum: data.point
})
}
})
},
getIntegralList() {
wx.showLoading({
title: '加载中'
......
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