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
aef93cae
Commit
aef93cae
authored
Sep 06, 2019
by
谭新宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加控制机构名称显示逻辑
parent
d71ee2b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
common.js
showPhotos/js/page/common.js
+15
-1
index.js
showPhotos/js/page/index.js
+2
-0
signup.js
showPhotos/js/page/signup.js
+3
-1
user.js
showPhotos/js/page/user.js
+3
-1
No files found.
showPhotos/js/page/common.js
View file @
aef93cae
...
@@ -785,5 +785,18 @@ function addSupportMsg() {
...
@@ -785,5 +785,18 @@ function addSupportMsg() {
// 展示机构名称标题
// 展示机构名称标题
function
headerShowOrgName
()
{
function
headerShowOrgName
()
{
$
(
".showorgname"
).
remove
();
var
appendSection
=
$
(
'[c_typename="logo"]'
);
var
showOrgName
=
getQueryString
(
'showorgname'
);
if
(
showOrgName
!==
null
)
{
// 获取机构名称
getOrgNameFn
(
function
(
data
){
var
orgName
=
data
.
records
.
orgName
;
// 把机构名称填入到页面中
if
(
orgName
!==
''
)
{
var
tpl
=
"<div class='showorgname' style='position: absolute;top: 0.15rem;left: 0.3rem;height: 0.51rem;font-size: 0.26rem;color: white;font-weight: bold;'>"
+
orgName
+
"</div>"
;
appendSection
.
after
(
tpl
);
}
});
}
}
}
\ No newline at end of file
showPhotos/js/page/index.js
View file @
aef93cae
...
@@ -5,6 +5,8 @@ loadHtmlJson();
...
@@ -5,6 +5,8 @@ loadHtmlJson();
appendAdvertisement
();
appendAdvertisement
();
// 赞助商文案
// 赞助商文案
addSupportMsg
();
addSupportMsg
();
// 加载机构名称
headerShowOrgName
();
var
gb_player_loaded
=
false
var
gb_player_loaded
=
false
var
gb_rank_loaded
=
false
var
gb_rank_loaded
=
false
...
...
showPhotos/js/page/signup.js
View file @
aef93cae
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
var
uploadFile
=
''
;
var
uploadFile
=
''
;
// 加载广告
// 加载广告
appendAdvertisement
();
// appendAdvertisement();
// 加载机构名称
headerShowOrgName
();
// 加载html结构
// 加载html结构
loadHtmlJson
(
function
(){
loadHtmlJson
(
function
(){
...
...
showPhotos/js/page/user.js
View file @
aef93cae
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
// 加载html结构
// 加载html结构
loadHtmlJson
();
loadHtmlJson
();
// 加载广告
// 加载广告
appendAdvertisement
();
// ppendAdvertisement();
// 加载机构名称
headerShowOrgName
();
$
(
function
(){
$
(
function
(){
setToken
();
setToken
();
...
...
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