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
5655bd75
Commit
5655bd75
authored
Nov 15, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
限量精品
parent
cc380989
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
IntegralMallGoods.js
...Package/page/pages/IntegralMallGoods/IntegralMallGoods.js
+21
-3
No files found.
src/subPackage/page/pages/IntegralMallGoods/IntegralMallGoods.js
View file @
5655bd75
...
@@ -52,9 +52,28 @@ wxService.page({
...
@@ -52,9 +52,28 @@ wxService.page({
* 生命周期函数--监听页面显示
* 生命周期函数--监听页面显示
*/
*/
onShow
:
function
()
{
onShow
:
function
()
{
this
.
initIntegralCouponList
()
this
.
initIntegralProductList
()
// this.initIntegralCouponList()
},
// 查询所有生效中的活动 限量精品
initIntegralProductList
()
{
wx
.
showLoading
({
title
:
'加载中'
})
wxService
.
get
(
`/coupon/pointsRedemptionProductSetting/getAllValid`
).
then
(
res
=>
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
wx
.
hideLoading
()
this
.
setData
({
integralCouponList
:
data
.
reverse
()
})
}
}
}).
finally
(()
=>
{
wx
.
hideLoading
();
})
},
},
// 积分兑换优惠券列表
// 积分兑换优惠券列表
initIntegralCouponList
()
{
initIntegralCouponList
()
{
wx
.
showLoading
({
wx
.
showLoading
({
...
@@ -73,7 +92,6 @@ wxService.page({
...
@@ -73,7 +92,6 @@ wxService.page({
// }).finally(() => {
// }).finally(() => {
// wx.hideLoading();
// wx.hideLoading();
// })
// })
// 查询所有生效中的活动
wxService
.
get
(
`/coupon/pointsRedemptionCouponSetting/getAllValid`
).
then
(
res
=>
{
wxService
.
get
(
`/coupon/pointsRedemptionCouponSetting/getAllValid`
).
then
(
res
=>
{
if
(
res
)
{
if
(
res
)
{
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
...
...
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