Authored by 周少峰

Merge branch 'feature/help' of git.yoho.cn:fe/yohobuy-node into feature/help

... ... @@ -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>
... ...
{{#if error}}
<div class="search-result nav-title">很抱歉,关于“<span class="red">{{keywords}}</span></div>
<div class="search-result nav-title">很抱歉,关于“<span class="red">{{keywords}}</span>没有找到您想要的答案</div>
<p class="result-error mt30">建议您:看看输入的文字是否有误/减少分类条件的限制/重新检索</p>
<p class="result-error">或 者:使用<a href="{{jumpUrl}}">在线客服</a>试试</p>
{{else}}
... ...
... ... @@ -34,7 +34,6 @@ var $subsets = $('.subsets');
/**
* 目录切换
*/
$subsets.click(function() {
var $this = $(this);
var className = $this.attr('class').split(' ')[1];
... ... @@ -43,13 +42,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');
}
});
... ...
... ... @@ -68,7 +68,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');
... ...
... ... @@ -42,18 +42,24 @@
box-sizing: border-box;
}
.plus {
.icon {
cursor: pointer;
margin-right: 10px;
height: 14px;
width: 14px;
background-image: resolve("help/plus.png");
background-size: 14px 14px;
height: 13px;
width: 13px;
display: inline-block;
position: relative;
top: 1px;
}
.plus {
background-image: resolve("help/plus.png");
}
.minus {
background-image: resolve("help/minus.png");
}
.mult {
margin-right: 26px;
height: 14px;
... ...