Skip to content

Commit

Permalink
mod: fenlei searchFrom order 字段透传 (#1343)
Browse files Browse the repository at this point in the history
  • Loading branch information
tancygithun authored and Ricardo-Li committed Jun 6, 2019
1 parent fcf703d commit 6fb4362
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mip-custom/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ define(function (require) {
// pc标识字段
params.fromSite = data.getHashData('fromSite');

// 结果页透传字段
var RESULT_PARMAS_HASH = ['searchFrom', 'fenlei', 'order'];
for (var i = 0; i < RESULT_PARMAS_HASH.length; i++) {
var currentKey = RESULT_PARMAS_HASH[i];
if (data.getHashData(currentKey)) {
params[currentKey] = data.getHashData(currentKey);
}
}

return params;
}

Expand Down

0 comments on commit 6fb4362

Please sign in to comment.