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
2c1e8cd4
Commit
2c1e8cd4
authored
Jun 02, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 会员积分信息
parent
7950b71e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletions
+18
-1
integralWater.js
src/pages/integralWater/integralWater.js
+18
-1
No files found.
src/pages/integralWater/integralWater.js
View file @
2c1e8cd4
...
...
@@ -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
:
'加载中'
...
...
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