mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-30 10:59:47 +08:00
编辑器地图组件采用https引入
This commit is contained in:
parent
9828615776
commit
9000cd1b8b
@ -4,7 +4,7 @@
|
|||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title></title>
|
<title></title>
|
||||||
<script type="text/javascript" src="../internal.js"></script>
|
<script type="text/javascript" src="../internal.js"></script>
|
||||||
<script type="text/javascript" src="https://api.map.baidu.com/api?v=1.1&services=true"></script>
|
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&services=true"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.content{width:530px; height: 350px;margin: 10px auto;}
|
.content{width:530px; height: 350px;margin: 10px auto;}
|
||||||
.content table{width: 100%}
|
.content table{width: 100%}
|
||||||
@ -156,7 +156,7 @@
|
|||||||
'&markerStyles=' + 'l,A'].join('');
|
'&markerStyles=' + 'l,A'].join('');
|
||||||
editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + ' frameborder="0" width="' + (mapWidth+4) + '" height="' + (mapHeight+4) + '"></iframe>');
|
editor.execCommand('inserthtml', '<iframe class="ueditor_baidumap" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + ' frameborder="0" width="' + (mapWidth+4) + '" height="' + (mapHeight+4) + '"></iframe>');
|
||||||
} else {
|
} else {
|
||||||
var url = "http://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat +
|
var url = "https://api.map.baidu.com/staticimage?center=" + center.lng + ',' + center.lat +
|
||||||
"&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat;
|
"&zoom=" + zoom + "&width=" + size.width + '&height=' + size.height + "&markers=" + point.lng + ',' + point.lat;
|
||||||
editor.execCommand('inserthtml', '<img width="'+ size.width +'"height="'+ size.height +'" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + '/>');
|
editor.execCommand('inserthtml', '<img width="'+ size.width +'"height="'+ size.height +'" src="' + url + '"' + (styleStr ? ' style="' + styleStr + '"' :'') + '/>');
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript" src="https://api.map.baidu.com/api?key=&v=1.1&services=true"></script>
|
<script type="text/javascript" src="https://api.map.baidu.com/api?key=&v=2.0&services=true"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body onload="initMap();">
|
<body onload="initMap();">
|
||||||
|
Loading…
Reference in New Issue
Block a user