var regexp = { reg_idcardno: /(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}[0-9xx]$)/, // 身份证 reg_telno: /^1[3|4|5|6|7|8|9]\d{9}$/,// 手机号 // reg_password: /^(\w){8,16}$/,// 登录密码 reg_password: /^(?![0-9]+$)(?![a-za-z]+$)[0-9a-za-z]{6,10}$/,// 密码 reg_number: /^\d{6}$/, // 验证数字 reg_name: /^[\u4e00-\u9fa5]{2,6}$/,//验证名字 reg_text: /^[0-9a-za-z\u4e00-\u9fa5`~!@#$^&*\\()=|{}':;',\\\\.<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?%+_]{1,20}$/, reg_email: /^(\w)+(\.\w+)*@(\w)+((\.\w{2,3}){1,3})$/,//邮箱 regnull: /^\s*$/g,// 空字符 reghtmllabel: /<\/?.+?\/?>/g,// html标签 invoicetitle: /^[0-9a-za-z\(\)\(\)\u4e00-\u9fa5]{0,50}$/, //发票抬头 identifynumber: /^[a-z0-9]{15}$|^[a-z0-9]{17}$|^[a-z0-9]{18}$|^[a-z0-9]{20}$/, //纳税人识别号 banknumber: /^\d{16,19}$/, //银行卡 saftcode: /^\d{3}$/, //银行卡 }; var id = getqueryvariable("id") var type = getqueryvariable("type") function getqueryvariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i 800 && scroll >= shrinkheader ) { swiper00(5) } else { swiper00(1) } }); function getcurrentscroll() { return window.pageyoffset || document.documentelement.scrolltop; } function getqueryvariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i=0;i0){ // alert("滚动条已经到达顶部为0"); $('.index-arown-ts').hide() } if ($(document).scrolltop()> 1560){ $(".mapgo").addclass("active") } if ($(document).scrolltop()< 300){ $(".main-header").removeclass("active") } if ($(document).scrolltop()> 300){ $(".main-header").addclass("active") } if (scrolltop + windowheight >= scrollheight-1000) { $("#fh-home").hide() } if (scrolltop + windowheight < scrollheight-1000) { $("#fh-home").show() } if ($(document).scrolltop()< 700){   $("#fh-home").css({ position: 'absolute', left: '-12%', }) } if ($(document).scrolltop()> 700){   $("#fh-home").css({ position: 'fixed', left: '13%', }) } if ($(document).scrolltop() >= $(document).height() - $(window).height()) { // alert("滚动条已经到达底部为" + $(document).scrolltop()); } }); }); //导航栏 var i; if( /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.useragent) ) { }else{ $(".main-menu .navigation li.dropdown").mouseover(function(){ i = $(this).index() $(this).children("ul").show() }) $('.main-menu .navigation li.dropdown').mouseout(function(){ $(".main-menu .navigation li").children("ul").hide() }) } //底部 $(".footer-icon span").mouseover(function(){ var i = $(this).index() $("#ewm").attr("src",'img/footer-ewm'+i+'.png') $(this).addclass("active").siblings().removeclass("active") }); $(".footer-icon span").mouseout(function(){ $(this).siblings().removeclass("active") }); }) function swiper00(i){ var swiper = new swiper('.swiper-container22', { slidesperview: i, spacebetween: 30, slidespergroup: i, loop: false, loopfillgroupwithblank: true, pagination: { el: '.swiper-pagination22', clickable: true, }, navigation: { nextel: '.swiper-button-next', prevel: '.swiper-button-prev', }, }); }