Showing
6 changed files
with
17 additions
and
17 deletions
@@ -12,7 +12,7 @@ const api = global.yoho.API; | @@ -12,7 +12,7 @@ const api = global.yoho.API; | ||
12 | const getHotSearch = () => { | 12 | const getHotSearch = () => { |
13 | return api.get('', { | 13 | return api.get('', { |
14 | method: 'app.helper.hotSearch', | 14 | method: 'app.helper.hotSearch', |
15 | - showPlatform: 'yohobuy_pc' | 15 | + showPlatform: 'blk_pc' |
16 | }, { | 16 | }, { |
17 | code: 200, | 17 | code: 200, |
18 | cache: true | 18 | cache: true |
@@ -23,7 +23,7 @@ const getHotSearch = () => { | @@ -23,7 +23,7 @@ const getHotSearch = () => { | ||
23 | const gethomeCategoryFaq = () => { | 23 | const gethomeCategoryFaq = () => { |
24 | return api.get('', { | 24 | return api.get('', { |
25 | method: 'app.helper.homeCategoryFaq', | 25 | method: 'app.helper.homeCategoryFaq', |
26 | - showPlatform: 'yohobuy_pc' | 26 | + showPlatform: 'blk_pc' |
27 | }, { | 27 | }, { |
28 | code: 200, | 28 | code: 200, |
29 | cache: true | 29 | cache: true |
@@ -34,7 +34,7 @@ const gethomeCategoryFaq = () => { | @@ -34,7 +34,7 @@ const gethomeCategoryFaq = () => { | ||
34 | const getSelfService = () => { | 34 | const getSelfService = () => { |
35 | return api.get('', { | 35 | return api.get('', { |
36 | method: 'app.helper.selfService', | 36 | method: 'app.helper.selfService', |
37 | - showPlatform: 'yohobuy_pc' | 37 | + showPlatform: 'blk_pc' |
38 | }, { | 38 | }, { |
39 | code: 200 | 39 | code: 200 |
40 | }); | 40 | }); |
@@ -43,7 +43,7 @@ const getSelfService = () => { | @@ -43,7 +43,7 @@ const getSelfService = () => { | ||
43 | const helpSearch = (params) => { | 43 | const helpSearch = (params) => { |
44 | return api.get('', { | 44 | return api.get('', { |
45 | method: 'app.helper.search', | 45 | method: 'app.helper.search', |
46 | - showPlatform: 'yohobuy_pc', | 46 | + showPlatform: 'blk_pc', |
47 | keyword: params.keywords, | 47 | keyword: params.keywords, |
48 | page: params.page, | 48 | page: params.page, |
49 | viewNum: '15', | 49 | viewNum: '15', |
@@ -56,7 +56,7 @@ const helpSearch = (params) => { | @@ -56,7 +56,7 @@ const helpSearch = (params) => { | ||
56 | const allQA = (page) => { | 56 | const allQA = (page) => { |
57 | return api.get('', { | 57 | return api.get('', { |
58 | method: 'app.helper.allQA', | 58 | method: 'app.helper.allQA', |
59 | - showPlatform: 'yohobuy_pc', | 59 | + showPlatform: 'blk_pc', |
60 | page: page, | 60 | page: page, |
61 | viewNum: 15 | 61 | viewNum: 15 |
62 | }, { | 62 | }, { |
@@ -233,10 +233,10 @@ const _processDetailData = (result, params) => { | @@ -233,10 +233,10 @@ const _processDetailData = (result, params) => { | ||
233 | faqs: data.faqs, | 233 | faqs: data.faqs, |
234 | allQa: _.get(result, '[2].data.list', []), | 234 | allQa: _.get(result, '[2].data.list', []), |
235 | paginationData: { | 235 | paginationData: { |
236 | - page: _.get(result, '[2].data.page', 1), | ||
237 | - limit: _.get(result, '[2].data.page_size', 15), | ||
238 | - total: _.get(result, '[2].data.total', 15), | ||
239 | - pageTotal: _.get(result, '[2].data.page_total', 15), | 236 | + page: result[2].data.page || 1, |
237 | + limit: result[2].data.pageSize || 15, | ||
238 | + total: result[2].data.total, | ||
239 | + pageTotal: result[2].data.page_total || 1, | ||
240 | queryParams: { | 240 | queryParams: { |
241 | id: params.id, | 241 | id: params.id, |
242 | page: params.page | 242 | page: params.page |
@@ -9,14 +9,14 @@ | @@ -9,14 +9,14 @@ | ||
9 | <ul class="all-problem"> | 9 | <ul class="all-problem"> |
10 | {{#allQa}} | 10 | {{#allQa}} |
11 | <li class="problem-li"> | 11 | <li class="problem-li"> |
12 | - <p class="title">{{caption}}</p> | ||
13 | - <div class="cont">{{{content}}}</div> | 12 | + <p class="icon iconfont icon-q title">{{caption}}</p> |
13 | + <div class="icon iconfont icon-a cont">{{{content}}}</div> | ||
14 | </li> | 14 | </li> |
15 | {{/allQa}} | 15 | {{/allQa}} |
16 | </ul> | 16 | </ul> |
17 | 17 | ||
18 | {{!-- 分页 --}} | 18 | {{!-- 分页 --}} |
19 | - {{{ pagination paginationData }}} | 19 | + {{{pagination paginationData}}} |
20 | </div> | 20 | </div> |
21 | 21 | ||
22 | 22 |
@@ -19,8 +19,8 @@ var problemBox = function() { | @@ -19,8 +19,8 @@ var problemBox = function() { | ||
19 | var ask = $(this).data('ask') || ''; | 19 | var ask = $(this).data('ask') || ''; |
20 | var answer = $(this).data('answer') || ''; | 20 | var answer = $(this).data('answer') || ''; |
21 | 21 | ||
22 | - $problemBox.find('.a-area').html(ask); | ||
23 | - $problemBox.find('.q-area').html(answer); | 22 | + $problemBox.find('.q-area').html(ask); |
23 | + $problemBox.find('.a-area').html(answer); | ||
24 | $problemBox.show(); | 24 | $problemBox.show(); |
25 | }); | 25 | }); |
26 | 26 |
@@ -141,9 +141,9 @@ | @@ -141,9 +141,9 @@ | ||
141 | .title:before { | 141 | .title:before { |
142 | content: "\e6e6"; | 142 | content: "\e6e6"; |
143 | position: absolute; | 143 | position: absolute; |
144 | - left: 3px; | 144 | + left: 0; |
145 | top: 1px; | 145 | top: 1px; |
146 | - font-size: 18px; | 146 | + font-size: 19px; |
147 | } | 147 | } |
148 | } | 148 | } |
149 | } | 149 | } |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <div class="mark"></div> | 2 | <div class="mark"></div> |
3 | <div class="problem-area"> | 3 | <div class="problem-area"> |
4 | <i class="iconfont close"></i> | 4 | <i class="iconfont close"></i> |
5 | - <div class="a-area"></div> | ||
6 | <div class="q-area"></div> | 5 | <div class="q-area"></div> |
6 | + <div class="a-area"></div> | ||
7 | </div> | 7 | </div> |
8 | </div> | 8 | </div> |
-
Please register or login to post a comment