Authored by 王水玲

帮助中心优化

... ... @@ -47,7 +47,7 @@ const detail = (req, res, next) => {
},
{
name: '帮助中心',
link: '/help'
link: '/help/index'
}
];
... ... @@ -60,7 +60,7 @@ const detail = (req, res, next) => {
module: 'help',
page: 'help',
content: Object.assign({nav}, result.data),
qid: params.id
qid: q.helpQuery ? false : params.id
});
}).catch(next);
};
... ...
... ... @@ -14,7 +14,8 @@ const getHotSearch = () => {
method: 'app.helper.hotSearch',
showPlatform: 'yohobuy_pc'
}, {
code: 200
code: 200,
cache: true
});
};
... ...
... ... @@ -216,6 +216,7 @@ const _processDetailData = (result, params) => {
let menuData = [];
let contData = false;
let data = result[1].data;
let nav = [];
// 常见问题
if (data.faqs) {
... ... @@ -254,8 +255,18 @@ const _processDetailData = (result, params) => {
}
});
if (params.keywords) {
nav = [
{
name: '搜索结果'
}
];
} else {
nav = _getNav(params.id, menuData);
}
return {
nav: _getNav(params.id, menuData),
nav: nav,
data: {
menuData: menuData,
contData: contData
... ... @@ -271,7 +282,7 @@ const helpData = () => {
helpApi.getSelfService()
]).then(result => {
return _.assign({
hotSearch: result[0].data,
hotSearch: _.slice(result[0].data, 0, 5),
selfService: {
categoryName: '自助服务',
list: result[2].data
... ... @@ -294,7 +305,7 @@ const detailData = (params) => {
return Promise.all(promiseData).then(result => {
let newData = _processDetailData(result, params);
newData.data.hotSearch = result[0].data;
newData.data.hotSearch = _.slice(result[0].data, 0, 5);
return newData;
});
};
... ...
... ... @@ -11,7 +11,7 @@
{{#each notice}}
<li>
{{#each row}}
<a class="notice-cont" href="{{jumpLink}}"><i class="dot-icon"></i> {{caption}}</a>
<a class="notice-cont" href="{{jumpLink}}" target="_blank"><i class="dot-icon"></i> {{caption}}</a>
{{/each}}
</li>
{{/each}}
... ...
<div class="search-box">
<div class="search-area">
<form id="help-search-form" action="{{siteUrl}}/help/detail">
<form id="help-search-form" action="{{siteUrl}}/help/search">
<input type="text" class="help-search" autocomplete="off" name="helpQuery">
<span class="iconfont search-btn">&#xe605;</span>
</form>
... ...
... ... @@ -30,7 +30,7 @@
<div class="way">
{{#if takeGoods}}
<p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe61c;</span>在线客服</a>
<p class="contact">我们会尽快将您的商品发出,请耐心等待,如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe6b8;</span>在线客服</a>
</p>
{{/if}}
... ... @@ -51,7 +51,7 @@
{{/if}}
{{#if doubt}}
<p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe61c;</span>在线客服</a></p>
<p class="contact">如有疑问,请联系<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" target="_blank"><span class="iconfont">&#xe6b8;</span>在线客服</a></p>
{{/if}}
{{#if auditSuccess}}
... ...
... ... @@ -38,7 +38,7 @@
<p>
我们会在入库后的1-3个工作日内处理您的退款,如有疑问,请联系
<a href="http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=703953&configID=149819&jid=1099911094" class="online-service" target="_blank">
<span class="iconfont blue">&#xe61c;</span>
<span class="iconfont blue">&#xe6b8;</span>
<span class="blue">在线客服</span>
</a>
</p>
... ...
<span class="iconfont">&#xe61c;</span>
\ No newline at end of file
<span class="iconfont">&#xe6b8;</span>
\ No newline at end of file
... ...