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
7916658c
Commit
7916658c
authored
Aug 06, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 消费集点兑换
parent
d3bd4464
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
pointDetail.js
src/pages/pointDetail/pointDetail.js
+17
-17
pointDetail.wxml
src/pages/pointDetail/pointDetail.wxml
+1
-1
No files found.
src/pages/pointDetail/pointDetail.js
View file @
7916658c
...
@@ -91,8 +91,20 @@ wxService.page({
...
@@ -91,8 +91,20 @@ wxService.page({
wxService
.
router
(
`/subPackage/page/pages/pointGoodsList/pointGoodsList`
).
search
({
activityId
})
wxService
.
router
(
`/subPackage/page/pages/pointGoodsList/pointGoodsList`
).
search
({
activityId
})
},
},
handleGo
()
{
handleGo
()
{
// 兑换成功跳转
// 跳转 popupType: 0 默认不跳转 1 优惠券 2 积分
this
.
getPointExchange
()
const
{
popupType
}
=
this
.
data
let
dialog
=
this
.
data
.
dialog
if
(
popupType
==
1
)
{
wxService
.
router
(
`/pages/coupons/coupons`
)
}
else
if
(
popupType
==
2
)
{
wxService
.
router
(
`/pages/integralWater/integralWater`
)
}
else
{
// 隐藏 dialog
dialog
.
show
=
false
this
.
setData
({
dialog
})
}
},
},
// 触点有礼-消费集点兑换
// 触点有礼-消费集点兑换
getPointExchange
()
{
getPointExchange
()
{
...
@@ -106,30 +118,18 @@ wxService.page({
...
@@ -106,30 +118,18 @@ wxService.page({
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
)
{
if
(
result
==
0
)
{
wx
.
hideLoading
()
wx
.
hideLoading
()
//
隐藏
dialog
//
显示
dialog
let
dialog
=
this
.
data
.
dialog
let
dialog
=
this
.
data
.
dialog
dialog
.
show
=
fals
e
dialog
.
show
=
tru
e
this
.
setData
({
this
.
setData
({
dialog
dialog
},
()
=>
{
// 跳转 popupType: 0 默认不跳转 1 优惠券 2 积分
const
{
popupType
}
=
this
.
data
if
(
popupType
==
1
)
{
wxService
.
router
(
`/pages/coupons/coupons`
)
}
else
if
(
popupType
==
2
)
{
wxService
.
router
(
`/pages/integralWater/integralWater`
)
}
})
})
}
}
}
}
})
})
},
},
handleToGet
()
{
handleToGet
()
{
let
dialog
=
this
.
data
.
dialog
this
.
getPointExchange
()
dialog
.
show
=
true
this
.
setData
({
dialog
})
},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
...
...
src/pages/pointDetail/pointDetail.wxml
View file @
7916658c
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
border-radius="{{20}}"
border-radius="{{20}}"
/>
/>
</view>
</view>
<view wx:if="{{countObj.totalPoints}}" class="info-status-btn available breathe-btn border_box" bindtap="handleToGet">
<view wx:if="{{
!
countObj.totalPoints}}" class="info-status-btn available breathe-btn border_box" bindtap="handleToGet">
可领取奖励<text class="total-points"> {{countObj.totalPoints}} </text>次
可领取奖励<text class="total-points"> {{countObj.totalPoints}} </text>次
</view>
</view>
<view wx:else class="info-status-btn unacommpolished border_box">
<view wx:else class="info-status-btn unacommpolished border_box">
...
...
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