This commit is contained in:
arlenops
2025-11-20 12:30:45 +08:00
commit 2c0fbc9d81
462 changed files with 35368 additions and 0 deletions

904
common/common.css Normal file
View File

@@ -0,0 +1,904 @@
.section-content {
padding: 80px 20px;
max-width: 1440px;
margin: 0 auto;
}
.section-title .section-desc {
margin-top: 16px;
font-size: 16px;
color: rgba(0, 0, 0, 0.6);
}
.section-bg {
color: #fff;
}
.section-bg .section-title .section-desc {
color: rgba(255, 255, 255, 0.90);
}
.section-p {
padding: 0 20px;
}
.common-empty {
width: 100%;
min-height: 500px;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.common-empty img {
max-width: 100%;
max-height: 100%;
display: block;
}
.common-empty .des {
font-size: 16px;
color: rgba(0, 0, 0, 0.60);
}
.section-w {
max-width: 100%;
}
.section-title {
text-align: center;
}
.document .section-content {
max-width: unset;
}
#header {
position: sticky;
top: 0;
background: #fff;
z-index: 888;
}
.nav-shadow {
top: 0;
box-shadow: 0px 0px 8px rgba(52, 52, 52, 0.08);
}
.nav-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px;
}
.nav-header .nav-left {
display: flex;
flex-wrap: wrap;
align-items: center;
}
.nav-header .nav-left .nav-icon img {
width: 135px;
height: 30px;
margin-right: 50px;
}
.nav-menu {
display: flex;
}
.nav-menu .nav-item {
color: #333;
display: flex;
align-items: center;
height: 72px;
padding: 0 20px;
font-size: 16px;
cursor: pointer;
border-bottom: 2px solid transparent;
}
.nav-menu .nav-item:hover {
border-bottom: 2px solid #FF6739;
}
.nav-right {
display: flex;
align-items: center;
font-size: 14px;
}
.nav-right .control {
margin: 0 20px;
color: #333;
}
.breadcrumb {
padding-left: 0;
margin-bottom: 8px;
background-color: transparent;
}
/* 菜单栏 */
.nav-cont {
position: absolute;
top: 72px;
width: 100%;
overflow: hidden;
background: #F7F8FA;
transition: all .5s;
height: 0px;
box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.16);
z-index: 2;
}
.nav-cont .section-content {
padding: 0;
}
.nav-content {
display: flex;
flex-wrap: wrap;
gap: 20px;
padding: 60px 20px;
position: relative;
box-sizing: border-box;
}
.nav-content a {
width: calc(25% - 15px);
}
.nav-cont .nav-cont-menu {
display: none;
}
.nav-cont .nav-cont-empty {
display: none !important;
}
.nav-item-box {
min-width: 335px;
height: 96px;
padding: 24px 20px;
border-radius: 3px;
background: #fff;
display: flex;
cursor: pointer;
box-shadow: 0px 0px 8px rgba(52, 52, 52, 0.08);
}
.nav-item-box:hover .title {
color: rgba(255, 103, 57, 1);
}
.nav-item-box img {
width: 48px;
height: 48px;
}
.nav-item-box .item-box-title {
display: flex;
justify-content: space-between;
flex-direction: column;
margin-left: 16px;
font-size: 16px;
color: rgba(0, 0, 0, 0.9);
}
.nav-item-box .item-box-title .desc {
font-size: 14px;
color: rgba(0, 0, 0, 0.4);
}
.nav-header .login-in {
cursor: pointer;
position: relative;
height: 72px;
display: flex;
align-items: center;
z-index: 999;
padding: 0 32px;
}
.nav-header .login-in::after {
content: '';
position: absolute;
left: 0;
top: 50%;
height: 32px;
transform: translateY(-50%);
border-left: 1px solid #E6EAED;
}
.nav-header .login-in:hover .login-menu {
display: block;
}
.nav-header .login-in .head-img {
width: 32px;
height: 32px;
background: #eee;
border: 1px solid #E6EAED;
border-radius: 50%;
color: #FFFFFF;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
}
.nav-header .login-in .name {
display: inline-block;
max-width: 140px;
}
.nav-header .login-in .login-menu {
display: none;
padding: 8px;
position: absolute;
top: 72px;
left: 0;
width: 157px;
height: 188px;
background: #FEFFFF;
border: 1px solid #DCDCDC;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
opacity: 1;
border-radius: 3px;
}
.nav-header .login-in .login-menu .login-menu-item {
cursor: pointer;
height: 40px;
padding: 10px 12px;
}
.nav-header .login-in .login-menu .login-menu-item:hover {
background: rgba(255, 103, 57, 0.08);
color: rgba(255, 103, 57, 1);
}
.nav-header .login-in .login-menu .login-menu-item .real-name {
display: inline-block;
text-align: center;
border: 1px solid #FF6739;
color: rgba(255, 103, 57, 1);
font-size: 12px;
width: 44px;
height: 18px;
border-radius: 3px;
}
.nav-header .login-in .login-menu .login-menu-item .no-real-name {
border: 1px solid #E34D59;
color: rgba(227, 77, 89, 1);
}
/* 底部导航栏 */
.footer {
background: #1E2130;
color: rgba(255, 255, 255, 0.90);
}
.register-advert {
width: 100%;
height: 75px;
background: linear-gradient(90deg, #EF4C1D 0%, #F41A10 100%);
/* background-image: url(../assets/img/index/register@2x.png);
background-repeat: no-repeat;
background-size: cover; */
}
.register-advert a {
text-align: center;
}
.register-advert a img {
max-width: 100%;
margin: 0 auto;
}
.section-promise {
background-color: #1A1C2A;
}
.promise {
display: flex;
flex-wrap: wrap;
}
.promise-box {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
min-width: 200px;
padding: 28px 0;
font-size: 16px;
}
.promise-box img {
height: 32px;
width: 32px;
}
.footer-content {
background-color: rgba(30, 33, 48, 1);
font-size: 14px;
}
.footer-content .footer-nav {
display: flex;
justify-content: space-between;
padding: 40px 0;
}
.footer .footer-nav .footer-nav-left {
margin-right: 120px;
}
.footer-content .footer-nav .footer-nav-left {
display: flex;
width: 100%;
gap: 30px;
}
.footer-nav-box {
flex: 1;
}
.footer-nav-box .footer-nav-head {
padding: 12px 0;
width: 120px;
border-bottom: 1px solid #2D3544;
}
.footer-nav-box .footer-nav-cont {
padding-top: 20px;
}
.footer-nav-box .footer-nav-item {
margin-bottom: 7px;
}
.footer-content .footer-nav .footer-nav-right {
width: 210px;
}
.footer-nav-right .footer-nav-box .footer-nav-item {
width: 210px;
color: rgba(255, 255, 255, 0.50);
}
.footer-nav-right .qr-code img {
margin-top: 20px;
width: 80px;
height: 80px;
}
.footer .footer-link {
display: none;
font-size: 13px;
color: #666;
height: 50px;
line-height: 50px;
border-top: 1px solid #2D3544;
}
.footer .link-hover {
color: rgba(255, 255, 255, 0.50);
}
.footer .link-hover:hover {
color: rgba(255, 103, 57, 1);
}
.footer .footer-link a {
margin-right: 10px;
color: rgba(255, 255, 255, 0.50);
}
.footer .footer-link a:hover {
margin-right: 10px;
color: rgba(255, 103, 57, 1);
}
.footer .footer-record {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid #2D3544;
height: 50px;
line-height: 50px;
font-size: 13px;
color: #666;
}
.jr-tabs {
display: flex;
border-bottom: 1px solid #E6EAED;
}
.no-login,
.login-in {
margin-left: 20px;
}
.jr-tabs .title {
color: #666;
font-size: 18px;
width: auto !important;
padding: 10px 40px;
cursor: pointer;
margin-right: 0 !important;
}
.jr-tabs .title.swiper-slide-thumb-active {
color: rgba(255, 103, 57, 1);
border-bottom: 2px solid #FF6739;
}
.jr-tabs .title:hover {
color: rgba(255, 103, 57, 1);
border-bottom: 2px solid #FF6739;
}
/* banner */
.server-banner {
background: rgba(247, 248, 250, 1);
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
.server-banner2 {
background: rgba(0, 0, 0, 0.40);
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
.server-banner-desc {
font-size: 16px;
max-width: 700px;
margin-top: 20px;
margin-bottom: 90px;
}
.server-banner-desc2 {
font-size: 16px;
margin-top: 20px;
margin-bottom: 10px;
}
.banner-cloud {
background-image: url('../assets/img/cloud/banner.png');
}
.banner-trademark {
background-image: url('../assets/img/trademark/banner.png');
}
.banner-dedicated {
background-image: url('../assets/img/dedicated/banner.png');
}
.banner-domain {
background-image: url('../assets/img/domain/banner.png');
}
.banner-ssl {
background-image: url('../assets/img/ssl/banner.png');
}
.banner-icp {
background-image: url('../assets/img/icp/banner.png');
}
.banner-sms {
background-image: url('../assets/img/sms/banner.png');
}
.banner-trusteeship {
background-image: url('../assets/img/trusteeship/banner.png');
}
.banner-rent {
background-image: url('../assets/img/rent/banner.png');
}
.banner-document {
background-image: url('../assets/img/document/banner.png');
}
.banner-announce {
background-image: url('../assets/img/document/banner.png');
}
.banner-guarantee {
background: url('../assets/img/guarantee/banner.png') no-repeat center center;
background-size: cover;
}
.banner-reward {
background-image: url('../assets/img/reward/banner.png');
color: #fff;
}
.banner-contact {
background: url('../assets/img/guarantee/contact.png') no-repeat center center;
background-size: cover;
}
.feedback-banner {
background: url('../assets/img/guarantee/recruit.png') no-repeat center center;
background-size: cover;
}
.activities-banner {
height: 440px;
background: url('../assets/img/active/active_banner.png') no-repeat;
background-size: 100%;
}
.banner-reward .btn-normal {
padding: 8px 32px;
}
/* 搜索 */
.input-search {
display: flex;
position: relative;
}
.input-search input {
padding-left: 15px;
font-size: 20px;
margin-top: 30px;
margin-bottom: 20px;
width: 30%;
height: 56px;
background: #FFFFFF;
border: 1px solid #FF6739;
}
.trademark-box .input-search input {
border-left: none;
}
.domain-search .input-search input {
border-right: none;
}
.input-search .search-btn {
cursor: pointer;
color: #fff;
margin-top: 30px;
margin-bottom: 20px;
padding: 18px 32px;
background: rgba(255, 103, 57, 1);
}
.input-search .input-search-select {
cursor: pointer;
text-align: center;
line-height: 56px;
width: 124px;
height: 56px;
margin-top: 30px;
margin-bottom: 20px;
background: #fff;
border: 1px solid #FF6739;
border-left: none;
}
.input-search .input-search-left-select {
border: 1px solid #FF6739;
border-right: none;
}
.input-search .input-search-s {
position: relative;
line-height: 56px;
height: 56px;
width: 124px;
display: flex;
justify-content: center;
}
.input-search .input-search-select .input-search-s::before {
content: '';
position: absolute;
top: 16px;
left: 0;
background: #EDEDED;
height: 24px;
width: 1px;
}
.input-search .input-search-r {
position: relative;
line-height: 56px;
height: 56px;
width: 124px;
display: flex;
justify-content: center;
}
.input-search .input-search-select .input-search-r::before {
content: '';
position: absolute;
top: 16px;
right: 0;
background: #EDEDED;
height: 24px;
width: 1px;
}
.input-search .input-search-select .select-box {
display: none;
padding: 16px 10px;
position: absolute;
top: 86px;
left: 0;
width: calc(50% + 124px);
background: #FEFFFF;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
}
.input-search .input-search-select .select-box-item {
display: flex;
align-items: center;
justify-content: center;
margin: 10px;
width: 110px;
height: 40px;
border: 1px solid #E6EAED;
}
.input-search .input-search-select .select-box-item:hover {
border: 1px solid #FF6739;
color: #FF6739;
}
.input-search .input-search-select .iconfont {
font-size: 14px;
margin-left: 10px;
}
.link-search-group {
display: flex;
align-items: center;
margin-left: -12px;
}
.link-search-group .link-search-to {
padding: 0 12px;
display: flex;
border-right: 1px solid #D6D6D6;
}
.link-search-group .link-search-to:nth-child(4) {
border: none;
}
.link-search-group .price {
margin-left: 5px;
color: rgba(255, 103, 57, 1);
}
/* 分页 */
.jr-page .pagination .page-number.active {
color: #fff;
border: 1px solid rgba(255, 103, 57, 1);
background: rgba(255, 103, 57, 1);
}
.jr-page .pagination .page-number:hover {
background: rgba(255, 103, 57, 1);
color: #fff !important;
}
.jr-page .pagination>li a {
margin: 0 4px;
border: 1px solid #DCDCDC;
border-radius: 3px;
color: rgba(0, 0, 0, 0.60);
}
.jr-page .pagination>li .page-ellipsis {
border: none;
}
.jr-page .pagination>li .page-ellipsis:hover {
background: transparent;
}
.jr-page .pagination>li:first-child>a {
border: none;
}
.jr-page .pagination>li:last-child>a {
border: none;
}
.jr-select {
width: 100px;
border-radius: 5px;
position: relative;
}
.jr-select select {
border: 1px solid #EDEDED;
border-radius: 5px;
outline: none;
width: 100%;
height: 32px;
line-height: 32px;
appearance: none;
padding-left: 12px;
}
.jr-select:after {
content: "\e674";
width: 14px;
height: 8px;
font-size: 12px;
font-family: 'iconfont';
position: absolute;
right: 20px;
top: 15%;
pointer-events: none;
}
/* 侧边 */
.aside-tools {
position: fixed;
top: 45%;
right: 0;
z-index: 3;
}
.aside-tools .tools-list {
width: 40px;
background: #FFFFFF;
box-shadow: 0px 0px 10px rgba(19, 55, 83, 0.08);
opacity: 1;
border-radius: 3px 0 0 3px;
}
.aside-tools .tools-list .tools-item {
position: relative;
}
.aside-tools .tools-list .tools-item img {
margin: 10px;
height: 24px;
width: 24px;
cursor: pointer;
}
.aside-tools .tools-list .tools-item::before {
content: '';
position: absolute;
background: rgba(230, 234, 237, 1);
bottom: 0;
right: 10px;
width: 16px;
height: 1px;
}
.aside-tools .tools-list .tools-item:last-child:before {
content: none;
}
.aside-tools .tools-list .tools-item:hover .tools-box {
display: block;
}
.aside-tools .tools-list .tools-item .tools-box {
display: none;
position: absolute;
left: -220px;
top: 0;
padding-right: 30px;
}
.aside-tools .tools-list .tools-item .tools-box-s {
padding: 20px;
width: 190px;
background: #FFFFFF;
box-shadow: 0px 0px 10px rgba(19, 55, 83, 0.08);
opacity: 1;
border-radius: 3px;
}
.aside-tools .tools-list .tools-item .tools-box h5 {
font-size: 14px;
font-weight: bold;
margin-bottom: 5px;
}
.aside-tools .tools-list .tools-item .tools-box p {
font-size: 13px;
}
.aside-tools .tools-list .tools-item .tools-box .button {
font-size: 12px;
display: inline-block;
margin-top: 20px;
padding: 4px 7px;
border: 1px solid #E6EAED;
opacity: 1;
border-radius: 3px;
}
.aside-tools .tools-list .tools-item .tools-box .button:hover {
border: 1px solid #FF6739;
;
}
.flex-none {
flex-wrap: none !important;
}
#alert-container {
position: fixed;
top: 15%;
left: 50%;
transform: translateX(-50%);
z-index: 9999;
width: 300px;
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
#footerRecord .left-info a {
margin-right: 10px;
}
@media screen and (max-width: 1440px) {
.nav-content a {
width: calc(33.33% - 14px);
}
}

359
common/common.js Normal file
View File

@@ -0,0 +1,359 @@
// 消息弹窗
function showMessage(type, message, duration) {
if ($("#alert-container").length <= 0) {
$("body").append(`
<div id="alert-container"></div>
`);
}
const alertClass = "alert-" + type;
const html =
'<div class="alert ' +
alertClass +
' show alert-dismissible" role="alert">' +
message +
'<button type="button" class="close" data-dismiss="alert" aria-label="Close">' +
'<span aria-hidden="true">&times;</span>' +
"</button>" +
"</div>";
const $alert = $(html).appendTo("#alert-container");
setTimeout(function () {
$alert.alert("close");
}, duration);
// 清空表单
}
$(function () {
const headBgcList = [
"#3699FF",
"#57C3EA",
"#5CC2D7",
"#EF8BA2",
"#C1DB81",
"#F1978C",
"#F08968",
];
// 获取账户信息和实名认证信息
const initData = () => {
if (localStorage.jwt) {
$.ajax({
url: " /console/v1/account",
method: "get",
headers: {
Authorization: "Bearer" + " " + localStorage.jwt,
},
success: function (res) {
if (res.status === 200) {
const obj = res.data.account;
$(".no-login").attr("style", "display:none");
$(".login-in").attr("style", "display:flex");
$("#username").text(res.data.account.username);
const reg = /^[a-zA-Z]+$/;
if (reg.test(res.data.account.username.substring(0, 1))) {
obj.firstName = res.data.account.username
.substring(0, 1)
.toUpperCase();
$("#headImg").text(
res.data.account.username.substring(0, 1).toUpperCase()
);
} else {
obj.firstName = res.data.account.username.substring(0, 1);
$("#headImg").text(res.data.account.username.substring(0, 1));
}
if (sessionStorage.headBgc) {
$("#headImg").attr(
"style",
`background:${sessionStorage.headBgc}`
);
} else {
const index = Math.round(
Math.random() * (headBgcList.length - 1)
);
$("#headImg").attr("style", `background:${headBgcList[index]}`);
sessionStorage.headBgc = headBgcList[index];
}
sessionStorage.accountInfo = JSON.stringify(obj);
} else {
$(".login-in").attr("style", "display:none");
$(".no-login").attr("style", "display:block");
}
},
});
$.ajax({
url: " /console/v1/certification/info",
method: "get",
headers: {
Authorization: "Bearer" + " " + localStorage.jwt,
},
success: function (res) {
if (res.status === 200) {
if (res.data.is_certification) {
$("#isCertification").attr("style", "display:inline-block");
$("#noCertification").attr("style", "display:none");
sessionStorage.is_certification = true;
} else {
$("#isCertification").attr("style", "display:none");
$("#noCertification").attr("style", "display:inline-block");
sessionStorage.is_certification = false;
}
} else {
$(".login-in").attr("style", "display:none");
$(".no-login").attr("style", "display:block");
}
},
});
} else {
$(".login-in").attr("style", "display:none");
$(".no-login").attr("style", "display:block");
}
};
// 获取通用配置信息
const getCommentInfo = () => {
$.ajax({
url: "/console/v1/common",
method: "get",
headers: {
Authorization: "Bearer" + " " + localStorage.jwt,
},
success: function (res) {
sessionStorage.commentData = JSON.stringify(res.data);
setCommData();
},
});
};
// 设置通用信息函数
const setCommData = () => {
const commentObj = JSON.parse(sessionStorage.commentData);
$("#enterprise_name").text(commentObj.enterprise_name);
$(".com-contact-tel").text(commentObj.enterprise_telephone);
$("#enterprise_telephone").text(
`联系电话:${commentObj.enterprise_telephone}`
);
$("#enterprise_mailbox").text(`联系邮箱:${commentObj.enterprise_mailbox}`);
$("#enterprise_qrcode").attr("src", commentObj.enterprise_qrcode);
$("#logo").attr("src", commentObj.official_website_logo);
if (commentObj.friendly_link.length > 0) {
$("#index #footerLink").attr("style", "display: block;");
commentObj.friendly_link.forEach((item) => {
$("#footerLink").append(
`<a href=${item.url} target="_blank" rel="nofollow">${item.name}</a>`
);
});
} else {
$("#footerLink").attr("style", "display: none;");
}
$("#footerRecord").prepend(`
<div class='left-info'>
<a href='${commentObj.icp_info_link}' target="_blank" rel="nofollow">${commentObj.icp_info}</a>
<a href='${commentObj.public_security_network_preparation_link}' target="_blank" rel="nofollow">${commentObj.public_security_network_preparation}</a>
<span>${commentObj.telecom_appreciation}</span>
</div>
`);
$("#copyright_info").text(commentObj.copyright_info);
$("#terms_service_url").click(function () {
location.href = commentObj.terms_service_url;
});
$("#terms_privacy_url").click(function () {
location.href = commentObj.terms_privacy_url;
});
$(".buy-cloud").click(function () {
location.href = commentObj.cloud_product_link;
});
$(".buy-dcim-btn").click(function () {
location.href = commentObj.dcim_product_link;
});
};
$(".line-server-btn").click(function () {
window.open($(this).data("url"));
});
// 跳转函数
const goOtherPage = (url) => {
sessionStorage.redirectUrl = location.href;
location.href = url;
};
function initHeader() {
let showIndex = 0;
$(".nav-menu .nav-item").hover(
function () {
const index = $(".nav-menu .nav-item").index($(this));
$(".nav-cont .nav-cont-menu")
.eq(index)
.attr("style", "display: block;");
// $('.nav-cont').attr('style','display: block;')
if (
!$(".nav-cont .nav-cont-menu").eq(index).hasClass("nav-cont-empty")
) {
const height = $(".nav-cont .nav-cont-menu").eq(index).height();
$(".nav-cont").attr("style", `height: ${height}px;`);
}
showIndex = index;
},
function () {
const index = $(".nav-menu .nav-item").index($(this));
$(".nav-cont ").eq(index).attr("style", "display: none;");
$(".nav-cont .nav-cont-menu").eq(index).attr("style", "display: none;");
$(".nav-cont").attr("style", "height:0");
}
);
$(".nav-cont").hover(
function () {
//$('.nav-cont ').attr('style','display: block;')
$(".nav-cont .nav-cont-menu")
.eq(showIndex)
.attr("style", "display: block;");
//if (showIndex != 0) {
if (!$(this).hasClass("nav-cont-empty")) {
const height = $(".nav-cont .nav-cont-menu").eq(showIndex).height();
$(".nav-cont").attr("style", `height: ${height}px;`);
}
},
function () {
//$('.nav-cont ').attr('style','display: none;')
$(".nav-cont .nav-cont-menu")
.eq(showIndex)
.attr("style", "display: none;");
$(".nav-cont").attr("style", "height:0");
}
);
if (localStorage.jwt) {
if (sessionStorage.accountInfo) {
const obj = JSON.parse(sessionStorage.accountInfo);
$(".no-login").attr("style", "display:none");
$(".login-in").attr("style", "display:flex");
$("#username").text(obj.username);
$("#headImg").text(obj.firstName);
$("#headImg").attr("style", `background:${sessionStorage.headBgc}`);
if (sessionStorage.is_certification == true) {
$("#isCertification").attr("style", "display:inline-block");
$("#noCertification").attr("style", "display:none");
} else {
$("#isCertification").attr("style", "display:none");
$("#noCertification").attr("style", "display:inline-block");
}
}
initData();
} else {
$(".login-in").attr("style", "display:none");
$(".no-login").attr("style", "display:block");
}
// 退出登录
$("#logout").click(function () {
localStorage.removeItem("jwt");
initData();
});
// 点击登录
$("#loginBtn").click(function () {
goOtherPage("/login.htm");
});
// 点击注册
$("#registBtn").click(function () {
goOtherPage("/regist.htm");
});
// 点击账户信息
$("#accountBtn").click(function () {
location.href = "/account.htm";
});
// 未付款订单
$("#financeBtn").click(function () {
location.href = "/finance.htm";
});
// 我的工单
$("#ticketBtn").click(function () {
location.href = "/plugin/27/ticket.htm";
});
// 购物车
$("#shopping-cart").click(function () {
location.href = "/cart/shoppingCar.htm";
});
}
function initFooter() {
if (!sessionStorage.commentData) {
getCommentInfo();
} else {
setCommData();
}
}
// 首页渲染
// $("#header").load("/web/default/public/header.html", function () {
// initHeader();
// });
initHeader();
// 底部渲染
// $("#footer").load("/web/default/public/footer.html", function () {
// initFooter();
// });
initFooter();
const resize = function () {
const width = $(window).width();
const num = width / 1400;
if (1000 < width && width < 1440) {
$("section").attr(
"style",
"width:1400px;transform: scaleX(" + num + ");transform-origin: 0 0;"
);
} else {
$("section").attr("style", "");
}
};
resize();
window.addEventListener("resize", resize);
$(".input-search-s ").click(function () {
$(".input-search-select .select-box").toggle();
});
$(".input-search-r").click(function () {
$(".input-search-select .select-box").toggle();
});
$(".input-search-select").on("click", ".select-box-item", function () {
$(".input-search-text").text($(this).text());
$(".input-search-select .select-box").toggle();
});
/* 招聘tab切换 */
$(".recuit-btn-group a").each(function (ind, el) {
$(el).click(function () {
$(this).addClass("active").siblings().removeClass("active");
$(".recuit-content .recuit-box").eq(ind).show().siblings().hide();
});
});
/* 常见问题toggle */
$(".agent-question .item").eq(0).addClass("active");
$(".agent-question .item").eq(0).find(".des").slideDown(300);
$(".agent-question .item").each(function (ind, el) {
$(el)
.find(".open")
.click(function () {
$(this).parent(".title").parent(".item").find(".des").slideDown(300);
$(this)
.parent(".title")
.parent(".item")
.addClass("active")
.siblings()
.removeClass("active")
.find(".des")
.slideUp(300);
});
$(el)
.find(".down")
.click(function () {
$(this)
.parent(".des")
.slideUp(300)
.parent(".item")
.removeClass("active");
});
});
$("#documentBtn").click(function () {
location.href = "./document.html";
});
$(".go-ticket-btn").click(function () {
location.href = "home.htm";
});
});

112
common/reset.css Normal file
View File

@@ -0,0 +1,112 @@
html {
overflow-x: auto;
overflow-y: scroll;
}
body,
dl,
dt,
dd,
ul,
ol,
li,
pre,
form,
fieldset,
input,
p,
blockquote,
th,
td {
font-weight: 400;
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h4,
h5 {
margin: 0;
padding: 0;
}
body {
background-color: #FFFFFF;
color: rgba(0, 0, 0, 0.90);
font-size: 16px;
font-family: PingFang SC;
font-weight: 400;
}
select {
font-size: 12px;
}
table {
border-collapse: collapse;
}
fieldset,
img {
border: 0 none;
}
fieldset {
margin: 0;
padding: 0;
}
fieldset p {
margin: 0;
padding: 0 0 0 8px;
}
legend {
display: none;
}
address,
caption,
em,
strong,
th,
i {
font-style: normal;
font-weight: 400;
}
table caption {
margin-left: -1px;
}
hr {
border-bottom: 1px solid #FFFFFF;
border-top: 1px solid #E4E4E4;
border-width: 1px 0;
clear: both;
height: 2px;
margin: 5px 0;
overflow: hidden;
}
ol,
ul {
list-style-image: none;
list-style-position: outside;
list-style-type: none;
}
caption,
th {
text-align: left;
}
q:before,
q:after,
blockquote:before,
blockquote:after {
content: ;
}

111
common/style.css Normal file
View File

@@ -0,0 +1,111 @@
/* ======================================================================== 标签布局所用 */
/* 定位布局 */
.position-fixed{ position: fixed; } .position-sticky{ position: sticky; }
.position-relative{ position: relative; } .position-absolute{ position: absolute; }
.fl{float: left;} .fr{float: right;}
.tl{text-align: left;} .tc{text-align: center;} .tr{text-align: right;}
/* 弹性盒子布局 */
.fboxRow{ display: flex; flex-direction: row; }
.fboxCol{ display: flex; flex-direction: column; }
.fboxWrap{ display: flex;
flex-wrap: wrap;
}
.flex1{ flex: 1; }
.flex2{ flex: 2; }
.flex3{ flex: 3; }
.flex4{ flex: 4; }
.flex5{ flex: 5; }
.flex6{ flex: 6; }
/**/
.Xstart{ justify-content: flex-start; }
.Xcenter{ justify-content: center; }
.Xend{ justify-content: flex-end; }
.Xbetween{ justify-content: space-between; }
.Xaround{ justify-content: space-around; }
/**/
.Ystart{ align-items: flex-start; }
.Ycenter{ align-items: center; }
.Yend{ align-items: flex-end; }
.Ybaseline{ align-items: baseline; }
.Ystretch{ align-items: stretch; }
/* margin间距 */
.mt-0{ margin-top: 0px;} .mt-10{ margin-top: 10px;} .mt-15{ margin-top: 15px;} .mt-16{ margin-top: 16px;} .mt-20{ margin-top: 20px;} .mt-30{ margin-top: 30px;} .mt-40{ margin-top: 40px;}
.ml-0{ margin-left: 0px;} .ml-10{ margin-left: 10px;} .ml-15{ margin-left: 15px;} .ml-20{ margin-left: 20px;} .ml-30{ margin-left: 30px;} .ml-40{ margin-left: 40px;}
.mr-0{ margin-right: 0px;} .mr-10{ margin-right: 10px;} .mr-15{ margin-right: 15px;} .mr-20{ margin-right: 20px;} .mr-30{ margin-right: 30px;} .mr-40{ margin-right: 40px;}
.mb-0{ margin-bottom: 0px;} .mb-10{ margin-bottom: 10px;} .mb-15{ margin-bottom: 15px;} .mb-20{ margin-bottom: 20px;} .mb-30{ margin-bottom: 30px;} .mb-40{ margin-bottom: 40px;}
/* padding间距 */
.pt-10{padding-top: 10px;} .pt-20{ padding-top: 20px;} .pt-30{ padding-top: 30px;} .pt-40{ padding-top: 40px;}
.pl-10{padding-left: 10px;} .pl-20{ padding-left: 20px;} .pl-30{ padding-left: 30px;} .pl-40{ padding-left: 40px;}
.pr-10{padding-right: 10px;} .pr-20{ padding-right: 20px;} .pr-30{ padding-right: 30px;} .pr-40{ padding-right: 40px;}
.pb-10{padding-bottom: 10px;} .pb-20{padding-bottom: 20px;} .pb-30{padding-bottom: 30px;} .pb-40{padding-bottom: 40px;}
/* ======================================================================== 页面公用 */
/* 文字格式 */
.font12{ font-size: 12px; } .font13{ font-size: 13px; } .font14{ font-size: 14px; }
.font15{ font-size: 15px; } .font16{ font-size: 16px; } .font17{ font-size: 17px; }
.font18{ font-size: 18px; } .font19{ font-size: 19px; } .font20{ font-size: 20px; }
.font21{ font-size: 21px; } .font22{ font-size: 22px; } .font23{ font-size: 23px; }
.font24{ font-size: 24px; } .font25{ font-size: 25px; } .font26{ font-size: 26px; }
.font27{ font-size: 27px; } .font28{ font-size: 28px; } .font29{ font-size: 29px; }
.font30{ font-size: 30px; } .font31{ font-size: 31px; } .font32{ font-size: 32px; }
.font33{ font-size: 33px; } .font34{ font-size: 34px; } .font35{ font-size: 35px; }
.font36{ font-size: 36px; } .font37{ font-size: 37px; } .font38{ font-size: 38px; }
.font39{ font-size: 39px; } .font40{ font-size: 40px; } .font41{ font-size: 41px; }
.font42{ font-size: 42px; } .font43{ font-size: 43px; } .font44{ font-size: 44px; }
.font45{ font-size: 45px; } .font46{ font-size: 46px; } .font47{ font-size: 47px; }
.font48{ font-size: 48px; } .font49{ font-size: 49px; } .font50{ font-size: 50px; }
/* 文字显示行数,超出部分会是"..." */
.font-ell1{ overflow: hidden; text-overflow: ellipsis; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.font-ell2{ overflow: hidden; text-overflow: ellipsis; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.font-ell3{ overflow: hidden; text-overflow: ellipsis; word-break: break-all; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
/* 文字对齐方式 */
.font-left{ text-align: left; }
.font-center{ text-align: center; }
.font-right{ text-align: right; }
/* 文字间隔 */
.font-spacing-1px{ letter-spacing: 1px; }
.font-spacing-2px{ letter-spacing: 2px; }
.font-spacing-3px{ letter-spacing: 3px; }
/* 文字行高 */
.font-line-1o2{ line-height: 1.2; }
.font-line-1o5{ line-height: 1.5; }
.font-line-1o8{ line-height: 1.8; }
/* 文字加粗 */
.font-weight{ font-weight: bold; }
/* 文字颜色 */
.font-red{ color: #EA5B2F; }
.font-orange{ color: #f37b1d; }
.font-yellow{ color: #fbbd08; }
.font-olive{ color: #8dc63f; } /* 橄榄绿 */
.font-green{ color: #39b54a; }
.font-cyan{ color: #1cbbb4; } /* 青 */
.font-blue{ color: #1890ff; }
.font-purple{ color: #6739b6; } /* 紫色 */
.font-mauve{ color: #9c26b0; } /* 玫瑰红 */
.font-pink{ color: #e03997; }
.font-brown{ color: #a5673f; }
.font-grey{ color: rgba(0, 0, 0, 0.40); }
.font-gray{ color: #999999; }
.font-black{ color: #333333; }
.font-white{ color: #ffffff; }
.font-primary{ color: #2F54EA; }
/* 宽高 */
.w-100{ width: 100%;}
.h-100{ height: 100%; }
.overflow{
overflow: hidden;
}
.line-wrap{
word-wrap: break-word;
white-space: normal;
word-break: break-all;
white-space: pre-line
}

167
common/theme.css Normal file
View File

@@ -0,0 +1,167 @@
h1 {
font-size: 40px;
/* font-weight: bold; */
}
h2 {
font-size: 32px;
}
h3 {
font-size: 24px;
}
h4 {
font-size: 22px;
}
h5 {
font-size: 20px;
}
.font-theme {
color: #FF6739;
}
textarea {
resize: none;
}
body {
background-color: #FFFFFF;
color: rgba(0, 0, 0, 0.90);
font-size: 14px;
font-family: PingFang SC;
font-weight: 400;
}
input {
outline: none;
}
/* 盒子阴影 */
.box-shadow {
background: #FFFFFF;
box-shadow: 0px 0px 16px rgba(52, 52, 52, 0.16);
}
.box-shadow-light {
background: #FFFFFF;
box-shadow: 0px 0px 8px rgba(52, 52, 52, 0.08);
}
a {
color: #666;
cursor: pointer;
text-decoration: none;
}
a:hover {
color: rgba(255, 103, 57, 1) !important;
text-decoration: none !important;
}
.link-hover {
cursor: pointer;
}
.link-hover:hover {
color: rgba(255, 103, 57, 1) !important;
}
.title-desc {
color: rgba(0, 0, 0, 0.9);
font-size: 14px;
}
::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border: 1px solid #fff;
border-radius: 10px;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.animated {
animation-duration: .5s !important;
}
/* 按钮 */
.btn {
padding: 8px 20px;
opacity: 1;
border-radius: 3px;
cursor: pointer;
}
.btn2 {
padding: 8px 32px;
opacity: 1;
border-radius: 3px;
cursor: pointer;
}
.btn-s {
padding: 8px 32px;
}
.btn-normal {
color: #fff;
background: #FF6739;
}
.btn-normal:active {
background: #E45931;
}
.btn-normal:hover {
color: #fff;
background: #FF754C;
}
.btn-normal:disabled {
opacity: 0.4;
}
.btn-normal-light {
color: rgba(0, 0, 0, 0.90);
background: #FEFFFF;
border: 1px solid #E6EAED;
}
.btn-normal-light:hover {
border: 1px solid #FF6739;
color: #FF6739;
}
.btn-dark {
color: #fff;
background: rgba(65, 65, 65, 1);
}
.btn-dark:hover {
color: #fff;
background: #FF754C;
}
.btn-orgin {
color: rgba(255, 255, 255, 0.9);
background: #FF6739;
}
.btn-orgin:hover {
color: #fff;
background: #FF754C;
}