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
314e35dc
Commit
314e35dc
authored
Jun 03, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 会员中心数据渲染
parent
21938ec6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
27 deletions
+22
-27
personCenter.js
src/component/personCenter/personCenter.js
+14
-24
personCenter.wxml
src/component/personCenter/personCenter.wxml
+2
-2
userCenter.js
src/pages/userCenter/userCenter.js
+6
-1
No files found.
src/component/personCenter/personCenter.js
View file @
314e35dc
...
...
@@ -28,30 +28,19 @@ Component({
})
},
methods
:
{
// 点击编辑
handelPersonCenter
()
{
console
.
log
(
'点击编辑'
)
},
handleGoWxCard
()
{
console
.
log
(
'kabao'
)
if
(
wx
.
openCard
)
{
wx
.
openCard
({
cardList
:
[{
cardId
:
''
,
code
:
''
},
{
cardId
:
''
,
code
:
''
}],
success
(
res
)
{
}
})
}
else
{
// 如果希望用户在最新版本的客户端上体验您的小程序,可以这样子提示
wx
.
showModal
({
title
:
'提示'
,
content
:
'当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
})
}
toBonusDetails
()
{
wxService
.
router
(
`/pages/integralWater/integralWater`
)
},
toCouponList
()
{
wxService
.
router
(
`/pages/coupons/coupons`
)
},
// 点击编辑
handelPersonCenter
()
{
console
.
log
(
'点击编辑'
)
},
handleGoWxCard
()
{
console
.
log
(
'kabao'
)
wxService
.
openCard
()
}
}
})
\ No newline at end of file
src/component/personCenter/personCenter.wxml
View file @
314e35dc
...
...
@@ -22,11 +22,11 @@
</view>
</view>
<view class='df tc'>
<view class='df-1 point person-right'>
<view class='df-1 point person-right'
bindtap="toBonusDetails"
>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.bonus}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">积分</view>
</view>
<view class='df-1 point'>
<view class='df-1 point'
bindtap="toCouponList"
>
<view class='point-number' style="color:{{personCenter.fontColor}};">{{personCenter.coupon}}</view>
<view class='point-desc' style="color:{{personCenter.fontColor}};">优惠券</view>
</view>
...
...
src/pages/userCenter/userCenter.js
View file @
314e35dc
...
...
@@ -37,6 +37,8 @@ wxService.page({
handlerDataOnPage
=
new
utils
.
HandlerDataOnPage
()
renderPage
=
require
(
'../../utils/renderPage'
).
getRenderPage
()
handlerDataOnPage
.
init
(
this
,
'pages'
)
this
.
initPage
()
},
/**
...
...
@@ -50,10 +52,13 @@ wxService.page({
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
this
.
initPage
()
},
// page 信息
initPage
(){
this
.
setData
({
products
:
[]
})
wx
.
showLoading
({
title
:
'加载中'
})
...
...
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