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
37db3a58
Commit
37db3a58
authored
Jun 04, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 会员中心优惠券数量
parent
d86494de
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
personCenter.js
src/component/personCenter/personCenter.js
+9
-9
personCenter.wxml
src/component/personCenter/personCenter.wxml
+4
-4
No files found.
src/component/personCenter/personCenter.js
View file @
37db3a58
...
@@ -57,15 +57,15 @@ Component({
...
@@ -57,15 +57,15 @@ Component({
wx
.
showLoading
({
wx
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
})
})
// wxService.post(`/member/memberPoint/getMyPointInfo
`).then(res => {
wxService
.
post
(
`/coupon/coupon/memberCouponCount
`
).
then
(
res
=>
{
//
const { result, data } = res.data
const
{
result
,
data
}
=
res
.
data
//
if (result == 0) {
if
(
result
==
0
)
{
//
wx.hideLoading()
wx
.
hideLoading
()
//
this.setData({
this
.
setData
({
// couponNum: data.point
couponNum
:
data
[
1
]
||
0
//
})
})
//
}
}
//
})
})
},
},
toBonusDetails
()
{
toBonusDetails
()
{
wxService
.
router
(
`/pages/integralWater/integralWater`
)
wxService
.
router
(
`/pages/integralWater/integralWater`
)
...
...
src/component/personCenter/personCenter.wxml
View file @
37db3a58
...
@@ -20,12 +20,12 @@
...
@@ -20,12 +20,12 @@
</view>
</view>
</view>
</view>
<view class='df tc' wx:if='{{memberActivateStatus}}'>
<view class='df tc' wx:if='{{memberActivateStatus}}'>
<view class='df-1 point person-right' bindtap="toBonusDetails">
<view class='df-1 point person-right' bindtap="toBonusDetails"
wx:if="{{personCenter.bonus == 0}}"
>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{
personCenter.bonus
}}</view>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{
integralNum
}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
</view>
</view>
<view class='df-1 point' bindtap="toCouponList">
<view class='df-1 point' bindtap="toCouponList"
wx:if="{{personCenter.coupon == 0}}"
>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{
personCenter.coupon
}}</view>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{
couponNum
}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view>
</view>
</view>
</view>
...
...
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