refactor: 修改pc nas帮助文章详情

This commit is contained in:
2025-04-14 14:04:33 +08:00
parent 9052b70816
commit ca5ac6d523

View File

@@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -9,11 +10,13 @@
[class*=' icon-'] { [class*=' icon-'] {
color: #000; color: #000;
} }
.narshelpdetailPc { .narshelpdetailPc {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
background: #f9f9f9; background: #f9f9f9;
} }
.narshelpdetailPc .narsssmain { .narshelpdetailPc .narsssmain {
width: 100%; width: 100%;
display: flex; display: flex;
@@ -26,6 +29,7 @@
background: #fff; background: #fff;
z-index: 2; z-index: 2;
} }
.narshelpdetailPc .narsssmain .dropdown { .narshelpdetailPc .narsssmain .dropdown {
display: none; display: none;
position: absolute; position: absolute;
@@ -43,18 +47,22 @@
min-height: 3.125rem; min-height: 3.125rem;
overflow-y: auto; overflow-y: auto;
} }
.narshelpdetailPc .narsssmain .dropdown ul { .narshelpdetailPc .narsssmain .dropdown ul {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.narshelpdetailPc .narsssmain .dropdown ul li { .narshelpdetailPc .narsssmain .dropdown ul li {
padding: 10px; padding: 10px;
cursor: pointer; cursor: pointer;
} }
.narshelpdetailPc .narsssmain .dropdown ul li:hover { .narshelpdetailPc .narsssmain .dropdown ul li:hover {
background-color: #f4f4f4; background-color: #f4f4f4;
} }
.narshelpdetailPc .narsssmain .ml { .narshelpdetailPc .narsssmain .ml {
font-size: 14px; font-size: 14px;
padding-left: 25px; padding-left: 25px;
@@ -63,6 +71,7 @@
color: #8f9099; color: #8f9099;
position: absolute; position: absolute;
} }
.narshelpdetailPc .narsssmain .nars-hlp-search { .narshelpdetailPc .narsssmain .nars-hlp-search {
width: 440px; width: 440px;
height: 42px; height: 42px;
@@ -75,11 +84,13 @@
border: 1px solid #cdcedb; border: 1px solid #cdcedb;
margin: 0 auto; margin: 0 auto;
} }
.narshelpdetailPc .narsssmain .nars-hlp-search .ssimg { .narshelpdetailPc .narsssmain .nars-hlp-search .ssimg {
width: 1.6rem; width: 1.6rem;
height: 1.6rem; height: 1.6rem;
margin-right: 3%; margin-right: 3%;
} }
.narshelpdetailPc .narsssmain .nars-hlp-search input { .narshelpdetailPc .narsssmain .nars-hlp-search input {
font-size: 14px; font-size: 14px;
border: none; border: none;
@@ -89,27 +100,33 @@
margin-right: 2%; margin-right: 2%;
margin-left: 2%; margin-left: 2%;
} }
.narshelpdetailPc .narsssmain .nars-hlp-search input::placeholder { .narshelpdetailPc .narsssmain .nars-hlp-search input::placeholder {
color: #8f9099; color: #8f9099;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
} }
.narshelpdetailPc .nars-help-content { .narshelpdetailPc .nars-help-content {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml {
width: 252px; width: 252px;
overflow-y: auto; overflow-y: auto;
border-right: 1px solid #ccc; border-right: 1px solid #ccc;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .nav-tree { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .nav-tree {
max-height: 800px; max-height: 800px;
overflow-y: auto; overflow-y: auto;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category {
margin-bottom: 5px; margin-bottom: 5px;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category-title { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .category-title {
display: block; display: block;
padding: 10px; padding: 10px;
@@ -123,25 +140,30 @@
margin-left: 10px; margin-left: 10px;
color: #1f2635; color: #1f2635;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow {
margin-right: 2px; margin-right: 2px;
transform: rotate(0deg); transform: rotate(0deg);
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow .nars-jt { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .arrow .nars-jt {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .rotate { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .rotate {
transform: rotate(45deg); transform: rotate(45deg);
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list {
display: none; display: none;
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a {
width: fit-content; width: fit-content;
display: block; display: block;
@@ -153,14 +175,17 @@
font-size: 12px; font-size: 12px;
color: #8f9099; color: #8f9099;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li:first a { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li:first a {
padding-top: 0; padding-top: 0;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a:hover, .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a:hover,
.narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a.active { .narshelpdetailPc .nars-help-content .nars-hlpdt-ml .sub-list li a.active {
color: #1f2635; color: #1f2635;
border-bottom: 1px solid #1f2635; border-bottom: 1px solid #1f2635;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm { .narshelpdetailPc .nars-help-content .nars-hlpdt-mm {
padding: 32px 150px; padding: 32px 150px;
max-height: 920px; max-height: 920px;
@@ -170,9 +195,11 @@
overflow-y: auto; overflow-y: auto;
position: relative; position: relative;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm img{
.narshelpdetailPc .nars-help-content .nars-hlpdt-mm img {
max-width: 100%; max-width: 100%;
} }
/* .narshelpdetailPc .nars-help-content .nars-hlpdt-mm img{*/ /* .narshelpdetailPc .nars-help-content .nars-hlpdt-mm img{*/
/* width: -webkit-fill-available;*/ /* width: -webkit-fill-available;*/
/*}*/ /*}*/
@@ -183,6 +210,7 @@
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list { .narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list {
padding: 0 20px; padding: 0 20px;
float: right; float: right;
@@ -190,24 +218,29 @@
min-height: 700px; min-height: 700px;
overflow-y: auto; overflow-y: auto;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list .tt { .narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list .tt {
font-size: 14px; font-size: 14px;
padding-top: 33px; padding-top: 33px;
padding-bottom: 1rem; padding-bottom: 1rem;
margin: 0; margin: 0;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul { .narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul {
list-style-type: none; list-style-type: none;
padding: 0; padding: 0;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li { .narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li {
margin-bottom: 23px; margin-bottom: 23px;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a { .narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a {
text-decoration: none; text-decoration: none;
font-size: 12px; font-size: 12px;
color: #1f2635; color: #1f2635;
} }
.narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a:hover { .narshelpdetailPc .nars-help-content .nars-hlpdt-mr #title-list ul li a:hover {
color: #1f2635; color: #1f2635;
border-bottom: 1px solid #1f2635; border-bottom: 1px solid #1f2635;
@@ -219,7 +252,8 @@
/* 修改垂直滚动条 */ /* 修改垂直滚动条 */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; /* 修改宽度 */ width: 6px;
/* 修改宽度 */
} }
/* 修改滚动条轨道背景色 */ /* 修改滚动条轨道背景色 */
@@ -246,10 +280,13 @@
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
border-radius: 5px; border-radius: 5px;
} }
/* 整体滚动条 */ /* 整体滚动条 */
* { * {
scrollbar-width: thin; /* 滚动条宽度 */ scrollbar-width: thin;
scrollbar-color: #D8DBE6 transparent; /* 滚动条颜色(滑块颜色 轨道颜色) */ /* 滚动条宽度 */
scrollbar-color: #D8DBE6 transparent;
/* 滚动条颜色(滑块颜色 轨道颜色) */
} }
/* 滚动条轨道 */ /* 滚动条轨道 */
@@ -260,12 +297,14 @@
/* 滚动条滑块 */ /* 滚动条滑块 */
*::-moz-scrollbar-thumb { *::-moz-scrollbar-thumb {
background-color: #D8DBE6; background-color: #D8DBE6;
border-radius: 5px; /* 滑块的圆角 */ border-radius: 5px;
/* 滑块的圆角 */
} }
/* 滚动条的上下箭头 */ /* 滚动条的上下箭头 */
*::-moz-scrollbar-button { *::-moz-scrollbar-button {
display: none; /* 隐藏上下箭头 */ display: none;
/* 隐藏上下箭头 */
} }
/* 滚动条的上下箭头:向上箭头 */ /* 滚动条的上下箭头:向上箭头 */
@@ -277,13 +316,21 @@
*::-moz-scrollbar-button:vertical:increment { *::-moz-scrollbar-button:vertical:increment {
display: none; display: none;
} }
h1, h2, h3, h4, h5, h6 {
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0; margin: 0;
all: revert; /* 将所有属性设置为初始值 */ all: revert;
/* 将所有属性设置为初始值 */
/* 或者使用 all: revert; 恢复到浏览器默认样式,但该属性兼容性不如 initial */ /* 或者使用 all: revert; 恢复到浏览器默认样式,但该属性兼容性不如 initial */
} }
</style> </style>
</head> </head>
<body> <body>
<!-- 顶部导航 --> <!-- 顶部导航 -->
{include file='include/top-header-nas'/} {include file='include/top-header-nas'/}
@@ -306,13 +353,13 @@
{volist name="categorys" id="vo"} {volist name="categorys" id="vo"}
<div class="category"> <div class="category">
<div class="category-title"> <div class="category-title">
<div class="arrow {if condition='$cid == $vo.id'}rotate{/if}"><img src="__PUBLIC__/m_web/images/nas/help/nars-jt.png" class="arrow {if condition='$cid == $vo.id'}rotate{/if}"/></div> <div class="arrow {if condition='$cid == $vo.id'}rotate{/if}"><img src="__PUBLIC__/m_web/images/nas/help/nars-jt.png" class="arrow {if condition='$cid == $vo.id'}rotate{/if}" /></div>
<span>{$vo.name}</span> <span>{$vo.name}</span>
</div> </div>
<ul class="sub-list" {if condition="$cid == $vo.id"}style="display: block;"{/if}> <ul class="sub-list" {if condition="$cid == $vo.id" }style="display: block;" {/if}>
{volist name="vo.articles" id="va"} {volist name="vo.articles" id="va"}
<li> <li>
<a href="{:url('tops_nas/helper_detail', ['id' => $va.id])}" class="{if condition='$Request.param.id == $va.id'}active{/if}" style="{if condition='$key==0'}padding-top: 6px;{/if}">{$va.name}</a> <a href="{:url('tops_nas/helper_detail', ['id' => $va.id])}" class="{if condition='$Request.param.id == $va.id'}active{/if}" {if condition='$key==0' }style="padding-top: 6px;"{/if}>{$va.name}</a>
</li> </li>
{/volist} {/volist}
</ul> </ul>
@@ -353,7 +400,7 @@
$('.nars-hlp-search input').on('focus input', function() { $('.nars-hlp-search input').on('focus input', function() {
clearTimeout(timeout); clearTimeout(timeout);
var _this = this; var _this = this;
timeout = setTimeout(function () { timeout = setTimeout(function() {
var keywords = $(_this).val(); var keywords = $(_this).val();
if (keywords == '') { if (keywords == '') {
$('#dropdown').hide().html(''); $('#dropdown').hide().html('');
@@ -362,7 +409,9 @@
$.ajax({ $.ajax({
url: "{:url('tops_nas/helper_search')}", url: "{:url('tops_nas/helper_search')}",
type: 'POST', type: 'POST',
data: {keywords: keywords}, data: {
keywords: keywords
},
dataType: 'JSON', dataType: 'JSON',
success: function(r) { success: function(r) {
var html = ''; var html = '';
@@ -398,5 +447,6 @@
}); });
}); });
</script> </script>
</body> </body>
</html> </html>