Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
8 years ago
Commit
cb2e2091e9b76d890b33d8c50087612bd4703ce8
1 parent
76191fca
帮助中心优化
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
12 deletions
apps/help/controllers/help.js
apps/help/models/help-api.js
apps/help/models/help.js
apps/help/views/action/help.hbs
apps/help/views/partial/search-form.hbs
apps/me/views/partial/exchange-detail.hbs
apps/me/views/partial/refund-detail.hbs
doraemon/views/partial/icon/headset.hbs
apps/help/controllers/help.js
View file @
cb2e209
...
...
@@ -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
);
};
...
...
apps/help/models/help-api.js
View file @
cb2e209
...
...
@@ -14,7 +14,8 @@ const getHotSearch = () => {
method
:
'app.helper.hotSearch'
,
showPlatform
:
'yohobuy_pc'
},
{
code
:
200
code
:
200
,
cache
:
true
});
};
...
...
apps/help/models/help.js
View file @
cb2e209
...
...
@@ -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
;
});
};
...
...
apps/help/views/action/help.hbs
View file @
cb2e209
...
...
@@ -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
}}
...
...
apps/help/views/partial/search-form.hbs
View file @
cb2e209
<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"
>

</span>
</form>
...
...
apps/me/views/partial/exchange-detail.hbs
View file @
cb2e209
...
...
@@ -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"
>
æ
1c
;
</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"
>
æ
b8
;
</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"
>
æ
1c
;
</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"
>
æ
b8
;
</span>
在线客服
</a></p>
{{/if}}
{{#if
auditSuccess
}}
...
...
apps/me/views/partial/refund-detail.hbs
View file @
cb2e209
...
...
@@ -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"
>
æ
1c
;
</span>
<span
class=
"iconfont blue"
>
æ
b8
;
</span>
<span
class=
"blue"
>
在线客服
</span>
</a>
</p>
...
...
doraemon/views/partial/icon/headset.hbs
View file @
cb2e209
<span
class=
"iconfont"
>

</span>
\ No newline at end of file
<span
class=
"iconfont"
>

</span>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment