Commit 13a25f0d by 谭新宇

添加机构logo

parent b0ec53d4
...@@ -703,4 +703,27 @@ input { ...@@ -703,4 +703,27 @@ input {
width: 3rem; width: 3rem;
height: 3rem; height: 3rem;
overflow: hidden; overflow: hidden;
}
.showorgname {
padding-left: 0.55rem;
line-height: 0.51rem;
position: absolute;
top: 0.15rem;
left: 0.3rem;
height: 0.51rem;
font-size: 0.26rem;
color: white;
font-weight: bold;
}
.showorgname:after {
position: absolute;
content: "";
background-image: url('http://qnfile.icareyou.net/d16785f….jpg?imageMogr2/size-limit/100k');
background-repeat: no-repeat;
background-size: 100% 100%;
width: 0.5rem;
height: 0.5rem;
left: 0;
} }
\ No newline at end of file
...@@ -771,7 +771,9 @@ function addSupportMsg() { ...@@ -771,7 +771,9 @@ function addSupportMsg() {
// 获取机构名称 // 获取机构名称
getOrgNameFn(function(data){ getOrgNameFn(function(data){
var orgName = data.records.orgName; var orgName = data.records.orgName;
var appendSection = $("#html-template-1 .selectable-banner"); var appendSection = $("#html-template-1 .content");
var appendSection2 = $("#html-template-2 .content");
var appendSection3 = $("#html-template-3 .content");
var msg = "" var msg = ""
//  芙蓉区和天心区 //  芙蓉区和天心区
if(orgName.indexOf("芙蓉区") > -1 || orgName.indexOf("天心区") > -1 ) { if(orgName.indexOf("芙蓉区") > -1 || orgName.indexOf("天心区") > -1 ) {
...@@ -783,6 +785,8 @@ function addSupportMsg() { ...@@ -783,6 +785,8 @@ function addSupportMsg() {
if(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>"; 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); appendSection.after(tpl);
appendSection2.after(tpl);
appendSection3.after(tpl);
} }
}); });
} }
...@@ -799,7 +803,7 @@ function headerShowOrgName() { ...@@ -799,7 +803,7 @@ function headerShowOrgName() {
var orgName = data.records.orgName; var orgName = data.records.orgName;
// 把机构名称填入到页面中 // 把机构名称填入到页面中
if(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>"; var tpl = "<div class='showorgname'>"+ orgName +"</div>";
appendSection.after(tpl); appendSection.after(tpl);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment