You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
226 lines
7.2 KiB
226 lines
7.2 KiB
2 years ago
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||
|
<link rel="icon" href="./favicon.ico">
|
||
|
<title id="sys_title">牛栏山陈酿52度白酒物流</title>
|
||
|
<script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=Di3uzrPoRAPKso8IAbBG138RUwBTIWbR"></script>
|
||
|
<!-- <script src="./fwm/jquery.min.js"></script> -->
|
||
|
</head>
|
||
|
<style>
|
||
|
html,body,h1,h2,h3,h4,h5,h6,div,dl,dt,dd,ul,ol,li,p,blockquote,pre,hr,figure,table,caption,th,td,form,fieldset,legend,input,button,textarea,menu {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
body {
|
||
|
height: 100%;
|
||
|
-moz-osx-font-smoothing: grayscale;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
text-rendering: optimizeLegibility;
|
||
|
font-family: Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
|
||
|
}
|
||
|
|
||
|
label {
|
||
|
font-weight: 700;
|
||
|
}
|
||
|
|
||
|
html {
|
||
|
height: 100%;
|
||
|
box-sizing: border-box;
|
||
|
}
|
||
|
*,
|
||
|
*:before,
|
||
|
*:after {
|
||
|
box-sizing: inherit;
|
||
|
}
|
||
|
.flex-box {
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
/* Safari */
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.flex-box-column {
|
||
|
display: -webkit-box;
|
||
|
display: -webkit-flex;
|
||
|
/* Safari */
|
||
|
display: flex;
|
||
|
justify-content: center;
|
||
|
align-items: center;
|
||
|
flex-direction: column;
|
||
|
}
|
||
|
.search-container {
|
||
|
position: relative;
|
||
|
width: 100vw;
|
||
|
min-height: 100%;
|
||
|
background-image: url('./fwm/img/search-bg.png');
|
||
|
background-repeat: no-repeat;
|
||
|
background-size: 100% 100%;
|
||
|
}
|
||
|
.content-block {
|
||
|
position: relative;
|
||
|
margin-top: 12vh;
|
||
|
margin-bottom: 10px;
|
||
|
margin-right: 5px;
|
||
|
width: 300px;
|
||
|
color: #fff;
|
||
|
}
|
||
|
.img-block {
|
||
|
position: relative;
|
||
|
margin-top: 12vh;
|
||
|
margin-bottom: 10px;
|
||
|
/* padding: 5px; */
|
||
|
width: calc(100vw - 315px);
|
||
|
max-width: 84px;
|
||
|
}
|
||
|
.img-block img {
|
||
|
width:100%;
|
||
|
height: auto;
|
||
|
}
|
||
|
.content-block .title {
|
||
|
font-size: 18px;
|
||
|
line-height: 30px;
|
||
|
}
|
||
|
.content-box {
|
||
|
position: relative;
|
||
|
width: 100%;
|
||
|
min-height: 400px;
|
||
|
background: #fffc;
|
||
|
border-radius: 20px;
|
||
|
padding: 15px;
|
||
|
word-wrap:break-word;
|
||
|
/* font-weight: 550; */
|
||
|
}
|
||
|
.content-box-block {
|
||
|
position: relative;
|
||
|
}
|
||
|
.content-box .content-text {
|
||
|
font-size: 14px;
|
||
|
line-height: 30px;
|
||
|
color: #000000;
|
||
|
}
|
||
|
.content-box .num-text {
|
||
|
font-size: 12px;
|
||
|
text-align: center;
|
||
|
line-height: 30px;
|
||
|
color: #C02932;
|
||
|
}
|
||
|
.text-indent-1 {
|
||
|
text-indent:1em
|
||
|
}
|
||
|
|
||
|
.nla-public {
|
||
|
position: absolute;
|
||
|
right: 15px;
|
||
|
width: 40px;
|
||
|
height: 40px;
|
||
|
top: 10px;
|
||
|
|
||
|
}
|
||
|
#allmap {
|
||
|
position: relative;
|
||
|
width: 100%;
|
||
|
height: 250px;
|
||
|
}
|
||
|
</style>
|
||
|
<body>
|
||
|
<div class="search-container flex-box">
|
||
|
<div class="content-block">
|
||
|
|
||
|
<p class="title text-indent-1">物流信息</p>
|
||
|
<div class="content-box">
|
||
|
<p class="content-text">产品名称:牛栏山陈酿52度白酒</p>
|
||
|
<p class="content-text">物流公司:北京顺鑫物流有限公司</p>
|
||
|
<p class="content-text">订单信息:NLSJXSSY202201120127</p>
|
||
|
<p class="content-text">订单详细:200(箱)X 12</p>
|
||
|
<p class="content-text">运输车牌:京ARX698</p>
|
||
|
<p class="content-text">司机姓名:王大力</p>
|
||
|
<p class="content-text">司机电话:18622428799</p>
|
||
|
<p class="content-text">配送日期:2022年2月23日</p>
|
||
|
<br>
|
||
|
<p class="content-text">车辆实时位置</p>
|
||
|
<div id="allmap"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="img-block">
|
||
|
<img src="./fwm/img/物流.png" alt="">
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
|
||
|
<script>
|
||
|
window.onload=function(){
|
||
|
var map = new BMap.Map("allmap");
|
||
|
map.centerAndZoom(new BMap.Point(116.386446,39.939281), 13);
|
||
|
map.enableScrollWheelZoom(true)
|
||
|
// map.enableContinuousZoom()
|
||
|
// map.enableInertialDragging()
|
||
|
var sy = new BMap.Symbol(BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW, {
|
||
|
scale: 0.5,//图标缩放大小
|
||
|
strokeColor:'#fff',//设置矢量图标的线填充颜色
|
||
|
strokeWeight: 2,//设置线宽
|
||
|
});
|
||
|
|
||
|
var icons = new BMap.IconSequence(sy, '10', '30');//设置为true,可以对轨迹进行编辑
|
||
|
var pois = [
|
||
|
new BMap.Point(116.350658,39.938285),
|
||
|
new BMap.Point(116.386446,39.939281),
|
||
|
new BMap.Point(116.389034,39.913828),
|
||
|
new BMap.Point(116.442501,39.914603)
|
||
|
]
|
||
|
var polyLine = new BMap.Polyline(pois,{
|
||
|
enableEditing:false,
|
||
|
enableClicking:true,
|
||
|
icons:[icons],
|
||
|
strokeWeight:"8",
|
||
|
strokeOpacity:0.8,
|
||
|
strokeColor:"#18a45b"
|
||
|
})
|
||
|
map.addOverlay(polyLine)
|
||
|
//创建汽车标注
|
||
|
var point = new BMap.Point(116.386446,39.939281);
|
||
|
var carIcon = new BMap.Icon('./fwm/img/car_icon.png',new BMap.Size(35,25))
|
||
|
var markerCar = new BMap.Marker(point,{
|
||
|
icon:carIcon
|
||
|
});
|
||
|
map.addOverlay(markerCar);
|
||
|
//创建起点标注
|
||
|
var startPoint = new BMap.Point(116.350658,39.938285);
|
||
|
var startIcon = new BMap.Icon('./fwm/img/start.png',new BMap.Size(21,28),{
|
||
|
anchor:new BMap.Size(10,28)
|
||
|
})
|
||
|
var markerStart = new BMap.Marker(startPoint,{
|
||
|
icon:startIcon,
|
||
|
top:-5
|
||
|
});
|
||
|
map.addOverlay(markerStart);
|
||
|
//创建终点标注
|
||
|
var endPoint = new BMap.Point(116.442501,39.914603);
|
||
|
var endIcon = new BMap.Icon('./fwm/img/end.png',new BMap.Size(21,28),{
|
||
|
anchor:new BMap.Size(10,28)
|
||
|
})
|
||
|
var markerEnd = new BMap.Marker(endPoint,{
|
||
|
icon:endIcon
|
||
|
});
|
||
|
map.addOverlay(markerEnd);
|
||
|
var opts = {
|
||
|
width : 150, // 信息窗口宽度
|
||
|
height: 80, // 信息窗口高度
|
||
|
title : "运输车牌:京ARX698" , // 信息窗口标题
|
||
|
enableMessage:false,//设置允许信息窗发送短息
|
||
|
message:""
|
||
|
}
|
||
|
var infoWindow = new BMap.InfoWindow(`司机姓名:王大力<br>司机电话:18622428799`, opts); // 创建信息窗口对象
|
||
|
markerCar.addEventListener("click", function(){
|
||
|
map.openInfoWindow(infoWindow,point); //开启信息窗口
|
||
|
});
|
||
|
map.addEventListener('click',function(e){
|
||
|
var newOne=new BMap.Point(e.point.lng+","+e.point.lat)
|
||
|
})
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
</html>
|