Authored by 王水玲

blk 帮助中心修改

... ... @@ -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
}, {
... ...
... ... @@ -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
... ...
... ... @@ -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>
... ...
... ... @@ -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();
});
... ...
... ... @@ -141,9 +141,9 @@
.title:before {
content: "\e6e6";
position: absolute;
left: 3px;
left: 0;
top: 1px;
font-size: 18px;
font-size: 19px;
}
}
}
... ...
... ... @@ -2,7 +2,7 @@
<div class="mark"></div>
<div class="problem-area">
<i class="iconfont close">&#xe608;</i>
<div class="a-area"></div>
<div class="q-area"></div>
<div class="a-area"></div>
</div>
</div>
... ...