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
35d477b0
Commit
35d477b0
authored
Sep 06, 2019
by
谭新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赞助商文案
parent
a1a8d008
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
common.js
showPhotos/js/page/common.js
+28
-0
index.js
showPhotos/js/page/index.js
+2
-0
No files found.
showPhotos/js/page/common.js
View file @
35d477b0
...
...
@@ -753,4 +753,31 @@ function appendAdvertisement() {
}).
show
();
});
}
}
// 添加赞助商文案
function
addSupportMsg
()
{
$
(
"#addsupport"
).
remove
();
var
addsupport
=
getQueryString
(
'addsupport'
);
var
tpl
=
"<div></div>"
;
if
(
addsupport
!==
null
){
// 获取机构名称
getOrgNameFn
(
function
(
data
){
var
orgName
=
data
.
records
.
orgName
;
var
appendSection
=
$
(
"#html-template-1 .selectable-banner"
);
var
msg
=
""
// 芙蓉区和天心区
if
(
orgName
.
indexOf
(
"芙蓉区"
)
>
-
1
||
orgName
.
indexOf
(
"天心区"
)
>
-
1
)
{
msg
=
"飞鹤/百诺恩/小熊BABY/子母母婴店友情赞助,凯歌健康技术支持"
;
}
else
if
(
orgName
.
indexOf
(
"高新区"
)
>
-
1
){
// 高新区文案
msg
=
"飞鹤/百诺恩/子母母婴店友情赞助,凯歌健康技术支持"
;
}
if
(
msg
!==
''
)
{
var
tpl
=
"<div style='text-align:center;color:white;font-size: 0.24rem;margin-top: 0.45rem;margin-bottom: 0.3rem;'>"
+
msg
+
"</div>"
;
appendSection
.
after
(
tpl
);
}
});
}
}
\ No newline at end of file
showPhotos/js/page/index.js
View file @
35d477b0
...
...
@@ -3,6 +3,8 @@
loadHtmlJson
();
// 加载广告
appendAdvertisement
();
// 赞助商文案
addSupportMsg
();
var
gb_player_loaded
=
false
var
gb_rank_loaded
=
false
...
...
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