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
c5133843
Commit
c5133843
authored
Jul 12, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 动态类型注释
parent
43c1eae8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
picNav.js
src/component/picNav/picNav.js
+3
-3
No files found.
src/component/picNav/picNav.js
View file @
c5133843
...
@@ -66,7 +66,7 @@ Component({
...
@@ -66,7 +66,7 @@ Component({
}
}
if
(
link
.
type
==
2
)
{
if
(
link
.
type
==
2
)
{
// 触发父组件更新页面
// 触发父组件更新页面
内部子页面
wxService
.
nextTick
(()
=>
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
})
})
...
@@ -76,9 +76,9 @@ Component({
...
@@ -76,9 +76,9 @@ Component({
current
:
`
${
app
.
globalData
.
imageUrl
}
/
${
currentClickType
.
imageUrl
}
`
,
// 当前显示图片的http链接
current
:
`
${
app
.
globalData
.
imageUrl
}
/
${
currentClickType
.
imageUrl
}
`
,
// 当前显示图片的http链接
urls
:
[
`
${
app
.
globalData
.
imageUrl
}
/
${
currentClickType
.
link
.
url
}
`
]
// 需要预览的图片http链接列表
urls
:
[
`
${
app
.
globalData
.
imageUrl
}
/
${
currentClickType
.
link
.
url
}
`
]
// 需要预览的图片http链接列表
})
})
}
else
if
(
link
.
type
==
4
)
{
}
else
if
(
link
.
type
==
4
)
{
// 内部固定功能
wxService
.
router
(
`
${
currentClickType
}
`
)
wxService
.
router
(
`
${
currentClickType
}
`
)
}
else
if
(
link
.
type
==
5
)
{
}
else
if
(
link
.
type
==
5
)
{
// 微信卡券 -- 卡包/领卡
if
(
currentClickType
==
1
)
{
if
(
currentClickType
==
1
)
{
wxService
.
openCard
()
wxService
.
openCard
()
}
else
if
(
currentClickType
==
2
)
{
}
else
if
(
currentClickType
==
2
)
{
...
...
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