From 6fb436203ae5dfe2fafe1ef962b92eb0703c2091 Mon Sep 17 00:00:00 2001 From: tancygithun <1154227247@qq.com> Date: Thu, 6 Jun 2019 14:25:58 +0800 Subject: [PATCH] =?UTF-8?q?mod:=20fenlei=20searchFrom=20order=20=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E9=80=8F=E4=BC=A0=20(#1343)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mip-custom/url.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/mip-custom/url.js b/src/mip-custom/url.js index 2c80ddcc0..ce648830a 100644 --- a/src/mip-custom/url.js +++ b/src/mip-custom/url.js @@ -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; }