//手机端跳转 if (navigator.userAgent.indexOf("iPhone") > 0 || navigator.userAgent.indexOf("Android") > 0 || navigator.userAgent.indexOf("iPod") > 0) { var patt1 = new RegExp("[0-9]*_[0-9]*"); var url = patt1.exec(location.href); if (url != "") { self.location = "http://breadvfx.com"; } }

联系我们

地址

湖南省长沙市万家丽北路92号山东商会大厦10楼

邮编

410000

电话

0731-84011129

传真

0731-84011129

留言

if (!window.jQuery) { document.write(unescape("%3Cscript src='/public/static/common/js/jquery.min.js' type='text/javascript'%3E%3C/script%3E")); document.write(unescape("%3Cscript type='text/javascript'%3E try{jQuery.noConflict();}catch(e){} %3C/script%3E")); } if (window.jQuery) { (function($){ default_switch(); //简体繁体互换 function default_switch() { var home_lang = getCookie('home_lang'); if (home_lang == '') { home_lang = 'cn'; } if ($.inArray(home_lang, ['zh','cn'])) { var obj = $('#jquerys2t_1573822909'); var isSimplified = getCookie('jquerys2t_1573822909'); if ('cn' == isSimplified) { $('body').t2s(); $(obj).text('繁體'); } else if ('zh' == isSimplified) { $('body').s2t(); $(obj).text('简体'); } } } //简体繁体互换 $('#jquerys2t_1573822909').click(function(){ var obj = this; var isSimplified = getCookie('jquerys2t_1573822909'); if ('' == isSimplified || 'cn' == isSimplified) { $('body').s2t(); // 简体转繁体 setCookie('jquerys2t_1573822909', 'zh'); $(obj).text('简体'); } else { $('body').t2s(); // 繁体转简体 setCookie('jquerys2t_1573822909', 'cn'); $(obj).text('繁體'); } }); })(jQuery); } // var scrolltop = document.getElementById('infolx').offsetTop; // console.log(scrolltop) // $('html,body').animate({scrollTop: document.getElementById('infolx').offsetTop + 'px'},5000) // $('body,html').scrollTop(scrolltop+'px') var infoWindow; var map = new AMap.Map("container", { resizeEnable: true, center: [113.053382,28.260396], zoom: 20, // 缩放级别 resizeEnable: true }); AMap.plugin([ 'AMap.ToolBar', ], function(){ // 在图面添加工具条控件,工具条控件集成了缩放、平移、定位等功能按钮在内的组合控件 map.addControl(new AMap.ToolBar({ // 简易缩放模式,默认为 false liteStyle: true })); }); // addMarker(); map.on("complete", function(){ console.log('地图加载完成') }); // var infoWindow = new AMap.InfoWindow({ // content:""//信息窗体的内容 // }); //实例化信息窗体 var title = '湖南网路信息技术有限责任公司', content = []; content.push(""); var infoWindow = new AMap.InfoWindow({ isCustom: true, //使用自定义窗体 content: createInfoWindow(title, content.join("
")), offset: new AMap.Pixel(16, -45) }); //构建自定义信息窗体 function createInfoWindow(title, content) { var info = document.createElement("div"); info.className = "custom-info input-card content-window-card"; // 定义中部内容 var middle = document.createElement("div"); middle.className = "info-middle"; middle.style.backgroundColor = 'white'; middle.innerHTML = content; info.appendChild(middle); // 定义底部内容 var bottom = document.createElement("div"); bottom.className = "info-bottom"; bottom.style.position = 'relative'; bottom.style.top = '0px'; bottom.style.margin = '0 auto'; var sharp = document.createElement("img"); sharp.src = "https://webapi.amap.com/images/sharp.png"; bottom.appendChild(sharp); info.appendChild(bottom); return info; } //添加marker标记 // function addMarker() { // map.clearMap(); var marker = new AMap.Marker({ map: map, position: [113.053382,28.260396] }); marker.emit('click', {target: marker}); //鼠标点击marker弹出自定义的信息窗体 // AMap.event.addListener(marker, 'click', function () { infoWindow.open(map, marker.getPosition()); // }); // } layui.use('form', function(){ var form = layui.form; //监听提交 form.on('submit(formDemo)', function(data){ layer.msg(JSON.stringify(data.field)); return false; }); });