Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
998a8f50
Commit
998a8f50
authored
May 24, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 积分列表接口
parent
2ec7b8e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
19 deletions
+34
-19
integralWater.js
src/pages/integralWater/integralWater.js
+34
-19
No files found.
src/pages/integralWater/integralWater.js
View file @
998a8f50
...
...
@@ -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`
)
},
/**
* 生命周期函数--监听页面隐藏
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment