(function(a, b, c, d, e, j, s) {
a[d] = a[d] || function() {
(a[d].a = a[d].a || []).push(arguments)
};
j = b.createElement(c),
s = b.getElementsByTagName(c)[0];
j.async = true;
j.charset = 'UTF-8';
j.src = 'https://static.meiqia.com/widget/loader.js';
s.parentNode.insertBefore(j, s);
})(window, document, 'script', '_MEIQIA');_MEIQIA('entId', '2c9e09a8d32904d869850c5b85e7eba9');
var css_result = '';
var html_result = ''; css_result +='';
html_result +='
';
document.body.insertAdjacentHTML('beforeend', css_result);
document.body.insertAdjacentHTML('beforeend', html_result);
var _formHtml='';
_formHtml+='';
//原生表单验证
function submit_api_form(){
let _name = document.getElementById('i-name')
let _tel = document.getElementById('i-tel')
let _message = document.getElementById('i-message')
let _educational = document.getElementById('i-educational')
let _contact_time = document.getElementById('i-contact_time')
if(_name.value == ''){alert('[提示]请填写姓名');return false;}
if(_tel.value == ''){alert('[提示]请填写您的电话');return false;}
if(_message.value == ''){alert('[提示]请填写您的QQ或微信');return false;}
if(_educational.value == ''){alert('[提示1]请选择您的当前学历');return false;}
if(_contact_time.value == ''){alert('[提示]请选择您的最佳联络时间');return false;}
}
//显示表单
function showForm(){
removeAllChild('JcPopupForm');
document.body.insertAdjacentHTML('beforeend', _formHtml);
}
//关闭表单
function hideForm(){
let _formdiv = document.getElementsByClassName('JcPopupForm');
for( let m = _formdiv.length-1 ; m >=0 ; m-- ){
_formdiv[m].parentNode.removeChild( _formdiv[m] );
}
}
//删除元素
function removeAllChild(id) {
let _formdiv = document.getElementsByClassName(id);
if(_formdiv.length > 0){ //判断当前是否存在
while(_formdiv.hasChildNodes()) //当div下还存在子节点时 循环继续
{
_formdiv.removeChild(_formdiv.firstChild);
}
}
}