define(["domReady","alertinfo","async!BMap"],function(n,t){var e,a,o,i,r,c,t=t.initModule;return o=function(){var n=new BMap.Map("dituContent"),t=new BMap.Point(126.699645,45.748256);n.centerAndZoom(t,17),window.map=n},i=function(){map.enableDragging(),map.enableKeyboard()},r=function(){var n=new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});map.addControl(n);var t=new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});map.addControl(t);var e=new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});map.addControl(e)},a=function(){o(),i()},c=function(){require(["idcode"],function(n){$.idcode.setCode(),$(".submit").click(function(){var n=$.idcode.validateCode(),e=$("#name").val(),a=$("#tel").val(),o=$("#email").val(),i=$("#title").val(),r=$("#content").val(),c=$(".msg-list").attr("data-url");if(!e)return t("姓名不能为空！"),!1;if(!a)return t("联系电话不能为空！"),!1;if(!o)return t("电子邮箱不能为空！"),!1;if(!i)return t("留言标题不能为空！"),!1;if(!r)return t("留言内容不能为空！"),!1;if(!n)return t("验证码错误！"),!1;var d={name:e,tel:a,email:o,title:i,content:r};$.post(c,d,function(n){t("118"==n.err_code?n.err_info:n.err_info)},"json")})})},e=function(t){n(function(){t(8)})},{initModule:e,contact_index:a,contact_msg:c}});