Showing
1 changed file
with
11 additions
and
2 deletions
@@ -114,6 +114,14 @@ | @@ -114,6 +114,14 @@ | ||
114 | } | 114 | } |
115 | return params; | 115 | return params; |
116 | } | 116 | } |
117 | + function getReqUrl(url) { | ||
118 | + if (url.indexOf("?") != -1) { | ||
119 | + var str = url.split("?")[0]; | ||
120 | + return str; | ||
121 | + } | ||
122 | + return url; | ||
123 | + } | ||
124 | + | ||
117 | function handleDialogOk(){ | 125 | function handleDialogOk(){ |
118 | var href =$G('href').value.replace(/^\s+|\s+$/g, ''); | 126 | var href =$G('href').value.replace(/^\s+|\s+$/g, ''); |
119 | if (!domainValidate(href)) { | 127 | if (!domainValidate(href)) { |
@@ -188,8 +196,9 @@ | @@ -188,8 +196,9 @@ | ||
188 | var params = {action: action}; | 196 | var params = {action: action}; |
189 | var hrefParams = getUrlParams(href); | 197 | var hrefParams = getUrlParams(href); |
190 | if (action == "go.h5") { | 198 | if (action == "go.h5") { |
191 | - params.params = {url: href}; | ||
192 | - params.param = hrefParams; | 199 | + var hrefUrl = getReqUrl(href); |
200 | + params.params = {url: hrefUrl}; | ||
201 | + params.params.param = hrefParams; | ||
193 | } | 202 | } |
194 | 203 | ||
195 | else if (action == "go.productDetail") { | 204 | else if (action == "go.productDetail") { |
-
Please register or login to post a comment