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
06dcaeda403510e40f5aeba9bc96fab14bbebae1
1 parent
1ff11749
blk 帮助中心修改
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
17 deletions
apps/help/models/help-api.js
apps/help/models/help.js
apps/help/views/partial/common-problem.hbs
public/js/help/problem-box.js
public/scss/help/_detail.css
public/tpl/help/problem-box.hbs
apps/help/models/help-api.js
View file @
06dcaed
...
...
@@ -12,7 +12,7 @@ const api = global.yoho.API;
const
getHotSearch
=
()
=>
{
return
api
.
get
(
''
,
{
method
:
'app.helper.hotSearch'
,
showPlatform
:
'
yohobuy
_pc'
showPlatform
:
'
blk
_pc'
},
{
code
:
200
,
cache
:
true
...
...
@@ -23,7 +23,7 @@ const getHotSearch = () => {
const
gethomeCategoryFaq
=
()
=>
{
return
api
.
get
(
''
,
{
method
:
'app.helper.homeCategoryFaq'
,
showPlatform
:
'
yohobuy
_pc'
showPlatform
:
'
blk
_pc'
},
{
code
:
200
,
cache
:
true
...
...
@@ -34,7 +34,7 @@ const gethomeCategoryFaq = () => {
const
getSelfService
=
()
=>
{
return
api
.
get
(
''
,
{
method
:
'app.helper.selfService'
,
showPlatform
:
'
yohobuy
_pc'
showPlatform
:
'
blk
_pc'
},
{
code
:
200
});
...
...
@@ -43,7 +43,7 @@ const getSelfService = () => {
const
helpSearch
=
(
params
)
=>
{
return
api
.
get
(
''
,
{
method
:
'app.helper.search'
,
showPlatform
:
'
yohobuy
_pc'
,
showPlatform
:
'
blk
_pc'
,
keyword
:
params
.
keywords
,
page
:
params
.
page
,
viewNum
:
'15'
,
...
...
@@ -56,7 +56,7 @@ const helpSearch = (params) => {
const
allQA
=
(
page
)
=>
{
return
api
.
get
(
''
,
{
method
:
'app.helper.allQA'
,
showPlatform
:
'
yohobuy
_pc'
,
showPlatform
:
'
blk
_pc'
,
page
:
page
,
viewNum
:
15
},
{
...
...
apps/help/models/help.js
View file @
06dcaed
...
...
@@ -233,10 +233,10 @@ const _processDetailData = (result, params) => {
faqs
:
data
.
faqs
,
allQa
:
_
.
get
(
result
,
'[2].data.list'
,
[]),
paginationData
:
{
page
:
_
.
get
(
result
,
'[2].data.page'
,
1
),
limit
:
_
.
get
(
result
,
'[2].data.page_size'
,
15
),
total
:
_
.
get
(
result
,
'[2].data.total'
,
15
),
pageTotal
:
_
.
get
(
result
,
'[2].data.page_total'
,
15
),
page
:
result
[
2
].
data
.
page
||
1
,
limit
:
result
[
2
].
data
.
pageSize
||
15
,
total
:
result
[
2
].
data
.
total
,
pageTotal
:
result
[
2
].
data
.
page_total
||
1
,
queryParams
:
{
id
:
params
.
id
,
page
:
params
.
page
...
...
apps/help/views/partial/common-problem.hbs
View file @
06dcaed
...
...
@@ -9,14 +9,14 @@
<ul
class=
"all-problem"
>
{{#
allQa
}}
<li
class=
"problem-li"
>
<p
class=
"title"
>
{{
caption
}}
</p>
<div
class=
"cont"
>
{{{
content
}}}
</div>
<p
class=
"icon iconfont icon-q title"
>
{{
caption
}}
</p>
<div
class=
"icon iconfont icon-a cont"
>
{{{
content
}}}
</div>
</li>
{{/
allQa
}}
</ul>
{{!-- 分页 --}}
{{{
pagination
paginationData
}}}
{{{
pagination
paginationData
}}}
</div>
...
...
public/js/help/problem-box.js
View file @
06dcaed
...
...
@@ -19,8 +19,8 @@ var problemBox = function() {
var
ask
=
$
(
this
).
data
(
'ask'
)
||
''
;
var
answer
=
$
(
this
).
data
(
'answer'
)
||
''
;
$problemBox
.
find
(
'.a-area'
).
html
(
ask
);
$problemBox
.
find
(
'.q-area'
).
html
(
answer
);
$problemBox
.
find
(
'.q-area'
).
html
(
ask
);
$problemBox
.
find
(
'.a-area'
).
html
(
answer
);
$problemBox
.
show
();
});
...
...
public/scss/help/_detail.css
View file @
06dcaed
...
...
@@ -141,9 +141,9 @@
.
title
:
before
{
content
:
"\e6e6"
;
position
:
absolute
;
left
:
3px
;
left
:
0
;
top
:
1px
;
font-size
:
1
8
px
;
font-size
:
1
9
px
;
}
}
}
...
...
public/tpl/help/problem-box.hbs
View file @
06dcaed
...
...
@@ -2,7 +2,7 @@
<div
class=
"mark"
></div>
<div
class=
"problem-area"
>
<i
class=
"iconfont close"
>

</i>
<div
class=
"a-area"
></div>
<div
class=
"q-area"
></div>
<div
class=
"a-area"
></div>
</div>
</div>
...
...
Please
register
or
login
to post a comment