0908
This commit is contained in:
321
office-site/assets/css/style.css
Normal file
321
office-site/assets/css/style.css
Normal file
@@ -0,0 +1,321 @@
|
||||
/* 小米风格企业官网 - 全局样式 */
|
||||
:root {
|
||||
--mi-orange: #ff6900;
|
||||
--mi-orange-dark: #e65c00;
|
||||
--mi-orange-light: #fff3ea;
|
||||
--text: #333333;
|
||||
--text-sub: #757575;
|
||||
--text-light: #9e9e9e;
|
||||
--bg: #f5f5f5;
|
||||
--bg-soft: #fafafa;
|
||||
--border: #e6e6e6;
|
||||
--radius: 12px;
|
||||
--shadow: 0 4px 16px rgba(0, 0, 0, .06);
|
||||
--shadow-hover: 0 12px 28px rgba(0, 0, 0, .12);
|
||||
--header-h: 72px;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||
color: var(--text);
|
||||
background: #fff;
|
||||
line-height: 1.7;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
a { color: inherit; text-decoration: none; }
|
||||
img { display: block; max-width: 100%; }
|
||||
ul { list-style: none; }
|
||||
|
||||
.container { width: 1226px; max-width: 100%; margin: 0 auto; padding: 0 16px; }
|
||||
|
||||
/* ============ 顶部导航 ============ */
|
||||
.header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background: rgba(255, 255, 255, .96);
|
||||
backdrop-filter: saturate(180%) blur(8px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.header-inner {
|
||||
height: var(--header-h);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 40px;
|
||||
}
|
||||
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
|
||||
.logo img { width: 36px; height: 36px; }
|
||||
.logo span { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
|
||||
|
||||
.nav { display: flex; gap: 36px; flex: 1; }
|
||||
.nav a {
|
||||
font-size: 15px;
|
||||
color: var(--text);
|
||||
padding: 6px 0;
|
||||
position: relative;
|
||||
transition: color .2s;
|
||||
}
|
||||
.nav a:hover { color: var(--mi-orange); }
|
||||
.nav a.active { color: var(--mi-orange); font-weight: 600; }
|
||||
.nav a.active::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
bottom: -2px;
|
||||
width: 24px;
|
||||
height: 3px;
|
||||
border-radius: 2px;
|
||||
background: var(--mi-orange);
|
||||
}
|
||||
|
||||
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
|
||||
|
||||
/* 按钮 */
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
height: 44px;
|
||||
padding: 0 26px;
|
||||
border-radius: 22px;
|
||||
font-size: 15px;
|
||||
border: 1px solid transparent;
|
||||
cursor: pointer;
|
||||
transition: all .2s;
|
||||
font-family: inherit;
|
||||
}
|
||||
.btn-primary { background: var(--mi-orange); color: #fff; }
|
||||
.btn-primary:hover { background: var(--mi-orange-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 105, 0, .3); }
|
||||
.btn-outline { border-color: var(--border); color: var(--text); background: #fff; }
|
||||
.btn-outline:hover { border-color: var(--mi-orange); color: var(--mi-orange); }
|
||||
.btn-sm { height: 36px; padding: 0 18px; font-size: 14px; border-radius: 18px; }
|
||||
.btn-block { width: 100%; }
|
||||
|
||||
/* ============ Hero ============ */
|
||||
.hero {
|
||||
background: linear-gradient(135deg, #fff7f1 0%, #f7f8fa 55%, #eef1f5 100%);
|
||||
padding: 72px 0 80px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero-inner {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 48px;
|
||||
align-items: center;
|
||||
}
|
||||
.hero-tag {
|
||||
display: inline-block;
|
||||
background: var(--mi-orange-light);
|
||||
color: var(--mi-orange);
|
||||
font-size: 13px;
|
||||
padding: 6px 14px;
|
||||
border-radius: 14px;
|
||||
margin-bottom: 22px;
|
||||
}
|
||||
.hero h1 { font-size: 48px; line-height: 1.25; font-weight: 800; letter-spacing: 1px; }
|
||||
.hero h1 em { font-style: normal; color: var(--mi-orange); }
|
||||
.hero p { margin-top: 20px; font-size: 17px; color: var(--text-sub); max-width: 460px; }
|
||||
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
|
||||
.hero-img { display: flex; justify-content: center; }
|
||||
.hero-img img { width: 100%; max-width: 460px; }
|
||||
|
||||
/* ============ 通用区块 ============ */
|
||||
.section { padding: 72px 0; }
|
||||
.section-soft { background: var(--bg); }
|
||||
.section-head { text-align: center; margin-bottom: 44px; }
|
||||
.section-head h2 { font-size: 32px; font-weight: 700; }
|
||||
.section-head p { margin-top: 10px; color: var(--text-sub); font-size: 15px; }
|
||||
|
||||
/* 卡片 */
|
||||
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: var(--radius);
|
||||
padding: 34px 30px;
|
||||
box-shadow: var(--shadow);
|
||||
transition: all .25s ease;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: #ffe0cc; }
|
||||
.card .icon {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.card h3 { font-size: 20px; margin-bottom: 10px; }
|
||||
.card p { color: var(--text-sub); font-size: 14px; min-height: 48px; }
|
||||
.card .more {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: 18px;
|
||||
color: var(--mi-orange);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.card .more::after { content: "→"; transition: transform .2s; }
|
||||
.card:hover .more::after { transform: translateX(4px); }
|
||||
|
||||
/* 数据条 */
|
||||
.stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
background: #fff;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
overflow: hidden;
|
||||
}
|
||||
.stats .item { padding: 34px 20px; text-align: center; border-right: 1px solid var(--border); }
|
||||
.stats .item:last-child { border-right: none; }
|
||||
.stats .num { font-size: 32px; font-weight: 800; color: var(--mi-orange); }
|
||||
.stats .label { font-size: 14px; color: var(--text-sub); margin-top: 4px; }
|
||||
|
||||
/* ============ 内页 ============ */
|
||||
.page-banner {
|
||||
background: linear-gradient(135deg, #2b2b2b 0%, #1f1f1f 100%);
|
||||
color: #fff;
|
||||
padding: 56px 0;
|
||||
}
|
||||
.page-banner h1 { font-size: 36px; font-weight: 700; }
|
||||
.page-banner p { margin-top: 10px; color: rgba(255, 255, 255, .7); font-size: 15px; }
|
||||
|
||||
.panel {
|
||||
background: #fff;
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 36px;
|
||||
}
|
||||
.panel + .panel { margin-top: 24px; }
|
||||
.panel h2 { font-size: 22px; margin-bottom: 8px; }
|
||||
.panel .desc { color: var(--text-sub); font-size: 14px; margin-bottom: 24px; }
|
||||
|
||||
/* 占位区块 */
|
||||
.placeholder {
|
||||
border: 1px dashed #d5d5d5;
|
||||
border-radius: 10px;
|
||||
background: repeating-linear-gradient(45deg, #fcfcfc, #fcfcfc 10px, #f7f7f7 10px, #f7f7f7 20px);
|
||||
color: var(--text-light);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
text-align: center;
|
||||
padding: 40px 20px;
|
||||
font-size: 14px;
|
||||
}
|
||||
.placeholder .ph-title { font-size: 16px; color: var(--text-sub); font-weight: 600; }
|
||||
.placeholder.tall { min-height: 260px; }
|
||||
.placeholder.short { min-height: 120px; }
|
||||
|
||||
/* 目录 / 章节骨架 */
|
||||
.chapter-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
|
||||
.chapter {
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 24px;
|
||||
transition: all .2s;
|
||||
}
|
||||
.chapter:hover { border-color: var(--mi-orange); }
|
||||
.chapter h4 { font-size: 16px; margin-bottom: 6px; }
|
||||
.chapter p { font-size: 13px; color: var(--text-light); }
|
||||
|
||||
/* 表单 */
|
||||
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
|
||||
.input {
|
||||
flex: 1;
|
||||
min-width: 240px;
|
||||
height: 48px;
|
||||
padding: 0 18px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
font-size: 15px;
|
||||
font-family: inherit;
|
||||
outline: none;
|
||||
transition: border-color .2s;
|
||||
}
|
||||
.input:focus { border-color: var(--mi-orange); }
|
||||
.form-tip { margin-top: 12px; font-size: 13px; color: var(--text-light); }
|
||||
|
||||
.result-box {
|
||||
margin-top: 24px;
|
||||
border-top: 1px solid var(--border);
|
||||
padding-top: 24px;
|
||||
}
|
||||
.result-empty { text-align: center; padding: 40px 0; color: var(--text-light); }
|
||||
.result-empty .big { font-size: 40px; margin-bottom: 10px; opacity: .35; }
|
||||
|
||||
table.result-table { width: 100%; border-collapse: collapse; font-size: 14px; }
|
||||
table.result-table th,
|
||||
table.result-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
|
||||
table.result-table th { background: var(--bg-soft); color: var(--text-sub); font-weight: 600; }
|
||||
.pass { color: #52c41a; font-weight: 600; }
|
||||
|
||||
/* 客服 */
|
||||
.chat-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
|
||||
.chat-window {
|
||||
background: var(--bg-soft);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.chat-body { height: 380px; overflow-y: auto; padding: 20px; background: #fff; }
|
||||
.bubble { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 14px; line-height: 1.6; }
|
||||
.bubble.bot { background: var(--bg-soft); border-top-left-radius: 4px; }
|
||||
.bubble.me { background: var(--mi-orange); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
|
||||
.chat-foot { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--border); background: #fff; }
|
||||
|
||||
.quick-list { display: flex; flex-direction: column; gap: 10px; }
|
||||
.quick-item {
|
||||
background: #fff;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 12px 14px;
|
||||
font-size: 14px;
|
||||
cursor: pointer;
|
||||
transition: all .2s;
|
||||
}
|
||||
.quick-item:hover { border-color: var(--mi-orange); color: var(--mi-orange); }
|
||||
|
||||
/* ============ 页脚 ============ */
|
||||
.footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; }
|
||||
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
|
||||
.footer h5 { font-size: 15px; margin-bottom: 14px; }
|
||||
.footer li { font-size: 13px; color: var(--text-sub); padding: 5px 0; }
|
||||
.footer li:hover { color: var(--mi-orange); }
|
||||
.footer .brand p { font-size: 13px; color: var(--text-sub); margin-top: 12px; }
|
||||
.footer-bottom {
|
||||
margin-top: 32px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--border);
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: var(--text-light);
|
||||
}
|
||||
.footer-bottom a { color: var(--text-light); transition: color .2s; }
|
||||
.footer-bottom a:hover { color: var(--mi-orange); }
|
||||
|
||||
/* ============ 响应式 ============ */
|
||||
@media (max-width: 1080px) {
|
||||
.container { width: 100%; }
|
||||
.hero-inner { grid-template-columns: 1fr; text-align: center; }
|
||||
.hero p { margin-left: auto; margin-right: auto; }
|
||||
.hero-actions { justify-content: center; }
|
||||
.grid-3 { grid-template-columns: repeat(2, 1fr); }
|
||||
.stats { grid-template-columns: repeat(2, 1fr); }
|
||||
.stats .item:nth-child(2) { border-right: none; }
|
||||
.chat-layout { grid-template-columns: 1fr; }
|
||||
.footer-cols { grid-template-columns: repeat(2, 1fr); }
|
||||
}
|
||||
@media (max-width: 720px) {
|
||||
.nav { gap: 18px; overflow-x: auto; }
|
||||
.hero h1 { font-size: 34px; }
|
||||
.grid-3, .chapter-list { grid-template-columns: 1fr; }
|
||||
.section { padding: 48px 0; }
|
||||
}
|
||||
77
office-site/assets/img/hero-nas.svg
Normal file
77
office-site/assets/img/hero-nas.svg
Normal file
@@ -0,0 +1,77 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 420" width="480" height="420">
|
||||
<defs>
|
||||
<linearGradient id="body" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#f4f6f8"/>
|
||||
<stop offset="1" stop-color="#dfe4ea"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="bay" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#ffffff"/>
|
||||
<stop offset="1" stop-color="#e9edf2"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="acc" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#ff8a3d"/>
|
||||
<stop offset="1" stop-color="#ff6900"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
|
||||
<ellipse cx="240" cy="392" rx="140" ry="16" fill="#000" opacity=".07"/>
|
||||
|
||||
<!-- 机箱 -->
|
||||
<rect x="140" y="26" width="200" height="336" rx="18" fill="url(#body)" stroke="#c7ced6" stroke-width="2"/>
|
||||
<rect x="140" y="26" width="200" height="336" rx="18" fill="none" stroke="#ffffff" stroke-width="1" opacity=".6"/>
|
||||
|
||||
<!-- 顶部散热格栅 -->
|
||||
<g stroke="#c2c9d1" stroke-width="3" stroke-linecap="round">
|
||||
<line x1="172" y1="48" x2="308" y2="48"/>
|
||||
<line x1="172" y1="58" x2="308" y2="58"/>
|
||||
</g>
|
||||
|
||||
<!-- 四盘位 -->
|
||||
<g>
|
||||
<rect x="158" y="78" width="164" height="52" rx="7" fill="url(#bay)" stroke="#ccd3da"/>
|
||||
<rect x="168" y="90" width="46" height="28" rx="4" fill="#c8d0d8"/>
|
||||
<rect x="222" y="96" width="88" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<rect x="222" y="108" width="60" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<circle cx="300" cy="99" r="4" fill="#52c41a"/>
|
||||
|
||||
<rect x="158" y="138" width="164" height="52" rx="7" fill="url(#bay)" stroke="#ccd3da"/>
|
||||
<rect x="168" y="150" width="46" height="28" rx="4" fill="#c8d0d8"/>
|
||||
<rect x="222" y="156" width="88" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<rect x="222" y="168" width="60" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<circle cx="300" cy="159" r="4" fill="#52c41a"/>
|
||||
|
||||
<rect x="158" y="198" width="164" height="52" rx="7" fill="url(#bay)" stroke="#ccd3da"/>
|
||||
<rect x="168" y="210" width="46" height="28" rx="4" fill="#c8d0d8"/>
|
||||
<rect x="222" y="216" width="88" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<rect x="222" y="228" width="60" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<circle cx="300" cy="219" r="4" fill="#52c41a"/>
|
||||
|
||||
<rect x="158" y="258" width="164" height="52" rx="7" fill="url(#bay)" stroke="#ccd3da"/>
|
||||
<rect x="168" y="270" width="46" height="28" rx="4" fill="#c8d0d8"/>
|
||||
<rect x="222" y="276" width="88" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<rect x="222" y="288" width="60" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<circle cx="300" cy="279" r="4" fill="#52c41a"/>
|
||||
</g>
|
||||
|
||||
<!-- 底部品牌条与指示灯 -->
|
||||
<rect x="158" y="324" width="164" height="22" rx="11" fill="#2f3540"/>
|
||||
<circle cx="176" cy="335" r="5" fill="url(#acc)"/>
|
||||
<rect x="192" y="332" width="70" height="6" rx="3" fill="#5a626e"/>
|
||||
|
||||
<!-- 底座 -->
|
||||
<rect x="176" y="362" width="30" height="10" rx="4" fill="#b9c1c9"/>
|
||||
<rect x="274" y="362" width="30" height="10" rx="4" fill="#b9c1c9"/>
|
||||
|
||||
<!-- 装饰:网络/云 -->
|
||||
<g opacity=".9">
|
||||
<path d="M92 120a26 26 0 0 1 25-19 30 30 0 0 1 56 8 22 22 0 0 1-3 43h-56a26 26 0 0 1-22-32z" fill="#ffffff" stroke="#ff6900" stroke-width="2" opacity=".85"/>
|
||||
<path d="M112 152v26M132 152v18M152 152v26" stroke="#ff6900" stroke-width="2" stroke-linecap="round" opacity=".7"/>
|
||||
</g>
|
||||
<g opacity=".9">
|
||||
<rect x="368" y="96" width="72" height="52" rx="8" fill="#ffffff" stroke="#c7ced6" stroke-width="2"/>
|
||||
<rect x="380" y="112" width="48" height="6" rx="3" fill="#ff6900" opacity=".8"/>
|
||||
<rect x="380" y="124" width="34" height="6" rx="3" fill="#dfe4ea"/>
|
||||
<circle cx="404" cy="168" r="16" fill="#fff" stroke="#ff6900" stroke-width="2"/>
|
||||
<path d="M398 168l5 5 9-10" stroke="#ff6900" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.8 KiB |
15
office-site/assets/img/icon-guide.svg
Normal file
15
office-site/assets/img/icon-guide.svg
Normal file
@@ -0,0 +1,15 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160" width="160" height="160">
|
||||
<rect x="18" y="18" width="104" height="124" rx="12" fill="#fff7f1" stroke="#ffd0ad" stroke-width="3"/>
|
||||
<path d="M104 18h6a12 12 0 0 1 12 12v18h-18z" fill="#ffe3cf" stroke="#ffd0ad" stroke-width="3"/>
|
||||
<g fill="#ff6900" opacity=".85">
|
||||
<rect x="38" y="46" width="64" height="7" rx="3.5"/>
|
||||
<rect x="38" y="64" width="48" height="7" rx="3.5"/>
|
||||
</g>
|
||||
<g fill="#d8dee6">
|
||||
<rect x="38" y="88" width="72" height="6" rx="3"/>
|
||||
<rect x="38" y="102" width="72" height="6" rx="3"/>
|
||||
<rect x="38" y="116" width="44" height="6" rx="3"/>
|
||||
</g>
|
||||
<circle cx="118" cy="118" r="26" fill="#fff" stroke="#ff6900" stroke-width="3"/>
|
||||
<path d="M110 118l6 6 12-13" stroke="#ff6900" stroke-width="4" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 860 B |
12
office-site/assets/img/icon-report.svg
Normal file
12
office-site/assets/img/icon-report.svg
Normal file
@@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160" width="160" height="160">
|
||||
<rect x="30" y="20" width="100" height="120" rx="12" fill="#fff7f1" stroke="#ffd0ad" stroke-width="3"/>
|
||||
<rect x="62" y="10" width="36" height="22" rx="6" fill="#fff" stroke="#ff6900" stroke-width="3"/>
|
||||
<g fill="#d8dee6">
|
||||
<rect x="50" y="58" width="60" height="6" rx="3"/>
|
||||
<rect x="50" y="74" width="60" height="6" rx="3"/>
|
||||
<rect x="50" y="90" width="38" height="6" rx="3"/>
|
||||
</g>
|
||||
<circle cx="112" cy="104" r="28" fill="#fff" stroke="#ff6900" stroke-width="3"/>
|
||||
<path d="M100 104l8 9 18-20" stroke="#ff6900" stroke-width="5" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<rect x="50" y="118" width="30" height="6" rx="3" fill="#ff6900" opacity=".7"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 785 B |
13
office-site/assets/img/icon-support.svg
Normal file
13
office-site/assets/img/icon-support.svg
Normal file
@@ -0,0 +1,13 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 160 160" width="160" height="160">
|
||||
<path d="M28 92a52 52 0 0 1 104 0" fill="none" stroke="#ff6900" stroke-width="6" stroke-linecap="round"/>
|
||||
<rect x="14" y="84" width="22" height="34" rx="10" fill="#ff6900"/>
|
||||
<rect x="124" y="84" width="22" height="34" rx="10" fill="#ff6900"/>
|
||||
<path d="M28 112v6a12 12 0 0 0 12 12h24" fill="none" stroke="#ff6900" stroke-width="6" stroke-linecap="round"/>
|
||||
<circle cx="76" cy="134" r="10" fill="#fff" stroke="#ff6900" stroke-width="4"/>
|
||||
<g fill="#d8dee6">
|
||||
<rect x="52" y="34" width="56" height="6" rx="3"/>
|
||||
<rect x="60" y="48" width="40" height="6" rx="3"/>
|
||||
</g>
|
||||
<circle cx="118" cy="46" r="16" fill="#fff7f1" stroke="#ffd0ad" stroke-width="3"/>
|
||||
<path d="M112 46l5 5 9-10" stroke="#ff6900" stroke-width="4" fill="none" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 887 B |
12
office-site/assets/img/logo.svg
Normal file
12
office-site/assets/img/logo.svg
Normal file
@@ -0,0 +1,12 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
||||
<defs>
|
||||
<linearGradient id="lg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#ff8a3d"/>
|
||||
<stop offset="1" stop-color="#ff6900"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="2" y="2" width="60" height="60" rx="16" fill="url(#lg)"/>
|
||||
<rect x="14" y="16" width="36" height="10" rx="5" fill="#fff"/>
|
||||
<rect x="14" y="30" width="36" height="10" rx="5" fill="#fff" opacity=".85"/>
|
||||
<rect x="14" y="44" width="20" height="6" rx="3" fill="#fff" opacity=".7"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 574 B |
66
office-site/assets/js/main.js
Normal file
66
office-site/assets/js/main.js
Normal file
@@ -0,0 +1,66 @@
|
||||
// 站点交互(占位实现,接入后端后替换为真实接口)
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
/* ---------- 报告查询 ---------- */
|
||||
var form = document.getElementById('reportForm');
|
||||
if (form) {
|
||||
var sn = document.getElementById('sn');
|
||||
var empty = document.getElementById('resultEmpty');
|
||||
var detail = document.getElementById('resultDetail');
|
||||
|
||||
form.addEventListener('submit', function (e) {
|
||||
e.preventDefault();
|
||||
var val = (sn.value || '').trim();
|
||||
if (!val) {
|
||||
alert('请输入机身编号 / SN');
|
||||
sn.focus();
|
||||
return;
|
||||
}
|
||||
// TODO 接口:GET /api/reports?sn=xxx → 渲染真实报告数据
|
||||
empty.style.display = 'none';
|
||||
detail.style.display = 'block';
|
||||
detail.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
|
||||
});
|
||||
}
|
||||
|
||||
/* ---------- 智能客服 ---------- */
|
||||
var chatForm = document.getElementById('chatForm');
|
||||
if (chatForm) {
|
||||
var input = document.getElementById('chatInput');
|
||||
var body = document.getElementById('chatBody');
|
||||
|
||||
function addBubble(text, who) {
|
||||
var el = document.createElement('div');
|
||||
el.className = 'bubble ' + who;
|
||||
el.textContent = text;
|
||||
body.appendChild(el);
|
||||
body.scrollTop = body.scrollHeight;
|
||||
}
|
||||
|
||||
chatForm.addEventListener('submit', function (e) {
|
||||
e.preventDefault();
|
||||
var text = (input.value || '').trim();
|
||||
if (!text) return;
|
||||
addBubble(text, 'me');
|
||||
input.value = '';
|
||||
|
||||
// TODO 接口:POST /api/chat → 返回真实回复
|
||||
setTimeout(function () {
|
||||
addBubble('已收到你的问题:' + '「' + text + '」。智能客服接口尚未接入,这里将展示真实回复。', 'bot');
|
||||
}, 400);
|
||||
});
|
||||
}
|
||||
|
||||
/* ---------- 常见问题快捷提问 ---------- */
|
||||
var quickList = document.getElementById('quickList');
|
||||
if (quickList) {
|
||||
var chatInput = document.getElementById('chatInput');
|
||||
quickList.addEventListener('click', function (e) {
|
||||
var item = e.target.closest('.quick-item');
|
||||
if (!item || !chatInput) return;
|
||||
chatInput.value = item.textContent.trim();
|
||||
chatInput.focus();
|
||||
});
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user