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
a9061c0c
Commit
a9061c0c
authored
Jun 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 激活弹框条件判断
parent
ce4d028b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
picNav.js
src/component/picNav/picNav.js
+26
-26
No files found.
src/component/picNav/picNav.js
View file @
a9061c0c
...
...
@@ -58,17 +58,17 @@ Component({
isAuthorization
:
true
})
return
false
}
else
if
(
userInfo
&&
userInfo
.
member
&&
!
userInfo
.
member
.
mobile
)
{
// userInfo 存在 手机号不存在
跳转激活领卡页面
this
.
setData
({
isAuthorizationActiveText
:
'新激活领卡'
,
isAuthorization
:
true
},()
=>
{
wxService
.
openCard
()
return
false
})
}
}
// else if(userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus
) {
// // userInfo 存在 手机号存在 未激活
跳转激活领卡页面
//
this.setData({
//
isAuthorizationActiveText:'新激活领卡',
//
isAuthorization: true
//
},()=> {
//
wxService.openCard()
//
return false
//
})
//
}
if
(
link
.
type
==
2
)
{
// 触发父组件更新页面
...
...
@@ -78,28 +78,28 @@ Component({
}
else
if
(
link
.
type
==
3
)
{
// 预览
wx
.
previewImage
({
current
:
`http
s://images.unsplash
.com/
${
currentClickType
.
imageUrl
}
`
,
// 当前显示图片的http链接
current
:
`http
://testimg3.bigaka
.com/
${
currentClickType
.
imageUrl
}
`
,
// 当前显示图片的http链接
urls
:
[
`http://testimg3.bigaka.com/
${
currentClickType
.
link
.
url
}
`
]
// 需要预览的图片http链接列表
})
}
else
if
(
link
.
type
==
4
)
{
wxService
.
router
(
`
${
currentClickType
}
`
)
}
else
if
(
link
.
type
==
5
)
{
if
(
userInfo
&&
userInfo
.
member
&&
!
userInfo
.
member
.
mobile
)
{
this
.
setData
({
isAuthorizationActiveText
:
'新激活领卡'
,
isAuthorizationType
:
3
,
isAuthorization
:
true
})
}
else
{
wxService
.
openCard
()
}
// if (currentClickType == 1) {
// // wxService.openCardList()
// wxService.openCard()
// } else if (currentClickType == 2) {
// if(userInfo && userInfo.member && userInfo.member.mobile && !userInfo.memberActivateStatus) {
// this.setData({
// isAuthorizationActiveText:'新激活领卡',
// isAuthorizationType: 3,
// isAuthorization: true
// })
// } else {
// wxService.openCard()
// }
if
(
currentClickType
==
1
)
{
// wxService.openCardList()
wxService
.
openCard
()
}
else
if
(
currentClickType
==
2
)
{
wxService
.
openCard
()
}
}
},
activeTocard
(
e
){
...
...
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