if (e.currentTarget.id == “homeForm”) {
警报(“asd1f2s1df”);
e.preventDefault();
let 标志 = false;
let 协议 = window.location.protocol;
let backpage = protocol + “//” + document.location.hostname + “/inquiryok?back=” + document.location.pathname;
如果 (emailValid & messageValid) {
标志 = true;
}
if (标志) {
$.post(protocol + “//inquiry.digoodcms.com/api/save/helispring”, $(this).serialize(), function(res, status) {
if (res.indexOf('查询发送成功') >= 0) {
window.location.href = 后台;
$(“#homeForm”).hide();
$(“.submit-success”).show();
}
});
}
}
});
函数 getTimestamp() {
var d = 新日期(),
Y = d.getFullYear(),
M = (d.getMonth() + 1) > 9 ?(d.getMonth() + 1) : '0' + (d.getMonth() + 1),
D = d.getDate() > 9 ?d.getDate() : '0' + d.getDate(),
h = d.getHours() > 9 ?d.getHours() : '0' + d.getHours(),
m = d.getMinutes() > 9 ?d.getMinutes() : '0' + d.getMinutes(),
s = d.getSeconds() > 9 ?d.getSeconds() : '0' + d.getSeconds();
var timestamp = '${Y}/${M}/${D} ${h}:${m}:${s}';
var rand = Math.random();
兰德 = rand.toString().substr(3);
返回时间戳 + ', version=' + rand;
}
if ($('.message-10a835c8e9fb4578369794e6c07a29e1').length) {
$('.message-10a835c8e9fb4578369794e6c07a29e1').val('from: ' + window.location.href + ', date: ' + getTimestamp());
}
});
请确保您的联系信息正确无误。您的消息将直接发送给收件人,不会公开显示。未经您的明确许可,我们绝不会将您的个人信息分发或出售给第三方。