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
b699da7e
Commit
b699da7e
authored
Jun 12, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 积分商城接口
parent
53ebb429
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
34 deletions
+35
-34
IntegralMall.js
src/pages/IntegralMall/IntegralMall.js
+31
-30
IntegralMall.wxml
src/pages/IntegralMall/IntegralMall.wxml
+1
-1
IntegralMall.wxss
src/pages/IntegralMall/IntegralMall.wxss
+2
-2
coupons.wxss
src/pages/coupons/coupons.wxss
+1
-1
No files found.
src/pages/IntegralMall/IntegralMall.js
View file @
b699da7e
...
...
@@ -29,40 +29,40 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
this
.
initIntegralCouponList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
)
this
.
initIntegralCouponList
()
},
// 积分兑换优惠券列表
initIntegralCouponList
(
pageNo
,
pageSize
)
{
initIntegralCouponList
()
{
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
get
(
`/coupon/pointsRedemptionCouponSetting/findPage?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
&query=
${
this
.
data
.
query
}
`
).
then
(
res
=>
{
// wxService.get(`/coupon/pointsRedemptionCouponSetting/findPage?pageNo=${pageNo}&pageSize=${pageSize}&query=${this.data.query}`).then(res => {
// const {result,data} = res.data
// if(result == 0){
// wx.hideLoading()
// this.setData({
// integralCouponList: this.data.pageNo == 1? [...data.content]: [...this.data.integralCouponList,...data.content],
// totalPages: data.totalPages
// })
// }
// }).finally(() => {
// wx.hideLoading();
// })
// 查询所有生效中的活动
wxService
.
get
(
`/coupon/pointsRedemptionCouponSetting/getAllValid`
).
then
(
res
=>
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
wx
.
hideLoading
()
this
.
setData
({
integralCouponList
:
this
.
data
.
pageNo
==
1
?
[...
data
.
content
]:
[...
this
.
data
.
integralCouponList
,...
data
.
content
],
totalPages
:
data
.
totalPages
integralCouponList
:
data
})
}
}).
finally
(()
=>
{
wx
.
hideLoading
();
})
// 查询所有生效中的活动
// wxService.get(`/coupon/pointsRedemptionCouponSetting/getAllValid`).then(res => {
// const {result,data} = res.data
// if(result == 0){
// wx.hideLoading()
// this.setData({
// })
// }
// }).finally(() => {
// wx.hideLoading();
// })
},
//立即兑换
exchange
(
e
){
...
...
@@ -90,17 +90,17 @@ wxService.page({
* 页面上拉触底事件的处理函数
*/
onReachBottom
:
function
()
{
if
(
this
.
data
.
pageNo
<
this
.
data
.
totalPages
)
{
this
.
setData
({
pageNo
:
this
.
data
.
pageNo
+
1
,
pageSize
:
10
,
noMore
:
true
})
this
.
initIntegralCouponList
(
this
.
data
.
pageNo
,
this
.
data
.
pageSize
)
}
else
{
this
.
setData
({
noMore
:
true
})
}
//
if (this.data.pageNo < this.data.totalPages) {
//
this.setData({
//
pageNo: this.data.pageNo + 1,
//
pageSize: 10,
//
noMore: true
//
})
//
this.initIntegralCouponList(this.data.pageNo, this.data.pageSize)
//
} else {
//
this.setData({
//
noMore: true
//
})
//
}
},
})
\ No newline at end of file
src/pages/IntegralMall/IntegralMall.wxml
View file @
b699da7e
...
...
@@ -23,5 +23,5 @@
</view>
</view>
<exchange-coupon-modal exchangeId="{{exchangeId}}" exchangePoint="{{exchangePoint}}" isExchange='{{isExchange}}'/>
<
no-more wx:if="{{noMore}}"/
>
<
!--<no-more wx:if="{{noMore}}"/>--
>
</view>
src/pages/IntegralMall/IntegralMall.wxss
View file @
b699da7e
...
...
@@ -4,7 +4,7 @@
.integral-vip-rules{
width:140rpx;
height:35rpx;
line-height:
35
rpx;
line-height:
40
rpx;
text-align: center;
color: rgb(64, 205, 147);
font-size: 28rpx;
...
...
@@ -80,7 +80,7 @@
color: #ffffff;
position: absolute;
right: 20rpx;
top:
30
rpx;
top:
48
rpx;
width: 24rpx;
word-wrap: break-word;
font-weight: bold;
...
...
src/pages/coupons/coupons.wxss
View file @
b699da7e
...
...
@@ -83,7 +83,7 @@ scroll-view{
color: #ffffff;
position: absolute;
right: 20rpx;
top:
30
rpx;
top:
48
rpx;
width: 24rpx;
word-wrap: break-word;
font-weight: bold;
...
...
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