Authored by 郝肖肖

搜索过来的query 保留,推荐词默认的显示

@@ -62,7 +62,7 @@ const list = (req, res, next) => { @@ -62,7 +62,7 @@ const list = (req, res, next) => {
62 // 推荐词条件判断 redmine: 18567 62 // 推荐词条件判断 redmine: 18567
63 if (result[2].suggestion && result[2].suggestion.isNeedSuggestion && 63 if (result[2].suggestion && result[2].suggestion.isNeedSuggestion &&
64 result[2].suggestion.termsSuggestion.length) { 64 result[2].suggestion.termsSuggestion.length) {
65 - params.query = result[2].suggestion.termsSuggestion[0].name; 65 + params.newquery = result[2].suggestion.termsSuggestion[0].name;
66 } 66 }
67 67
68 if (params.query) { 68 if (params.query) {
@@ -46,7 +46,9 @@ @@ -46,7 +46,9 @@
46 <input class="query-param" type="hidden" data-attr="promotion" value="{{promotion}}"> 46 <input class="query-param" type="hidden" data-attr="promotion" value="{{promotion}}">
47 {{/if}} 47 {{/if}}
48 48
49 -{{#if query}} 49 +{{#if newquery}}
  50 + <input class="query-param" type="hidden" data-attr="query" value="{{newquery}}">
  51 +{{else if query}}
50 <input class="query-param" type="hidden" data-attr="query" value="{{query}}"> 52 <input class="query-param" type="hidden" data-attr="query" value="{{query}}">
51 {{/if}} 53 {{/if}}
52 54