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