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
9462e83a
Commit
9462e83a
authored
Sep 18, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转this
parent
af470e8f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
bottomTabs.js
src/component/bottomTabs/bottomTabs.js
+1
-1
imageSwiper.js
src/component/imageSwiper/imageSwiper.js
+1
-1
picNav.js
src/component/picNav/picNav.js
+1
-1
currentLinkRouter.js
src/utils/currentLinkRouter.js
+2
-3
No files found.
src/component/bottomTabs/bottomTabs.js
View file @
9462e83a
...
@@ -89,7 +89,7 @@ Component({
...
@@ -89,7 +89,7 @@ Component({
this
.
triggerEvent
(
'getAuth'
,
res
);
this
.
triggerEvent
(
'getAuth'
,
res
);
},
},
handelToPage
(
event
)
{
handelToPage
(
event
)
{
utilLink
.
currentLinkRouter
(
event
)
utilLink
.
currentLinkRouter
(
event
,
this
)
}
}
}
}
})
})
src/component/imageSwiper/imageSwiper.js
View file @
9462e83a
...
@@ -126,7 +126,7 @@ Component({
...
@@ -126,7 +126,7 @@ Component({
})
})
},
},
preview
(
event
)
{
preview
(
event
)
{
utilLink
.
currentLinkRouter
(
event
)
utilLink
.
currentLinkRouter
(
event
,
this
)
}
}
}
}
})
})
src/component/picNav/picNav.js
View file @
9462e83a
...
@@ -96,7 +96,7 @@ Component({
...
@@ -96,7 +96,7 @@ Component({
})
})
},
},
preview
(
event
)
{
preview
(
event
)
{
utilLink
.
currentLinkRouter
(
event
)
utilLink
.
currentLinkRouter
(
event
,
this
)
},
},
activeTocard
(
e
)
{
activeTocard
(
e
)
{
if
(
e
.
detail
)
{
if
(
e
.
detail
)
{
...
...
src/utils/currentLinkRouter.js
View file @
9462e83a
const
wxService
=
require
(
'./wxService'
)
const
wxService
=
require
(
'./wxService'
)
const
app
=
getApp
()
const
app
=
getApp
()
function
currentLinkRouter
(
event
)
{
function
currentLinkRouter
(
event
,
_this
)
{
const
ev
=
event
.
currentTarget
.
dataset
;
const
ev
=
event
.
currentTarget
.
dataset
;
let
curItemType
=
ev
.
item
let
curItemType
=
ev
.
item
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
...
@@ -12,11 +12,10 @@ function currentLinkRouter(event) {
...
@@ -12,11 +12,10 @@ function currentLinkRouter(event) {
if
(
curItemType
.
link
.
type
==
1
)
{
if
(
curItemType
.
link
.
type
==
1
)
{
// 触发父组件更新页面 外部小程序
// 触发父组件更新页面 外部小程序
}
else
if
(
curItemType
.
link
.
type
==
2
)
{
}
else
if
(
curItemType
.
link
.
type
==
2
)
{
// 触发父组件更新页面
// 触发父组件更新页面
wxService
.
nextTick
(()
=>
{
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
_
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
})
})
}
else
if
(
curItemType
.
link
.
type
==
3
)
{
}
else
if
(
curItemType
.
link
.
type
==
3
)
{
// 预览
// 预览
...
...
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