Skip to content

Commit

Permalink
mod: fenlei searchFrom order 字段透传 (#639)
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 289f442 commit 73853c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/mip-custom/common/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ const getHashParams = () => {
// pc标识字段
params.fromSite = data.getHashData('fromSite')

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

return params
}

Expand Down

0 comments on commit 73853c0

Please sign in to comment.