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
6774bdd6
Commit
6774bdd6
authored
Jun 15, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: type=1_不弹框
parent
d6f593c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
56 deletions
+54
-56
bottom.js
src/component/bottom/bottom.js
+13
-6
imageSwiper.js
src/component/imageSwiper/imageSwiper.js
+29
-44
picNav.js
src/component/picNav/picNav.js
+12
-6
No files found.
src/component/bottom/bottom.js
View file @
6774bdd6
...
...
@@ -53,7 +53,13 @@ Component({
// 更改数据问题
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
item
.
link
.
type
,
item
)
if
(
link
.
type
==
2
)
{
if
(
link
.
type
==
1
)
{
// 触发父组件更新页面 外部小程序
this
.
setData
({
isAuthorization
:
false
})
return
false
}
else
if
(
link
.
type
==
2
)
{
// 触发父组件更新页面
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
...
...
@@ -68,12 +74,13 @@ Component({
wxService
.
router
(
`
${
currentClickType
}
`
)
}
}
else
{
this
.
setData
({
isAuthorization
:
true
})
return
false
}
// else{
// this.setData({
// isAuthorization: true
// })
// return false
// }
}
}
}
...
...
src/component/imageSwiper/imageSwiper.js
View file @
6774bdd6
...
...
@@ -26,7 +26,7 @@ Component({
circular
:
true
,
interval
:
5000
,
duration
:
1000
,
isAuthorization
:
false
isAuthorization
:
false
// false 不显示 true 显示
},
/**
* 组件的方法列表
...
...
@@ -35,52 +35,37 @@ Component({
preview
(
e
)
{
const
{
appid
,
path
,
link
,
item
}
=
e
.
currentTarget
.
dataset
// 获取当前帐号信息
const
accountInfo
=
utils
.
getAccountInfo
()
const
userInfo
=
wx
.
getStorageSync
(
'_baseUserInfo'
)
if
(
userInfo
){
// app.globalData.commonFunc.getLink(item.link.type, item)
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
item
.
link
.
type
,
item
)
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
item
.
link
.
type
,
item
)
if
(
link
.
type
==
2
)
{
// 触发父组件更新页面
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
})
}
else
if
(
link
.
type
==
3
)
{
// 预览
wx
.
previewImage
({
current
:
`https://images.unsplash.com/
${
currentClickType
.
imageUrl
}
`
,
// 当前显示图片的http链接
urls
:
[
`http://testimg3.bigaka.com/
${
currentClickType
.
link
.
url
}
`
]
// 需要预览的图片http链接列表
})
}
else
if
(
link
.
type
==
4
)
{
wxService
.
router
(
`
${
currentClickType
}
`
)
}
// 是当前小程序 直接跳转
// if(accountInfo.miniProgram.appId == appid){
// wxService.router(`${path}`)
// } else {
// // 跳转其他小程序
// wx.navigateToMiniProgram({
// appId: appid,
// path: `${path}`,
// success: e => {
// console.log(e)
// },
// fail: e => {
// console.log(e)
// },
// complete: e => {
// console.log(e)
// },
// })
// }
}
else
{
this
.
setData
({
isAuthorization
:
true
})
return
false
}
if
(
link
.
type
==
1
)
{
// 触发父组件更新页面 外部小程序
this
.
setData
({
isAuthorization
:
false
})
return
false
}
else
if
(
link
.
type
==
2
)
{
// 触发父组件更新页面
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
})
}
else
if
(
link
.
type
==
3
)
{
// 预览
wx
.
previewImage
({
current
:
`https://images.unsplash.com/
${
currentClickType
.
imageUrl
}
`
,
// 当前显示图片的http链接
urls
:
[
`http://testimg3.bigaka.com/
${
currentClickType
.
link
.
url
}
`
]
// 需要预览的图片http链接列表
})
}
else
if
(
link
.
type
==
4
)
{
wxService
.
router
(
`
${
currentClickType
}
`
)
}
}
// else {
// this.setData({
// isAuthorization: true
// })
// return false
// }
}
}
...
...
src/component/picNav/picNav.js
View file @
6774bdd6
...
...
@@ -73,15 +73,21 @@ Component({
// },
// })
}
if
(
!
userInfo
){
// if (!userInfo){
// this.setData({
// isAuthorization: true
// })
// return false
// }
// 2019.06.14
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
item
.
link
.
type
,
item
)
if
(
link
.
type
==
1
)
{
// 触发父组件更新页面 外部小程序
this
.
setData
({
isAuthorization
:
tru
e
isAuthorization
:
fals
e
})
return
false
}
// 2019.06.14
let
currentClickType
=
app
.
globalData
.
commonFunc
.
getLink
(
item
.
link
.
type
,
item
)
if
(
link
.
type
==
2
)
{
}
else
if
(
link
.
type
==
2
)
{
// 触发父组件更新页面
wxService
.
nextTick
(()
=>
{
this
.
triggerEvent
(
'updatePage'
,
{
pageId
:
currentClickType
.
url
})
...
...
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