feat: 统一文件上传接口 + 模板图片展示 + 导航页 + 侧边栏调整
This commit is contained in:
21
web/dist/site3/index.html
vendored
21
web/dist/site3/index.html
vendored
@@ -676,7 +676,10 @@ section{position:relative}
|
||||
var featHtml=feats.map(function(f){return '<li>'+safe(f)+'</li>'}).join("");
|
||||
var card=el(
|
||||
'<div class="svc-card reveal d'+((i%3)+1)+'">'+
|
||||
'<div class="svc-icon">'+safe(s.icon||"")+'</div>'+
|
||||
'<div class="svc-icon" style="position:relative;overflow:hidden">'+
|
||||
(s.image?'<img src="'+safe(s.image)+'" alt="'+safe(s.title)+'" style="position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%" onerror="this.remove()">':'')+
|
||||
safe(s.icon||"")+
|
||||
'</div>'+
|
||||
'<h3>'+safe(s.title)+'</h3>'+
|
||||
'<p>'+safe(s.description)+'</p>'+
|
||||
(featHtml?'<ul class="svc-features">'+featHtml+'</ul>':'')+
|
||||
@@ -716,6 +719,7 @@ section{position:relative}
|
||||
var item=el(
|
||||
'<article class="news-item '+flip+' reveal">'+
|
||||
'<div class="news-media" style="background:'+grad+'">'+
|
||||
(n.image?'<img src="'+safe(n.image)+'" alt="'+safe(n.title)+'" style="position:absolute;inset:0;width:100%;height:100%;object-fit:cover" onerror="this.remove()">':'')+
|
||||
'<span class="news-cat">'+safe(n.category||"洞察")+'</span>'+
|
||||
'</div>'+
|
||||
'<div class="news-body">'+
|
||||
@@ -747,7 +751,10 @@ section{position:relative}
|
||||
team.forEach(function(m,i){
|
||||
var card=el(
|
||||
'<div class="team-card reveal d'+((i%4)+1)+'">'+
|
||||
'<div class="team-avatar" style="background:'+avatarStyle(m.name)+'">'+initial(m.name)+'</div>'+
|
||||
'<div class="team-avatar" style="background:'+avatarStyle(m.name)+'">'+
|
||||
initial(m.name)+
|
||||
(m.avatar?'<img src="'+safe(m.avatar)+'" alt="'+safe(m.name)+'" style="position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover" onerror="this.remove()">':'')+
|
||||
'</div>'+
|
||||
'<h4>'+safe(m.name)+'</h4>'+
|
||||
'<div class="team-pos">'+safe(m.position)+'</div>'+
|
||||
'<p class="team-bio">'+safe(m.bio)+'</p>'+
|
||||
@@ -796,6 +803,16 @@ section{position:relative}
|
||||
}
|
||||
if(company.description) document.getElementById("heroDesc").textContent=company.description;
|
||||
document.title=name+" | 高端商务咨询";
|
||||
/* 企业 Logo 图片注入 */
|
||||
if(company.logo){
|
||||
var logoDot=document.querySelector('.logo-dot');
|
||||
if(logoDot){
|
||||
logoDot.style.width='28px';
|
||||
logoDot.style.height='28px';
|
||||
logoDot.style.overflow='hidden';
|
||||
logoDot.insertAdjacentHTML('beforeend','<img src="'+safe(company.logo)+'" alt="logo" style="width:100%;height:100%;object-fit:cover" onerror="this.remove()">');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- 弹窗 ---- */
|
||||
|
||||
Reference in New Issue
Block a user