Commit 33c12522 by 施宇

111

parent 737df1d3
...@@ -263,7 +263,7 @@ ...@@ -263,7 +263,7 @@
}); });
$('.input_btn').click(function () { $('.input_btn').click(function () {
window.location.href = '/indexsearch' window.location.href = '//home.ic.com/homes'
}) })
$('.mobile_wrapper .lb_nav span').click(function () { $('.mobile_wrapper .lb_nav span').click(function () {
var index = $(this).index(); var index = $(this).index();
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
$.ajax({ $.ajax({
type: type, type: type,
url: URL_api + "/" + url, url: url,
data: params, data: params,
dataType: dataTypeXpx, dataType: dataTypeXpx,
xhrFields: { xhrFields: {
...@@ -152,11 +152,11 @@ ...@@ -152,11 +152,11 @@
})(window); })(window);
//跨域模式切换 兼容 //跨域模式切换 兼容
var dataTypeXpx = "json"; // var dataTypeXpx = "json";
if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) { // if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) {
dataTypeXpx = "jsonp"; // dataTypeXpx = "jsonp";
} // }
var cookieHostname = window.location.hostname.split(".")[1] + "." + window.location.hostname.split(".")[2]; // var cookieHostname = window.location.hostname.split(".")[1] + "." + window.location.hostname.split(".")[2];
//form序列化json //form序列化json
$.fn.serializeJson = function () { $.fn.serializeJson = function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment