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
19bfd989
Commit
19bfd989
authored
Jun 12, 2019
by
赵雅纹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature-zyw' into 'dev'
Feature zyw See merge request
!25
parents
e0b489a6
10912668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
18 deletions
+27
-18
userCenter.js
src/pages/userCenter/userCenter.js
+25
-18
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+2
-0
No files found.
src/pages/userCenter/userCenter.js
View file @
19bfd989
...
@@ -23,7 +23,8 @@ wxService.page({
...
@@ -23,7 +23,8 @@ wxService.page({
couponNum
:
0
,
couponNum
:
0
,
// isAllScreen: fullSucreen.isAllScreen
// isAllScreen: fullSucreen.isAllScreen
isAllScreen
:
config
.
isAllScreen
,
isAllScreen
:
config
.
isAllScreen
,
token
:
''
token
:
''
,
isAuthorization
:
false
},
},
/**
/**
...
@@ -112,23 +113,29 @@ wxService.page({
...
@@ -112,23 +113,29 @@ wxService.page({
// 获取当前帐号信息
// 获取当前帐号信息
const
accountInfo
=
utils
.
getAccountInfo
()
const
accountInfo
=
utils
.
getAccountInfo
()
// 是当前小程序 直接跳转
// 是当前小程序 直接跳转
if
(
accountInfo
.
miniProgram
.
appId
==
appid
){
if
(
wx
.
getStorageSync
(
'_baseUserInfo'
)){
wxService
.
router
(
`
${
path
}
`
)
if
(
accountInfo
.
miniProgram
.
appId
==
appid
){
}
else
{
wxService
.
router
(
`
${
path
}
`
)
// 跳转其他小程序
}
else
{
wx
.
navigateToMiniProgram
({
// 跳转其他小程序
appId
:
appid
,
wx
.
navigateToMiniProgram
({
path
:
`
${
path
}
`
,
appId
:
appid
,
success
:
e
=>
{
path
:
`
${
path
}
`
,
console
.
log
(
e
)
success
:
e
=>
{
},
console
.
log
(
e
)
fail
:
e
=>
{
},
console
.
log
(
e
)
fail
:
e
=>
{
},
console
.
log
(
e
)
complete
:
e
=>
{
},
console
.
log
(
e
)
complete
:
e
=>
{
},
console
.
log
(
e
)
})
},
})
}
}
else
{
this
.
setData
({
isAuthorization
:
true
})
}
}
}
}
},
},
...
...
src/pages/userCenter/userCenter.wxml
View file @
19bfd989
...
@@ -27,3 +27,5 @@
...
@@ -27,3 +27,5 @@
</view>
</view>
</block>
</block>
</view>
</view>
<authorization-modal isAuthorization='{{isAuthorization}}'/>
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