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
c6b4af5e
Commit
c6b4af5e
authored
Jun 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 修改优惠券列表接口
parent
37db3a58
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
activateCardCallback.js
src/pages/activateCard/activateCardCallback.js
+0
-1
coupons.js
src/pages/coupons/coupons.js
+12
-6
No files found.
src/pages/activateCard/activateCardCallback.js
View file @
c6b4af5e
...
...
@@ -49,7 +49,6 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
// 变更 激活状态
console
.
log
(
'000000'
)
wx
.
setStorageSync
(
'memberActivateStatus'
,
true
)
wx
.
hideLoading
()
wxService
.
router
(
`/pages/userCenter/userCenter`
)
...
...
src/pages/coupons/coupons.js
View file @
c6b4af5e
...
...
@@ -74,16 +74,22 @@ wxService.page({
},
//获取优惠券列表
getCouponList
(
pageNo
,
pageSize
,
status
){
getCouponList
(
pageNo
,
pageSize
,
status
Num
){
wx
.
showLoading
({
title
:
'加载中'
})
const
params
=
{
status
let
params
;
if
(
statusNum
==
1
){
params
=
{
status
:
1
}
}
else
{
params
=
{
statusNot
:
1
}
}
wxService
.
post
(
`/coupon/coupon/listWithMember?number=
${
pageNo
}
&size=
${
pageSize
}
`
,
params
).
then
(
res
=>
{
wxService
.
post
(
`/coupon/coupon/listWithMember
4Mina
?number=
${
pageNo
}
&size=
${
pageSize
}
`
,
params
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
wx
.
hideLoading
()
...
...
@@ -93,7 +99,7 @@ wxService.page({
item
.
endTime
=
item
.
endTime
.
substring
(
0
,
10
)
})
// 可使用 or 已失效
if
(
status
==
1
)
{
if
(
status
Num
==
1
)
{
// couponList
this
.
setData
({
couponList
:
this
.
data
.
pageNo
==
1
?
[...
data
.
content
]:
[...
this
.
data
.
couponList
,...
data
.
content
],
...
...
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