?/var sc = "";
//var sc = "";
//var sc = "";
var sc= "";
//sc += "";
sc+= "";
document.write(sc);
//二维码展C示?http://cmscloudim.zhuchao.cc/pages/MakeQRCodePage.aspx?link=www.czleade.cn
//获取除了域名后面的参敎ͼvar s=window.location.pathname + window.location.search
var server = "http://cmscloudim.zhuchao.cc";
var qrcodeurl = "http://cmscloudim.zhuchao.cc/pages/MakeQRCodePage.aspx?link=";
var cid = "0";
var setobj;
var time = 0;
var tel = "", qq = "",mobile="";
var isopentc = true;//是否可以打开弹窗;
$(function () {
//alert("q是发送短信测?!!");
//alert(window.location.toString())
//提交留言
$("body").on("click", "#btnsave1,#btnsave2", function () {
var rel = $(this).attr("rel");
var company = $("#txtcompany" + rel).val();
var name = $("#txtsender" + rel).val();
var mobile = $("#txttelephone" + rel).val();
var email = $("#txtemail" + rel).val();
var content = $("#txtcontent" + rel).val();
sendmessage(company, name, mobile, email, content);
});
//免费电话咨询
$("body").on("click", "#btnmobilevisit1,#btnmobilevisit2", function () {
var rel = $(this).attr("rel");
var company = "";
var name = "免费电话咨询客户";
var mobile = $("#txttelephone_visit" + rel).val();
var email = "";
//var content = "免费电话咨询客户,电话" + $("#txttelephone_visit" + rel).val() + ",请尽快回?;
var content = "";
sendmessage2(company, name, mobile, email, content);
});
//x再弹?E后再说)
$("body").on("click", "#clo1,#clo2", function () {
//layer.close(layer.index);
//console.log(time);
$(".tc").hide(300);
if (time++ <= setobj.num) {
setTimeout(function () { showmessinfo() }, setobj.next * 1000);
}
})
//弹出层显C?
gettcsetinfo();
//右侧客服昄
ShowMsgInfo();
$("body").not(".message_olr_list").children().bind("click", function () {
$(".oll_tel").fadeOut(300);
$(".oll_mes").fadeOut(300);
$(".oll_ewm").fadeOut(300);
$(".message_olr_list li a").removeClass("act");
})
$("body").not(".message_ol").children().bind("click", function () {
$(".oll_tel").fadeOut(300);
$(".oll_mes").fadeOut(300);
$(".oll_ewm").fadeOut(300);
$(".message_olr_list li a").removeClass("act");
})
//$("body").not("#divmsginfo").children().bind("click", function () {
//})
})
//获取配置信息
//http://www.cnblogs.com/fire-phoenix/archive/2009/11/13/1614144.html(跨域)
function gettcsetinfo() {
var link = window.location.pathname;
console.log("pathname:"+link);
if (link == "/" || (link != "/supply/" && link.indexOf("/supply/") >=0)) {
cid = $("#SendMessageScript").attr("cid");
/*
$.post("Message/MessageTool.ashx", { "action": "GetTCSetInfo", "cid": cid}, function (data) {
alert("sss");
})*/
//都用跨域讉K
$.getJSON(
server + "/ashx/MessageTool.ashx?callback=?",
{ "action": "GetTCSetInfo", "cid": cid },
function (data) {
//console.log(data)
setobj = data;
setTimeout(function () {showmessinfo() },20000);
}
);
}
}
//昄弹出?
function showmessinfo() {
//暂时一直ؓtrue
if (isopentc) {
time++;
//弹出层只有在isopentc为true的时候才会显C?如显CZ留言?弹出层不再显C?
$(".tc").show(300);
}
}
//发送商机留a
function sendmessage(company, name, mobile, email, content) {
var telreg1 = /^1[3,4,5,7,8]\d{9}$/;
var telreg2 = /^0\d{2,3}-?\d{7,8}$/;
if (!telreg1.test(mobile) && !telreg2.test(mobile)) {
//alert("误入正的手机L");
layer.msg('误入正的手机L', { icon:6, time: 2000 })
return false;
}
/*
if ($.trim(content) == "") {
alert("误入你要咨询的内容");
return false;
}
*/
if (company != "" && !iscnoren(company)) {
layer.msg('公司名必Mؓ中文或英?, { icon: 6, time: 2500 })
return false;
}
if (name != "" && !iscnoren(name)) {
layer.msg('姓名必须Z文或英文', { icon: 6, time: 2500 })
return false;
}
if (email != "" && !isEmail(email)) {
layer.msg('误入正格式的邮箱', { icon: 6, time: 2500 })
return false;
}
cid = $("#SendMessageScript").attr("cid");
var siteurl = window.location.href.toString();
layer.load();
$.getJSON(
server + "/ashx/MessageSend.ashx?callback=?",
{
"sender": encodeURIComponent(name), "company": encodeURIComponent(company),
"cid": cid, "telephone": encodeURIComponent(mobile), "email": encodeURIComponent(email),
"content": encodeURIComponent(content), "siteurl": encodeURIComponent(siteurl)
},
function (data) {
//console.log(data)
layer.closeAll('loading');
if (1==1) {
/*
layer.msg('发送成功,我们会尽快与您联p!', { icon:1, time: 2000 }, function () {
$(".oll_mes").fadeOut(100);
$(".ol_zxly").fadeOut(100);
$("a.ol_mes").removeClass("act");
})
*/
ShowPCAlert('我们会尽快与您联p!', function () {
$(".oll_mes").fadeOut(100);
$(".ol_zxly").fadeOut(100);
$("a.ol_mes").removeClass("act");
}, 3);
clearinfo();
}
else {
//layer.msg('留言p|', { icon: 2, time: 2000 })
var error = data.info;
if (error == "")
error = "留言p|";
/*
ShowPCAlert(error, function () {
$(".oll_mes").fadeOut(100);
$(".ol_zxly").fadeOut(100);
$("a.ol_mes").removeClass("act");
}, 4);
*/
layer.msg(error, { icon: 2, time: 4000 },function(){
$(".oll_mes").fadeOut(100);
$(".ol_zxly").fadeOut(100);
$("a.ol_mes").removeClass("act");
});
}
}
);
}
function clearinfo() {
$("#txtcompany1").val("");
$("#txtsender1").val("");
$("#txttelephone1").val("");
$("#txtemail1").val("");
$("#txtcontent1").val("");
$("#txtcompany2").val("");
$("#txtsender2").val("");
$("#txttelephone2").val("");
$("#txtemail2").val("");
$("#txtcontent2").val("");
}
function isEmail(str) {
var reg = /^(\w)+(\.\w+)*@(\w)+((\.\w+)+)$/;
return reg.test(str);
}
function iscnoren(str) {
var reg = /^[\u0391-\uFFE5A-Za-z]+$/;
return reg.test(str);
}
function sendmessage2(company, name, mobile, email, content) {
var telreg1 = /^1[3,4,5,7,8]\d{9}$/;
var telreg2 = /^0\d{2,3}-?\d{7,8}$/;
if (!telreg1.test(mobile) && !telreg2.test(mobile)) {
//alert("误入正的手机L");
layer.msg('误入正的手机L', { icon: 6, time: 2500 })
return false;
}
cid = $("#SendMessageScript").attr("cid");
var siteurl = window.location.href.toString();
$.getJSON(
server + "/ashx/MessageSend.ashx?callback=?",
{
"sender": encodeURIComponent(name), "company": encodeURIComponent(company),
"cid": cid, "telephone": encodeURIComponent(mobile), "email": encodeURIComponent(email),
"content": encodeURIComponent(content), "siteurl": encodeURIComponent(siteurl)
},
function (data) {
if (1==1) {
//关闭电话?
$("#txttelephone_visit1").val("");
$("#txttelephone_visit2").val("");
/*
layer.msg('发送成功,我们会尽快与您联p!', { icon:1, time: 2000 }, function () {
$(".ol_dhzx").fadeOut(100);
$(".oll_tel").fadeOut(100);
$("a.ol_tel").removeClass("act");
})
*/
ShowPCAlert('我们会尽快与您联p!', function () {
$(".ol_dhzx").fadeOut(100);
$(".oll_tel").fadeOut(100);
$("a.ol_tel").removeClass("act");
}, 3);
}
else {
var error = data.info;
if (error == "")
error = "提交p|";
/*
ShowPCAlert(error, function () {
$(".ol_dhzx").fadeOut(100);
$(".oll_tel").fadeOut(100);
$("a.ol_tel").removeClass("act");
}, 4);
*/
layer.msg(error, { icon: 2, time: 4000 },function(){
$(".ol_dhzx").fadeOut(100);
$(".oll_tel").fadeOut(100);
$("a.ol_tel").removeClass("act");
});
}
//$(".dhtjcg").fadeIn(300);
//alert('会尽快安排客服联pLQ?);
}
);
}
/*试弹出?
function showmessinfo() {
var html = '
公司名称Q?input type="text" id="txtcompany"/>
';
html+= '姓名Q?input type="text" id="txtsender"/>
';
html += '电话Q?input type="text" id="txttelephone"/>
';
html += '邮箱Q?input type="text" id="txtemail"/>
';
html += '详细内容Q?textarea rows="2" cols="10" id="txtcontent">
';
html += '  
';
layer.open({
type: 1,
zIndex:9999,
skin: 'layui-layer-rim', //加上Ҏ
area: ['600px', '340px'], //宽高
content: html
});
}
*/
//弹出?
DailoagMsgInfo = function () {
//var idtemp = "divmsginfo_" + Math.floor(Math.random() * 100);
this.showHTml = function () {
var str = '';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '

';
str += '
' + tel + '
';
str += '
';
str += '
';
str += '';
str += '';
str += '
';
str += '
';
str += '
';
str += '
';
str += '在线留言';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
 +')
';
str += '
扫一扫,看详?/p>';
str += '
';
str += '
';
str += '
';
str += '
';
str += '

';
str += '
';
str += '
';
str += '
';
str += '

';
str += '
在线留言
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '
';
str += '

';
str += '
' + tel + '
';
str += '
';
str += '';
str += '';
str += '
';
str += '
';
str += '
';
str += '
';
return str;
}
this.DailoagMsgInfoOpen = function () {
var html =this.showHTml();
$("#divmsginfo").remove();
$("body").append(html);
//事g加蝲
$(".message_olr_list ul li").click(function () {
$(this).find("a").toggleClass("act");
$(this).siblings("li").find("a").removeClass("act");
if ($(this).find("a").is(".ol_tel.act")) {
$(".oll_tel").fadeIn(300);
$(".oll_tel").siblings("div").fadeOut(300);
}
else if ($(this).find("a").is(".ol_mes.act")) {
$(".oll_mes").fadeIn(300);
$(".oll_mes").siblings("div").fadeOut(300);
}
else if ($(this).find("a").is(".ol_ewm.act")) {
$(".oll_ewm").fadeIn(300);
$(".oll_ewm").siblings("div").fadeOut(300);
}
else {
$(".oll_tel").fadeOut(300);
$(".oll_mes").fadeOut(300);
$(".oll_ewm").fadeOut(300);
}
});
$(".message_olr_list ul li").mousedown(function () {
if ($(this).find("a").is(".ol_md")) {
$(this).find("a").addClass("act");
}
});
$(".zxly").click(function () {
$(".ol_zxly").fadeIn(300);
});
$(".dhzx").click(function () {
$(".ol_dhzx").fadeIn(300);
});
$("#clo3").click(function () {
$(".ol_dhzx").fadeOut(300);
});
$("#clo4").click(function () {
$(".ol_zxly").fadeOut(300);
});
$(".to_top").click(function () {
$('body,html').animate({
scrollTop: 0
},
500);
$(this).removeClass("act");
return false;
});
}
}
function ShowMsgInfo() {
cid = $("#SendMessageScript").attr("cid");
$.getJSON(
server + "/ashx/MessageTool.ashx?callback=?",
{ "action": "GetTCSetInfo", "cid": cid },
function (data) {
console.log(data)
var qqstr = data.qq;
tel = data.tel;
mobile = data.mobile;
var qqlist = qqstr.split(',');
if (qqlist.length > 0)
qq = qqlist[0];
tel = ((tel != null && tel != "") ? tel : mobile);
if (tel == "")
tel = " ";
var win_ = new DailoagMsgInfo();
win_.DailoagMsgInfoOpen();
}
);
}
function test() {
alert("parent");
}
DailoagPCAlert = function (msginfo, callback, second) {
var idtemp = "pcalert_" + Math.floor(Math.random() * 100);
this.showHTml = function () {
var html = '';
html += '
';
html += '

';
html += '
发送成?/h3>';
html += '' + msginfo + '
';
html += '
';
html += '
';
html += '';
html += '
';
html += '
';
return html;
}
this.DailoagPCAlertOpen = function () {
var html = this.showHTml();
$("#pcalert").remove();
$("body").append(html);
$("#btnokalert").bind("click", function () {
$("#pcalert").hide();
if (callback)
callback();
});
$("#pcalert").show();
if (second > 0) {
setTimeout(function () {
$("#pcalert").hide();
if (callback)
callback();
}, second * 1000)
}
}
}
function ShowPCAlert(msginfo, callback, second) {
var win_ = new DailoagPCAlert(msginfo, callback, second);
win_.DailoagPCAlertOpen();
} 欧美成人经典三级在线观看,中文字幕天天躁日日躁狠狠躁,小丹乖让我再进去一次,我和公大货车上发生了性关系
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<֩>|
<ı>
<ı>
<ı>
<ı>
<ı>
<ı>