Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5_activity
Project
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
谭新宇
h5_activity
Commits
72702036
Commit
72702036
authored
Sep 11, 2019
by
谭新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
广告只在扫描二维码进入时显示一次
parent
22f3750a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
common.js
showPhotos/js/page/common.js
+10
-0
index.js
showPhotos/js/page/index.js
+3
-1
No files found.
showPhotos/js/page/common.js
View file @
72702036
...
...
@@ -107,6 +107,12 @@ function transPage(_pageNumber, _activityCode, _token, _addParam) {
// _form.appendChild(inputToken);
// document.body.appendChild(_form);
// _form.submit();
// 活动页面内返回到首页不显示广告
if
(
_pageNumber
===
'1'
&&
url
.
indexOf
(
'noshowad=1'
)
===
-
1
)
{
url
=
url
+
'&noshowad=1'
;
}
window
.
location
.
href
=
url
;
}
...
...
@@ -728,6 +734,9 @@ function compressImage(file, callback) {
/* ---------------------补充功能逻辑--------------------- */
// 添加进入N秒广告
function
appendAdvertisement
()
{
// 活动页内跳转不显示广告
var
noshowad
=
getQueryString
(
'noshowad'
);
if
(
noshowad
===
null
)
{
$
(
"#adImgdiv"
).
remove
();
// 广告时间
var
time
=
getQueryString
(
'adtime'
);
...
...
@@ -763,6 +772,7 @@ function appendAdvertisement() {
}).
show
();
});
}
}
}
// 添加赞助商文案
...
...
showPhotos/js/page/index.js
View file @
72702036
...
...
@@ -261,6 +261,7 @@ function getPlayerList(playerListData) {
var
i
=
0
var
item
=
$
(
".item"
,
list
)[
0
];
var
tempItem
=
list
.
clone
();
// 清空子元素
tempItem
.
empty
().
show
();
if
(
playerListData
.
records
.
length
)
{
...
...
@@ -272,7 +273,8 @@ function getPlayerList(playerListData) {
// 名称替换
$
(
'.user-name'
,
item
).
text
(
playerListData
.
records
[
i
].
name
);
// 机构名称替换
if
(
rules
.
acActivityOrgs
.
length
===
0
){
// 特殊处理
if
(
rules
.
acActivityOrgs
.
length
===
0
||
activityCode
===
'HD1190904175331'
||
activityCode
===
'HD1190904172515'
){
$
(
'.vote-struct'
,
item
).
remove
();
}
else
{
$
(
'.vote-struct'
,
item
).
text
(
playerListData
.
records
[
i
].
orgName
);
...
...
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