Authored by 王水玲

帮助中心修改

... ... @@ -40,6 +40,7 @@ const detail = (req, res, next) => {
contId: +req.query.contId || 0,
keywords: req.query.helpQuery
};
let nav = [
{
link: global.yoho.config.siteUrl,
... ...
... ... @@ -298,7 +298,7 @@ const detailData = (params) => {
helpApi.gethomeCategoryFaq()
];
if (params.id === 1) {
if (params.id === 1 && !params.keywords) {
promiseData.push(helpApi.allQA());
}
... ... @@ -322,7 +322,13 @@ const searchData = (params) => {
// 在线客服
const onlineService = () => {
return helpApi.onlineService().then(result => {
return result.data.url;
let url = '';
if (result.data) {
url = result.data.url;
}
return url;
});
};
... ...
<div class="search-box">
<div class="search-area">
<form id="help-search-form" action="{{siteUrl}}/help/search">
<form id="help-search-form" action="{{siteUrl}}/help/detail">
<input type="text" class="help-search" autocomplete="off" name="helpQuery">
<span class="iconfont search-btn">&#xe605;</span>
</form>
... ...