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
2b908196
Commit
2b908196
authored
Jun 03, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 卡包激活
parent
f6f5a7d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
personCenter.js
src/component/personCenter/personCenter.js
+16
-1
personCenter.wxml
src/component/personCenter/personCenter.wxml
+1
-1
No files found.
src/component/personCenter/personCenter.js
View file @
2b908196
...
...
@@ -40,9 +40,23 @@ Component({
handelPersonCenter
()
{
console
.
log
(
'点击编辑'
)
},
handleTtoActiveMemebr
()
{
wxService
.
openCard
()
},
handleGoWxCard
()
{
console
.
log
(
'kabao'
)
// wxService.openCard()
// wechatCardId wechatCode
const
{
wechatCardId
,
wechatCode
}
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
wx
.
openCard
({
cardList
:
[{
cardId
:
wechatCardId
,
code
:
wechatCode
}],
success
(
res
)
{
console
.
log
(
'查看微信卡包中的卡券'
,
res
)
}
})
}
}
})
\ No newline at end of file
src/component/personCenter/personCenter.wxml
View file @
2b908196
<!--component/personCenter/personCenter.wxml-->
<view class="activation-content activation-bg {{true ? 'user-content' : ''}}">
<button type="primary" plain='false' wx:if='{{!memberActivateStatus}}'>激活立享会员特权</button>
<button type="primary" plain='false' wx:if='{{!memberActivateStatus}}'
bindtap="handleTtoActiveMemebr"
>激活立享会员特权</button>
<view class='user-info' wx:if='{{memberActivateStatus}}'>
<view class="user-avatar">
<open-data type="userAvatarUrl"></open-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