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
67762bd1
Commit
67762bd1
authored
Oct 26, 2019
by
谢中龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
福利优惠券活动分页
parent
75499858
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
welfare.js
src/shoppingGuid/page/pages/welfare/welfare.js
+8
-6
No files found.
src/shoppingGuid/page/pages/welfare/welfare.js
View file @
67762bd1
...
...
@@ -272,10 +272,9 @@ wxService.page({
mask
:
true
});
let
pageNum
=
this
.
data
.
coupons
.
pageNum
,
pageSize
=
this
.
data
.
coupons
.
pageSize
;
wxService
.
post
(
`/marketing/shoppingguide/coupon/page4c?pageSize=
${
pageSize
}
&pageNo=
${
pageNum
}
`
,
{
couponName
:
''
}
).
then
(
res
=>
{
pageSize
=
this
.
data
.
coupons
.
pageSize
,
param
=
{
couponName
:
''
};
wxService
.
post
(
`/marketing/shoppingguide/coupon/page4c?pageSize=
${
pageSize
}
&pageNo=
${
pageNum
}
`
,
param
).
then
(
res
=>
{
if
(
res
)
{
//https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg.png 正常
//https://bigaka-xie.oss-cn-shanghai.aliyuncs.com/coupon_bg_cantUse.png //不可使用
...
...
@@ -290,7 +289,7 @@ wxService.page({
item
.
price
=
parseFloat
(
item
.
couponSetting
.
faceAmount
/
100
).
toFixed
(
2
);
item
.
couponType
=
item
.
couponSetting
.
type
;
});
this
.
data
.
coupons
.
totalPage
=
Math
.
ceil
(
data
.
totalElements
/
this
.
data
.
coupons
.
pageSize
);
this
.
data
.
coupons
.
list
=
this
.
data
.
coupons
.
list
.
concat
(
list
);
if
(
this
.
data
.
coupons
.
list
.
length
==
0
){
this
.
data
.
coupons
.
noData
=
true
;
...
...
@@ -338,7 +337,10 @@ wxService.page({
}
else
if
(
this
.
data
.
current
==
3
){
//优惠券福利
if
(
this
.
data
.
coupons
.
pageNum
<
this
.
data
.
coupons
.
totalPage
){
this
.
data
.
coupons
.
pageNum
++
;
this
.
getCouponActivityList
();
}
}
},
...
...
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