Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Deprecated: Invalid characters passed for attempted conversion, these have been ignored in /www/wwwroot/www.85520057.com/func.php on line 230
Warning: Cannot modify header information - headers already sent by (output started at /www/wwwroot/www.85520057.com/func.php:230) in /www/wwwroot/www.85520057.com/js.php on line 6
var offer = {
// 相关配置数据
dataConfig: {
areacount: 320,
stylecount: 9,
layoutcount: 9,
// 默认配置类型 商务型
defaultConfigType: 'basic',
areaIndexCountMap: [-1,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320],
styleIndexCountMap: fengge,
layoutIndexCountMap: huxing
},
// 默认选择的配置及用户选择数据
serverConfig: {
// 索引
area: 120,
// 索引
style: 2,
// 索引
layout: 2,
},
// 初始化
initCloudHostTab: function() {
var self = this;
// 面积
$("#areaRange").rangeinput({
step: 1,
min: 60,
max: this.dataConfig.areacount,
speed: 200,
value: this.serverConfig.area,
progress: true
}).change(function(event, value) {
self.serverConfig.area = value;
//$("#thisCount-0").html(value+'㎡');
$(".choiced span.area").html(value+'㎡');
$(".put_area").val(value);
});
this.areaRangeSlide = $("#areaRange").data('rangeinput');
// 拖拉描述信息事件
$("#areaRangeDesc").on('click', 'li', function(event) {
var index = $(this).attr('data-index');
self.areaRangeSlide.setValue(index);
// 触发插件回调
$("#areaRange").trigger('change', index);
});
//
$(".styleRange").rangeinput({
speed: 200,
step: 1,
min: 1,
max: this.dataConfig.stylecount,
value: this.serverConfig.style,
progress: true
}).change(function(event, value) {
self.serverConfig.style = value;
var zxgf_li = $("#styleRangeDesc li");
var zxfg = document.querySelector(".zxfg");
for(i=0;i self.dataConfig.areacount) {
self.serverConfig.area = self.dataConfig.areacount;
return;
}
self.areaRangeSlide.setValue(self.serverConfig.area);
$("#areaRange").trigger('change', self.serverConfig.area);
break;
case 'style':
if (isMinus) {
self.serverConfig.style--;
} else {
self.serverConfig.style++;
}
if (self.serverConfig.style < 1) {
self.serverConfig.style = 1;
return;
}
if (self.serverConfig.style > self.dataConfig.stylecount) {
self.serverConfig.style = self.dataConfig.stylecount;
return;
}
self.styleRangeSlide.setValue(self.serverConfig.style);
$(".styleRange").trigger('change', self.serverConfig.style);
break;
case 'layout':
if (isMinus) {
self.serverConfig.layout--;
} else {
self.serverConfig.layout++;
}
if (self.serverConfig.layout < 1) {
self.serverConfig.layout = 1;
return;
}
if (self.serverConfig.layout > self.dataConfig.layoutcount) {
self.serverConfig.layout = self.dataConfig.layoutcount;
return;
}
self.layoutRangeSlide.setValue(self.serverConfig.layout);
$(".layoutRange").trigger('change', self.serverConfig.layout);
break;
}
});
// 计数在最开始并不显示 待初始化后再显示
$(".config-count").add($('.range')).css('visibility', 'visible');
},
// 根据推荐配置更新配置
initConfig: function(configType) {
// 更新配置
this.areaRangeSlide.setValue(this.serverConfig.area);
this.styleRangeSlide.setValue(this.serverConfig.style);
this.layoutRangeSlide.setValue(this.serverConfig.layout);
// 触发插件回调 用于同步界面
$("#areaRange").trigger('change', this.serverConfig.area);
$(".styleRange").trigger('change', this.serverConfig.style);
$(".layoutRange").trigger('change', this.serverConfig.layout);
},
// 页面初始化
init: function() {
var self = this;
this.initCloudHostTab();
this.initConfig();
}
}
$(function() {
offer.init();
})
!function(t) {
function e(t, e) {
var n = Math.pow(10, e);
return Math.round(t * n) / n
}
function n(t, e) {
var n = parseInt(t.css(e), 10);
if (n) return n;
var r = t[0].currentStyle;
return r && r.width && parseInt(r.width, 10)
}
function r(t) {
var e = t.data("events");
return e && e.onSlide
}
function a(a, i) {
function o(t, n, r, o, u) {
u = u || {};
var d = t.type;
if ("drag" != d || c || (n = Math.max(0, Math.min(n, g))), void 0 === r ? r = n / g * x: o && (r -= i.min), S && (r = Math.round(r / S) * S), (void 0 === n || S) && ("drag" != d || c) && (n = r * g / x), isNaN(r)) return v;
n = Math.max(0, Math.min(n, g)),
r = n / g * x,
(o || !s) && (r += i.min),
s && (o ? n = g - n: r = i.max - r),
r = e(r, D);
var l = "click" == t.type;
if (C && void 0 !== p && !l && (t.type = "onSlide", k.trigger(t, [r, n]), t.isDefaultPrevented())) return v;
var h = u.customSpeed || 0;
c && (h = 0);
var m = l ? i.speed: h,
M = l ?
function() {
t.type = "change",
k.trigger(t, [r])
}: null;
return s ? (y.animate({
top: n
},
m, M), i.progress && w.animate({
height: g - n + y.height() / 2
},
m)) : (y.animate({
left: n
},
m, M), i.progress && w.animate({
width: n + y.width() / 2
},
m)),
p = r,
f = n,
a.val(r),
v,
r>8 ? ($(".handle").eq(0).find("span").text(r+"㎡")) : (0)
}
function u() {
s = i.vertical || n(m, "height") > n(m, "width"),
s ? (g = n(m, "height") - n(y, "height"), l = m.offset().top + g) : (g = n(m, "width") - n(y, "width"), l = m.offset().left)
}
function d() {
u(),
v.setValue(void 0 !== i.value ? i.value: i.min)
}
var s, p, l, g, f, c = !-[1] && !window.XMLHttpRequest,
v = this,
h = i.css,
m = t("").data("rangeinput", v);
a.before(m);
var y = m.addClass(h.slider).find("a").addClass(h.handle),
w = m.find("div").addClass(h.progress);
var tiaoleng=$(document).find(".config-box").length;
$(".config-box").each(function(index, element) {
$(this).find(".config-count").attr("id","thisCount-"+index)
});
t.each("min,max,step,value".split(","),
function(t, e) {
var n = a.attr(e);
parseFloat(n) && (i[e] = parseFloat(n, 10))
});
var x = i.max - i.min,
S = "any" == i.step ? 0 : i.step,
D = i.precision;
if (void 0 === D && (D = S.toString().split("."), D = 2 === D.length ? D[1].length: 0), "range" == a.attr("type")) {
var M = a.clone().wrap("").parent().html(),
b = t(M.replace(/type/i, "type=text data-orig-type"));
b.val(i.value),
a.replaceWith(b),
a = b
}
a.addClass(h.input);
var k = t(v).add(a),
C = !0;
t.extend(v, {
getValue: function() {
return p
},
setValue: function(e, n) {
return u(),
o(n || t.Event("api"), void 0, e, !0, {
customSpeed: 200
})
},
getConf: function() {
return i
},
getProgress: function() {
return w
},
getHandle: function() {
return y
},
getInput: function() {
return a
},
step: function(e, n) {
n = n || t.Event();
var r = "any" == i.step ? 1 : i.step;
v.setValue(p + r * (e || 1), n)
},
stepUp: function(t) {
return v.step(t || 1)
},
stepDown: function(t) {
return v.step( - t || -1)
}
}),
t.each("onSlide,change".split(","),
function(e, n) {
t.isFunction(i[n]) && t(v).on(n, i[n]),
v[n] = function(e) {
return e && t(v).on(n, e),
v
}
}),
y.drag({
drag: !1
}).on("dragStart",
function() {
u(),
C = r(t(v)) || r(a)
}).on("drag",
function(t, e, n) {
return a.is(":disabled") ? !1 : void o(t, s ? e: n)
}).on("dragEnd",
function(t, e, n) {
t.isDefaultPrevented() || (t.type = "change", k.trigger(t, [p])),
o(t, s ? e: n, void 0, !1, {
customSpeed: 200
})
}).click(function(t) {
return t.preventDefault()
}),
m.click(function(t) {
if (a.is(":disabled") || t.target == y[0]) return t.preventDefault();
u();
var e = s ? y.height() / 2 : y.width() / 2;
o(t, s ? g - l - e + t.pageY: t.pageX - l - e)
}),
i.keyboard && a.keydown(function(e) {
if (!a.attr("readonly")) {
var n = e.keyCode,
r = -1 != t([75, 76, 38, 33, 39]).index(n),
i = -1 != t([74, 72, 40, 34, 37]).index(n);
return ! r && !i || e.shiftKey || e.altKey || e.ctrlKey ? void 0 : (r ? v.step(33 == n ? 10 : 1, e) : i && v.step(34 == n ? -10 : -1, e), e.preventDefault())
}
}),
a.blur(function(e) {
var n = t(this).val();
n !== p && v.setValue(n, e)
}),
t.extend(a[0], {
stepUp: v.stepUp,
stepDown: v.stepDown
}),
d(),
g || t(window).load(d)
}
t.tools = t.tools || {
version: 'version: "1.2.6'
};
var i;
i = t.tools.rangeinput = {
conf: {
min: 0,
max: 100,
step: "any",
steps: 0,
value: 0,
precision: void 0,
vertical: 0,
keyboard: !0,
progress: !1,
speed: 100,
css: {
input: "range",
slider: "slider",
progress: "progress",
handle: "handle"
}
}
};
var o, u;
t.fn.drag = function(e) {
document.ondragstart = function() {
return ! 1
},
e = t.extend({
x: !0,
y: !0,
drag: !0
},
e);
var n = null;
return o = o || t(document).on("mousedown mouseup",
function(r) {
var a = t(r.target);
if ("mousedown" == r.type && a.data("drag")) {
n = null;
var i = a.position(),
d = r.pageX - i.left,
s = r.pageY - i.top,
p = !0;
o.on("mousemove.drag",
function(t) {
var r = t.pageX - d,
i = t.pageY - s,
o = {};
e.x && (o.left = r),
e.y && (o.top = i),
p && (a.trigger("dragStart"), p = !1),
e.drag && a.css(o),
n = o,
a.trigger("drag", [i, r]),
u = a;
}),
r.preventDefault()
} else try {
u && u.trigger("dragEnd", [n.top, n.left])
} finally {
o.off("mousemove.drag"),
u = null,
n = null
}
}),
this.data("drag", !0)
},
t.expr[":"].range = function(e) {
var n = e.getAttribute("type");
return n && "range" == n || !!t(e).filter("input").data("rangeinput")
},
t.fn.rangeinput = function(e) {
if (this.data("rangeinput")) return this;
e = t.extend(!0, {},
i.conf, e);
var n;
return this.each(function() {
var r = new a(t(this), t.extend(!0, {},
e)),
i = r.getInput().data("rangeinput", r);
n = n ? n.add(i) : i
}),
n ? n: this
}
} (jQuery);
$(function(){
$(".search button").click(function(){
var kw=$(this).parents(".search").find("input");
if (kw.val()!=''&&kw.val()!='undefined') {
window.location='/search/'+encodeURI(kw.val());
}else{
kw.focus();
}
});
//banner
if ($("#slideBox li a").length) {
//$("#slideBox li a").height($(window).height()-232);
$("#slideBox").slide({mainCell:".bd ul",autoPlay:true,trigger:"mouseover",effect:"fold",easing:"easeInOutQuint",interTime:3000,delayTime:1000});
}
//designer
if ($(".slideDesBox li a").length) {
$(".slideDesBox").slide({effect:"fold"});
}
//rooms
if ($(".h_room .slideTxtBox dl").length) {
$(".h_room .slideTxtBox").slide({effect:"left"});
}
//price change
if ($(".step_one .slideTxtBox .hd ul li").length>1) {
$(".step_one .slideTxtBox").slide({
effect:"left",
trigger:"click",
easing:"easeInBack",
pnLoop:false,
endFun:function(i,c){
$(".step_three .Set").html($(".step_one .slideTxtBox ul li:nth("+i+")").find("a").html());
$("form#offer input[name='typeid']").val(i+1);
}
});
}
//about
if ($(".about_history .picScroll-left li").length) {
$(".about_history .picScroll-left").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"left",scroll:4,vis:4,pnLoop:false,trigger:"click"});
}
if ($(".about_honor .picMarquee-left li").length) {
$(".about_honor .picMarquee-left").slide({mainCell:".bd ul",autoPlay:true,effect:"leftMarquee",vis:5,interTime:50,pnLoop:false});
}
//bottom offer
if ($("#ws").length&&$("#ws_select").length) {
$.divselect("#ws","#ws_select");
}
if ($("#kt").length&&$("#kt_select").length) {
$.divselect("#kt","#kt_select");
}
if ($("#wy").length&&$("#wy_select").length) {
$.divselect("#wy","#wy_select");
}
if ($("#cs").length&&$("#cs_select").length) {
$.divselect("#cs","#cs_select");
}
if ($(".radio_st label").length) {
$(".radio_st label").each(function(){
$(this).click(function(){
$(this).addClass("on").siblings().removeClass("on")
})
});
}
if ($(".radio_tx label").length) {
$(".radio_tx label").each(function(){
$(this).click(function(){
$(this).addClass("on").siblings().removeClass("on")
})
});
}
if ($(".h_from_bj").length){
setInterval(function(){
$(".h_from_bj").show();
},15000)
$(".from_btn").click(function(){
$(".h_from_bj").hide();
});
}
//right
if ($("#news_select").length&&$("#news_select_input").length) {
$.divselect("#news_select","#news_select_input");
}
//case change
if ($(".case_list li").length){
$(".case_list li .case_designer").mousemove(function() {
$(this).parent().each(function() {
$(this).find(".design_info_bg").show();
$(this).find(".design_info").show();
})
});
$(".case_list li").mouseleave(function() {
$(this).each(function() {
$(this).find(".design_info_bg").hide()
$(this).find(".design_info").hide()
})
});
}
$(".h_case ol li").each(function(){
$(this).on('mouseenter',function(e){
var e=e||window.event;
var angle=direct(e,this)
mouseEvent(angle,this,'in')
})
$(this).on('mouseleave',function(e){
var e=e||window.event;
var angle=direct(e,this)
mouseEvent(angle,this,'off')
})
})
});
//首页案列弹出层
function direct(e,o){
var w=o.offsetWidth;
var h=o.offsetHeight;
var top= o.offsetTop; //包含滚动条滚动的部分
var left= o.offsetLeft;
var scrollTOP=document.body.scrollTop||document.documentElement.scrollTop;
var scrollLeft=document.body.scrollLeft||document.documentElement.scrollLeft;
var offTop=top- scrollTOP;
var offLeft= left- scrollLeft;
//console.log(offTop+";"+offLeft)
// e.pageX|| e.clientX;
//pageX 是从页面0 0 点开始 clientX是当前可视区域0 0开始 即当有滚动条时clientX 小于 pageX
//ie678不识别pageX
//PageY=clientY+scrollTop-clientTop;(只讨论Y轴,X轴同理,下同) 页面上的位置=可视区域位置+页面滚动条切去高度-自身border高度
var ex= (e.pageX-scrollLeft)|| e.clientX;
var ey=(e.pageY-scrollTOP)|| e.clientY;
var x=(ex-offLeft-w/2)*(w>h?(h/w):1);
var y=(ey-offTop-h/2)*(h>w?(w/h):1);
var angle=(Math.round((Math.atan2(y,x)*(180/Math.PI)+180)/90)+3)%4 //atan2返回的是弧度 atan2(y,x)
var directName=["上","右","下","左"];
return directName[angle]; //返回方向 0 1 2 3对应 上 右 下 左
}
function mouseEvent(angle,o,d){ //方向 元素 鼠标进入/离开
var w=o.offsetWidth;
var h=o.offsetHeight;
if(d=='in'){
switch(angle){
case '上':
$(o).find(".case_info").css({left:0,top:-h+"px"}).stop(true).animate({left:0,top:0},300)
break;
case '右':
$(o).find(".case_info").css({left:w+"px",top:0}).stop(true).animate({left:0,top:0},300)
break;
case '下':
$(o).find(".case_info").css({left:0,top:h+"px"}).stop(true).animate({left:0,top:0},300)
break;
case '左':
$(o).find(".case_info").css({left:-w+"px",top:0}).stop(true).animate({left:0,top:0},300)
break;
}
}else if(d=='off'){
switch(angle){
case '上':
setTimeout(function(){
$(o).find(".case_info").stop(true).animate({left:0,top:-h+"px"},300)
},200)
break;
case '右':
setTimeout(function(){
$(o).find(".case_info").stop(true).animate({left:w+"px",top:0},300)
},200)
break;
case '下':
setTimeout(function(){
$(o).find(".case_info").stop(true).animate({left:0,top:h+"px"},300)
},200)
break;
case '左':
setTimeout(function(){
$(o).find(".case_info").stop(true).animate({left:-w+"px",top:0},300)
},200)
break;
}
}
}
//首页案列弹出层end
function onKeyDown(event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
if(e && e.keyCode == 13) { // enter 键
$(".search button").trigger("click");
}
}
function openqq(qq){
window.open("tencent://message/?uin="+qq+"&Site=&Menu=yes");
}
function online(e) {
if (typeof doyoo!='undefined') {
doyoo.util.openChat('g=10065157');
return false;
}
var text = '';
if (e!='undefined') {
text = e.innerText;
}
//验证参数是否存在
function checkQueryString(params, name) {
if (!params) return false;
return new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i").test(params);
}
//获取URL参数值
function getQueryString(url, name) {
var index = url.indexOf('?');
if (index == -1) return '';
url = url.substr(index + 1, url.length);
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = url.match(reg);
if (r != null) return (r[2]);
return '';
}
var openNewChatWin = true;
if (typeof ksChatLink!='undefined') {
var localArr = ksChatLink.split("?");
localArr.push("");
if (typeof ksUserDefinedOpenNewChatWin != 'undefined' && ksUserDefinedOpenNewChatWin == true) {
openNewChatWin = true;
} else if (checkQueryString(localArr[1], 'ism')) {
openNewChatWin = false;
} else {
openNewChatWin = true;
}
}
//打开快商通聊天窗口链接
function ksOpenLink() {
if (typeof ksChatLink=='undefined') return false;
var appendTailUrl = '';
try {
var cas = getQueryString(ksChatLink, 'cas');
if (cas) {
var vi = '';
var dc = document.cookie.match(new RegExp('(^| )' + cas + '_KS_' + cas + '=([^;]*)(;|$)'));
if (dc != null) {
vi = (dc[2]);
}
if (vi) {
appendTailUrl += '&vi=' + vi;
}
}
} catch(e) {}
var ref = "";
try {
if (opener.document.referrer.length > 0) {
ref = opener.document.referrer;
}
} catch(e) {
ref = document.referrer;
}
if (!ref || ref.length == 0) {
ref = document.referrer;
}
//对话网址
appendTailUrl += '&dp=' + encodeURIComponent(window.locations.href);
//访客来源
if (ref) appendTailUrl += '&ref=' + encodeURIComponent(ref);
//对话标识
if (text) appendTailUrl += '&sText=' + encodeURIComponent(text);
if (ksChatLink.indexOf('?') == -1) {
appendTailUrl = appendTailUrl.substring(1) + '?';
}
ksChatLink += appendTailUrl;
//根据openNewChatWin设置打开聊天窗口
if (!openNewChatWin) {
window.locations.href = ksChatLink;
} else {
var ksWin = window.open(ksChatLink, '_blank');
if (ksWin) {
try {
ksWin.focus();
} catch(e) {} //将焦点定位到聊天窗口
}
}
}
//如果快商通代码有加载完成,则使用快商通默认的打开聊天窗口事件,否则使用自定义的打开事件
if (typeof KS != 'undefined') {
var p = {};
if (text) p['sText'] = text;
if (openNewChatWin) p['oTarget'] = '_blank';
try {
if (typeof KS.openChatWin == 'function') {
KS.openChatWin(p);
} else if (typeof KS.openChatLink == 'function') {
KS.openChatLink(p);
} else {
ksOpenLink();
}
} catch(e) {
ksOpenLink();
}
} else {
ksOpenLink();
}
}