Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
eb68402a
Commit
eb68402a
authored
Apr 11, 2023
by
howie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'弹窗广告组件'
parent
5710a0b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
static/nativeComponents/PopUp/index.js
+17
-9
No files found.
static/nativeComponents/PopUp/index.js
View file @
eb68402a
...
...
@@ -23,19 +23,24 @@ Component({
},
ready
()
{
let
routes
=
getCurrentPages
()
let
page
=
routes
[
routes
.
length
-
1
].
route
let
userInfo
=
wx
.
getStorageSync
(
"loginUserInfo"
)
console
.
log
(
"用户信息"
,
userInfo
);
if
(
this
.
data
.
datas
.
componentData
.
pushPeople
==
'1'
)
{
if
(
userInfo
.
tagInfoResponseDTOS
)
{
try
{
userInfo
.
tagInfoResponseDTOS
.
forEach
(
item
=>
{
if
(
this
.
data
.
datas
.
componentData
.
pushDesignee
.
includes
(
item
.
id
))
{
let
thisPageIsPushed
=
app
.
globalData
[
`
${
app
.
globalData
.
shopInfo
.
shopCode
}
_
${
page
}
_
${
this
.
data
.
datas
.
id
}
_thisPageIsPushed`
]
console
.
log
(
"当前页面弹过"
,
thisPageIsPushed
);
if
(
!
thisPageIsPushed
)
{
if
(
this
.
data
.
datas
.
componentData
.
pushPeople
==
'0'
)
{
this
.
init
()
}
else
if
(
this
.
data
.
datas
.
componentData
.
pushPeople
==
'1'
)
{
if
(
userInfo
.
tagInfoResponseDTOS
)
{
let
length
=
userInfo
.
tagInfoResponseDTOS
.
length
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
if
(
this
.
data
.
datas
.
componentData
.
pushDesignee
.
includes
(
userInfo
.
tagInfoResponseDTOS
[
i
].
id
)){
this
.
init
()
throw
Error
()
break
;
}
})
}
catch
(
e
)
{
console
.
log
(
e
);
}
}
}
}
...
...
@@ -91,6 +96,9 @@ Component({
},
// 判断何时定时关闭
autoOff
()
{
let
routes
=
getCurrentPages
()
let
page
=
routes
[
routes
.
length
-
1
].
route
app
.
globalData
[
`
${
app
.
globalData
.
shopInfo
.
shopCode
}
_
${
page
}
_
${
this
.
data
.
datas
.
id
}
_thisPageIsPushed`
]
=
true
if
(
this
.
data
.
datas
.
componentData
.
columnNum
>
0
&&
this
.
data
.
datas
.
componentData
.
autoOff
...
...
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