var site_path='/',pre_fix='2023scflyy_'; function get_province(){var province=$("#province").val();var id=$("#province").find("option:selected").data('id');$.post(site_path+"form/?getregion",{'pid':id},function(result){$("#city").empty().append('');$("#district").empty();$.each(result,function(i,data){$("#city").append("");});},'json');} function get_city(){var zip=$("#city").find("option:selected").data('zip');var tel=$("#city").find("option:selected").data('tel');var id=$("#city").find("option:selected").data('id');$("#zipcode").val(zip);$("#telcode").val(tel);$.post(site_path+"form/?getregion",{'pid':id},function(result){$("#district").empty().append('');$.each(result,function(i,data){$("#district").append("");});},'json');} function set_face(face){$.post(site_path+"form/?editface",{'face':face,'type':'json'},function(result){layer.alert(result.return_msg,function(index){location.href=result.return_url})},'json');} function set_code(){var zip=$("#district").find("option:selected").data('zip');var tel=$("#district").find("option:selected").data('tel');$("#zipcode").val(zip);$("#telcode").val(tel);} function writeclear(o){if(o.val().length>0){o.parent().addclass('write');}else{o.parent().removeclass('write');};btncheck(o.parents('form'));} function btncheck(form){var btn=true;form.find('input.inp').each(function(){if($(this).hasclass('no-follow')){return;};if($(this).val().length==0){btn=false;}});if(btn){form.find('.btn').removeattr("disabled").parent().addclass('ok');}else{form.find('.btn').attr("disabled",true).parent().removeclass('ok');}} function set_cookie(_name,val,expires){var d=new date();d.settime(d.gettime() + expires*1000);document.cookie=pre_fix+_name+"="+val+";path=/;expires="+d.togmtstring();} function get_cookie(_name){var cookie=document.cookie;var arr=cookie.split("; ");for(var i=0;i