window.onload=()=>{ var global_cover1 = document.queryselector(".global_cover1"); var ser_cover1 = document.queryselector(".global_cover"); var global_cover2 = document.queryselector(".global_cover2"); var ser_cover2 = document.queryselector(".global_cover_2"); var global_cover3 = document.queryselector(".global_cover3"); var ser_cover3 = document.queryselector(".global_cover_3"); var global_cover4 = document.queryselector(".global_cover4"); var ser_cover4 = document.queryselector(".global_cover_4"); var global_cover5 = document.queryselector(".global_cover5"); var ser_cover5 = document.queryselector(".global_cover_5"); var global_cover6 = document.queryselector(".global_cover6"); var ser_cover6 = document.queryselector(".global_cover_6"); var global_cover7 = document.queryselector(".global_cover7"); var ser_cover7 = document.queryselector(".global_cover_7"); var global_cover8 = document.queryselector(".global_cover8"); var ser_cover8 = document.queryselector(".global_cover_8"); var mr_lianjie1=document.queryselector(".mr_lianjie1"); var mr_lianjie2=document.queryselector(".mr_lianjie2"); var global_p_cover1 = document.queryselector(".global_p_cover1"); var ser_p_cover_1 = document.queryselector(".global_p_cover_1"); var global_p_cover2 = document.queryselector(".global_p_cover2"); var ser_p_cover_2 = document.queryselector(".global_p_cover_2"); var global_p_cover3 = document.queryselector(".global_p_cover3"); var ser_p_cover_3= document.queryselector(".global_p_cover_3"); var global_p_cover4 = document.queryselector(".global_p_cover4"); var ser_p_cover_4 = document.queryselector(".global_p_cover_4"); var global_p_cover5 = document.queryselector(".global_p_cover5"); var ser_p_cover_5 = document.queryselector(".global_p_cover_5"); var global_p_cover6 = document.queryselector(".global_p_cover6"); var ser_p_cover_6 = document.queryselector(".global_p_cover_6"); var global_p_cover7 = document.queryselector(".global_p_cover7"); var ser_p_cover_7 = document.queryselector(".global_p_cover_7"); var global_p_cover8 = document.queryselector(".global_p_cover8"); var ser_p_cover_8 = document.queryselector(".global_p_cover_8"); var ser_up_box1_h6=document.queryselector(".ser_up_box1_h6"); var ser_up_box2_h6=document.queryselector(".ser_up_box2_h6"); var ser_up_box3_h6=document.queryselector(".ser_up_box3_h6"); var ser_up_box4_h6=document.queryselector(".ser_up_box4_h6"); var ser_up_box5_h6=document.queryselector(".ser_up_box5_h6"); var ser_up_box6_h6=document.queryselector(".ser_up_box6_h6"); var ser_up_box7_h6=document.queryselector(".ser_up_box7_h6"); var ser_up_box8_h6=document.queryselector(".ser_up_box8_h6"); var ser_up_box1_span=document.queryselector(".ser_up_box1_span"); var ser_up_box2_span=document.queryselector(".ser_up_box2_span"); var ser_up_box3_span=document.queryselector(".ser_up_box3_span"); var ser_up_box4_span=document.queryselector(".ser_up_box4_span"); var ser_up_box5_span=document.queryselector(".ser_up_box5_span"); var ser_up_box6_span=document.queryselector(".ser_up_box6_span"); var ser_up_box7_span=document.queryselector(".ser_up_box7_span"); var ser_up_box8_span=document.queryselector(".ser_up_box8_span"); var ser_parttwo_h2=document.queryselector(".ser_parttwo_h2"); var ser_partfour_t_h2=document.queryselector(".ser_partfour_t_h2"); var ser_p_parttwo_h2=document.queryselector(".ser_p_parttwo_h2"); var ser_con_sell_t_h2=document.queryselector(".ser_con_sell_t_h2"); var ser_sell_t_h2=document.queryselector(".ser_sell_t_h2"); var market_jieshao_p=document.queryselector(".market_jieshao_p"); //phone var ser_p_partthree1_h1=document.queryselector(".ser_p_partthree1_h1"); var ser_p_partthree2_h1=document.queryselector(".ser_p_partthree2_h1"); var ser_p_partthree3_h1=document.queryselector(".ser_p_partthree3_h1"); var ser_p_partthree4_h1=document.queryselector(".ser_p_partthree4_h1"); var ser_p_partthree5_h1=document.queryselector(".ser_p_partthree5_h1"); var ser_p_partthree6_h1=document.queryselector(".ser_p_partthree6_h1"); var ser_p_partthree7_h1=document.queryselector(".ser_p_partthree7_h1"); var ser_p_partthree8_h1=document.queryselector(".ser_p_partthree8_h1"); var ser_jianshao_p=document.queryselector(".ser_jianshao_p"); var ser_p_partthree1_h6=document.queryselector(".ser_p_partthree1_h6"); var ser_p_partthree2_h6=document.queryselector(".ser_p_partthree2_h6"); var ser_p_partthree3_h6=document.queryselector(".ser_p_partthree3_h6"); var ser_p_partthree4_h6=document.queryselector(".ser_p_partthree4_h6"); var ser_p_partthree5_h6=document.queryselector(".ser_p_partthree5_h6"); var ser_p_partthree6_h6=document.queryselector(".ser_p_partthree6_h6"); var ser_p_partthree7_h6=document.queryselector(".ser_p_partthree7_h6"); var ser_p_partthree8_h6=document.queryselector(".ser_p_partthree8_h6"); var ser_p_partfour_h2=document.queryselector(".ser_p_partfour_h2"); var ser_p_con_t_h2=document.queryselector(".ser_p_con_t_h2"); var ser_p_map_h2=document.queryselector(".ser_p_map_h2"); var ser_lianjiep1=document.queryselector(".ser_lianjiep1"); var ser_lianjiep2=document.queryselector(".ser_lianjiep2"); var ser_jianshao_pp=document.queryselector(".ser_jianshao_pp"); /* */ var ser_href = document.queryselectorall(".ser_href a"); ser_href.foreach((ele) => { scan({ option: 0.15, targetele: ele , animation: "ser_global_reveal 1s linear 1s forwards", }); }); var ser_p_href = document.queryselectorall(".ser_p_href a"); ser_p_href.foreach((ele) => { scan({ option: 0.15, targetele: ele , animation: "ser_global_reveal 1s linear 1s forwards", }); }); scan({ option: 0.15, targetele: global_cover1, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover1.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover2, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover2.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover3, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover3.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover4, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover4.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover5, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover5.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover6, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover6.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover7, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover7.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.15, targetele: global_cover8, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_cover8.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover1, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_1.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover2, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_2.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover3, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_3.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover4, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_4.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover5, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_5.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover6, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_6.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover7, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_7.style.animation = "uncover 0.8s linear 1s forwards"; } }); scan({ option: 0.2, targetele: global_p_cover8, animation: "ser_global_reveal 0.8s linear 0.2s forwards", funcall: (obj) => { ser_p_cover_8.style.animation = "uncover 0.8s linear 1s forwards"; } }); //ser_h6 scan({ option: 0.15, targetele: ser_up_box1_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box2_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box3_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box4_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box5_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box6_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box7_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_up_box8_h6 , animation: "ser_global_reveal 1s linear 1s forwards", }); //ser_span scan({ option: 0.15, targetele: ser_up_box1_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box2_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box3_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box4_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box5_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box6_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box7_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_up_box8_span , animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele: ser_parttwo_h2, animation: "ser_global_reveal 0.4s linear 0.3s forwards", }); scan({ option: 0.15, targetele: ser_partfour_t_h2, animation: "ser_global_reveal 0.5s linear 0.5s forwards", }); scan({ option: 0.15, targetele:ser_p_parttwo_h2 , animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele:ser_con_sell_t_h2 , animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele:ser_p_map_h2 , animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele:ser_sell_t_h2, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele:market_jieshao_p, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele:mr_lianjie1, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele:mr_lianjie2, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); //phone scan({ option: 0.15, targetele: ser_p_partthree1_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree2_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree3_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree4_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree5_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree6_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree7_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree8_h1, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_jianshao_p, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree1_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree2_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree3_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree4_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree5_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree6_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree7_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partthree8_h6, animation: "ser_global_reveal 0.8s linear 1s forwards", }); scan({ option: 0.15, targetele: ser_p_partfour_h2, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele: ser_p_con_t_h2, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele: ser_lianjiep1, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele: ser_lianjiep2, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); scan({ option: 0.15, targetele: ser_jianshao_pp, animation: "ser_global_reveal 0.5s linear 0.8s forwards", }); //验证 var ser_error_bt=document.queryselector(".ser_error_bt"); var ser_error_mz=document.queryselector(".ser_error_mz"); var ser_error_dh=document.queryselector(".ser_error_dh"); var ser_error_yx=document.queryselector(".ser_error_yx"); var ser_error_wt=document.queryselector(".ser_error_wt"); var entry_content=document.queryselector(".entry_content"); var entry_content_p=document.queryselector(".entry_content_p"); var ser_title=document.queryselector(".ser_title"); var ser_name=document.queryselector(".ser_name"); var ser_telephone=document.queryselector(".ser_telephone"); var ser_email=document.queryselector(".ser_email"); var ser_text=document.queryselector(".ser_text"); ser_title.addeventlistener("focus", function() { ser_error_bt.style.display = "none"; }); ser_name.addeventlistener("focus", function() { ser_error_mz.style.display = "none"; }); ser_email.addeventlistener("focus", function() { ser_error_yx.style.display = "none"; }); ser_telephone.addeventlistener("focus", function() { ser_error_dh.style.display = "none"; }); ser_text.addeventlistener("focus", function() { ser_error_wt.style.display = "none"; }); entry_content.addeventlistener("click", function() { var ser_rhf = 0 if (ser_title.value ==''){ ser_error_bt.style.display = "inline-block"; ser_error_bt.innertext = '请输入您的标题'; }else { ser_rhf++; } if (ser_name.value ==''){ ser_error_mz.style.display = "inline-block"; ser_error_mz.innertext = '请输入您的姓名'; } else { ser_rhf++; } if (ser_text.value ==''){ ser_error_wt.style.display = "inline-block"; ser_error_wt.innertext = '请输入您的问题'; } else { ser_rhf++; } if (ser_telephone.value ==''){ ser_error_dh.style.display = "inline-block"; ser_error_dh.innertext = '请输入电话号码'; } else if(ser_telephone.value !='') { ser_error_dh.style.display = "inline-block"; var reg=/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; var flag=reg.test(ser_telephone.value); if(flag){ //提示绿色对勾 ser_error_dh.style.display = "inline-block"; ser_error_dh.innertext='电话号码输入正确'; ser_rhf++; ser_error_dh.style.color="rgb(68, 82, 169)"; }else{ ser_error_dh.innertext='电话号码输入不正确'; ser_error_dh.style.color="red"; } } if (ser_email.value ==''){ ser_error_yx.style.display = "inline-block"; ser_error_yx.innertext = '请输入您的邮箱'; } else if (ser_email.value !=''){ ser_error_yx.style.display = "inline-block"; var reg= /^([a-za-z0-9_-])+@([a-za-z0-9_-])+(\.[a-za-z0-9_-])+/; var flag=reg.test(ser_email.value); if(flag){ //提示绿色对勾 ser_error_yx.style.display = "inline-block"; ser_error_yx.innertext='邮箱输入正确'; ser_rhf++; ser_error_yx.style.color="rgb(68, 82, 169)"; }else{ ser_error_yx.innertext='邮箱输入不正确'; ser_error_yx.style.color="red"; } } if (ser_rhf == 5) { axios({ url: "/casccms/counsel/submitcounselservice", baseurl:"http://119.97.164.198:8080", method: "post", category:"1", // data:{ // email:`${email[0].value}`, // title:`${title[0].value}`, // telephone:`${telephone[0].value}`, // name:`${user[0].value}`, // question:`${question[0].value}`, // } }).then((data)=> { // console.log(data); }) alert("系统维护中,暂不允许提交!"); } }); // ——————————————————————phone———————— var ser_error_bt_p=document.queryselector(".ser_error_bt_p"); var ser_error_mz_p=document.queryselector(".ser_error_mz_p"); var ser_error_dh_p=document.queryselector(".ser_error_dh_p"); var ser_error_yx_p=document.queryselector(".ser_error_yx_p"); var ser_error_wt_p=document.queryselector(".ser_error_wt_p"); var entry_content_p=document.queryselector(".entry_content_p"); var ser_title_p=document.queryselector(".ser_title_p"); var ser_name_p=document.queryselector(".ser_name_p"); var ser_telephone_p=document.queryselector(".ser_telephone_p"); var ser_email_p=document.queryselector(".ser_email_p"); var ser_text_p=document.queryselector(".ser_text_p"); ser_title_p.addeventlistener("focus", function() { ser_error_bt_p.style.display = "none"; }); ser_name_p.addeventlistener("focus", function() { ser_error_mz_p.style.display = "none"; }); ser_email_p.addeventlistener("focus", function() { ser_error_yx_p.style.display = "none"; }); ser_telephone_p.addeventlistener("focus", function() { ser_error_dh_p.style.display = "none"; }); ser_text_p.addeventlistener("focus", function() { ser_error_wt_p.style.display = "none"; }); entry_content_p.addeventlistener("click", function() { var ser_rhf_p = 0; if (ser_title_p.value ==''){ ser_error_bt_p.style.display = "inline-block"; ser_error_bt_p.innertext = '请输入您的标题'; }else{ ser_rhf_p++; } if (ser_name_p.value ==''){ ser_error_mz_p.style.display = "inline-block"; ser_error_mz_p.innertext = '请输入您的姓名'; }else{ ser_rhf_p++; } if (ser_text_p.value ==''){ ser_error_wt_p.style.display = "inline-block"; ser_error_wt_p.innertext = '请输入您的问题'; }else{ ser_rhf_p++; } if (ser_telephone_p.value ==''){ ser_error_dh_p.style.display = "inline-block"; ser_error_dh_p.innertext = '请输入电话号码'; } else if (ser_telephone_p.value !='') ser_error_dh_p.style.display = "inline-block"; var reg=/^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; var flag=reg.test(ser_telephone_p.value); if(flag){ //提示绿色对勾 ser_error_dh_p.style.display = "inline-block"; ser_error_dh_p.innertext='电话输入正确'; ser_rhf_p++; ser_error_dh_p.style.color="rgb(68, 82, 169)"; }else{ ser_error_dh_p.innertext='电话输入不正确'; ser_error_dh_p.style.color="red"; } if (ser_email_p.value ==''){ ser_error_yx_p.style.display = "inline-block"; ser_error_yx_p.innertext = '请输入您的邮箱'; } else if (ser_email_p.value !=''){ ser_error_yx_p.style.display = "inline-block"; } var reg= /^([a-za-z0-9_-])+@([a-za-z0-9_-])+(\.[a-za-z0-9_-])+/; var flag=reg.test(ser_email_p.value); if(flag){ //提示绿色对勾 ser_error_yx_p.style.display = "inline-block"; ser_error_yx_p.innertext='邮箱输入正确'; ser_rhf_p++; ser_error_yx_p.style.color="rgb(68, 82, 169)"; }else{ ser_error_yx_p.innertext='邮箱输入不正确'; ser_error_yx_p.style.color="red"; } if (ser_rhf_p == 5) { axios({ url: "/casccms/counsel/submitcounselservice", baseurl:"http://119.97.164.198:8080", method: "post", category:"1", // data:{ // email:`${email[1].value}`, // title:`${title[1].value}`, // telephone:`${telephone[1].value}`, // name:`${user[1].value}`, // question:`${question[1].value}`, // } }).then((data)=> { console.log(data); alert("提交成功!"); }) alert("系统维护中,暂不允许提交!"); } }); //传数据 }