Authored by 王水玲

帮助中心修改

... ... @@ -2,7 +2,7 @@
{{#each menuData}}
{{#if subsets}}
<li class="big-category cateId-{{id}} subsets {{#isEqual id @root.qid}}selected{{/isEqual}}">
<div class="plus inline-block"></div>{{categoryName}}</li>
<div class="icon plus inline-block"></div>{{categoryName}}</li>
{{#each subsets}}
<li class="smll-category cateId-{{id}} parentId-{{parendId}} {{#isEqual id @root.qid}}selected{{/isEqual}}" data-parent-id="{{parendId}}">
<span class="mult"></span>
... ...

272 Bytes | W: | H:

371 Bytes | W: | H:

  • 2-up
  • Swipe
  • Onion skin

10.7 KB | W: | H:

10.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -12,7 +12,7 @@ var cutStr = function(params) {
params.str = params.str.replace(/<[^>]*>/g, '');
if (params.type === '2') {
if (params.type === 2) {
addTxt = '';
} else {
addTxt = '<a href="' + params.url + '" class="show-all" target="_blank">查看详情&gt;</a>';
... ...
... ... @@ -34,7 +34,7 @@ if (keywords) {
if (result.helper_list) {
$.each(result.helper_list, function(k, s) {
if (s.helperType === '2') {
if (s.helperType === 2) {
s.problem = true;
s.allCont = s.content;
}
... ... @@ -69,6 +69,9 @@ if (keywords) {
* 目录切换
*/
/**
* 目录切换
*/
$subsets.click(function() {
var $this = $(this);
var className = $this.attr('class').split(' ')[1];
... ... @@ -77,13 +80,13 @@ $subsets.click(function() {
if ($this.hasClass('open')) {
$child.hide();
$this.removeClass('open').children('.plus').css('background-image', 'url(\'../img/help/plus.png\')');
$this.removeClass('open').children('.icon').removeClass('minus').addClass('plus');
} else {
$('.smll-category').hide();
$('.subsets').children('.plus').css('background-image', 'url(\'../img/help/plus.png\')');
$('.subsets').children('.icon').removeClass('minus').addClass('plus');
$child.show();
$subsets.removeClass('open');
$this.addClass('open').children('.plus').css('background-image', 'url(\'../img/help/minus.png\')');
$this.addClass('open').children('.icon').removeClass('plus').addClass('minus');
}
});
... ... @@ -91,7 +94,7 @@ if (!$cate.hasClass('big-category')) {
parentID = $cate.data('parentId');
$('.parentId-' + parentID).show();
$('.cateId-' + parentID).find('.plus').css('background-image', 'url(\'../img/help/minus.png\')');
$('.cateId-' + parentID).find('.icon').removeClass('plus').addClass('minus');
}
$('.center-content').css('border-top-color', '#fff');
... ...
... ... @@ -27,16 +27,22 @@
width: 200px;
font-size: 14px;
.plus {
.icon {
cursor: pointer;
margin-right: 10px;
height: 14px;
width: 14px;
background-repeat: no-repeat;
background-image: resolve("help/plus.png");
background-size: 14px 14px;
height: 13px;
width: 13px;
display: inline-block;
position: relative;
top: 3px;
top: 1px;
}
.plus {
background: resolve("help/plus.png") no-repeat;
}
.minus {
background: resolve("help/minus.png") no-repeat;
}
.mult {
... ... @@ -130,11 +136,12 @@
.title:before {
content: "";
width: 18px;
height: 18px;
width: 13px;
height: 16px;
background: url("/help/file.png") no-repeat;
position: absolute;
left: 0;
left: 3px;
top: 1px;
}
}
}
... ... @@ -201,7 +208,7 @@
content: "";
width: 18px;
height: 18px;
background: url("/help/q.png") no-repeat;
background: url("/help/a.png") no-repeat;
position: absolute;
left: 0;
}
... ... @@ -210,7 +217,7 @@
content: "";
width: 18px;
height: 18px;
background: url("/help/a.png") no-repeat;
background: url("/help/q.png") no-repeat;
position: absolute;
left: 0;
}
... ... @@ -226,6 +233,7 @@
.help-cont {
.cont {
margin-top: 17px;
line-height: 22px;
}
}
}
... ...
... ... @@ -201,6 +201,7 @@
padding-left: 3px;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
&:hover {
color: #1ea1da;
... ...
... ... @@ -9,9 +9,9 @@
<li class="{{#if problem}}problem-li{{else}}article-li{{/if}}">
<p class="title">{{{caption}}}</p>
{{#if problem}}
<p class="cont">{{{allCont}}}</p>
<div class="cont">{{{allCont}}}</div>
{{else}}
<p class="cont">{{{content}}}</p>
<div class="cont">{{{content}}}</div>
{{/if}}
</li>
{{/helper_list}}
... ...