|
@@ -1,7 +1,15 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <car-common :mytitle="title" ref="common" ></car-common>
|
|
|
-
|
|
|
+ <car-common ref="common" ></car-common>
|
|
|
+ <u-navbar :title="title" >
|
|
|
+ <view class="slot-wrap"></view>
|
|
|
+ <view class="navbar-right" @click="mapopenBtn" >
|
|
|
+ <u-icon name="plus-circle" v-if="!mapopen" color="#999" size="28"></u-icon>
|
|
|
+ <span v-if="!mapopen">放大地图</span>
|
|
|
+ <u-icon name="minus-circle" v-if="mapopen" color="#999" size="28"></u-icon>
|
|
|
+ <span v-if="mapopen">缩小地图</span>
|
|
|
+ </view>
|
|
|
+ </u-navbar>
|
|
|
<carmap ref="amap"></carmap>
|
|
|
|
|
|
<view class="map-info">
|
|
@@ -21,9 +29,12 @@
|
|
|
<view class="map-route-main">
|
|
|
<template v-for="item,i in stationList">
|
|
|
<view class="scroll-view-item"
|
|
|
- :class="{'map-route-origin':i==0,'map-route-item':i!=0}"
|
|
|
+ :class="{'map-route-origin map-geton ':i==0,'map-route-item':i!=0}"
|
|
|
@click="downBtn(item)">
|
|
|
|
|
|
+ <view class="map-route-car" v-if="showCar(item)">
|
|
|
+ <img src="static/img/car.png" alt="">
|
|
|
+ </view>
|
|
|
<view class="map-route-circle"></view>
|
|
|
<view class="map-route-line"></view>
|
|
|
<view class="map-route-name">
|
|
@@ -41,21 +52,23 @@
|
|
|
export default api
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
- .map-route{
|
|
|
+ .map-route {
|
|
|
border-top: 10px solid #f7f7f7;
|
|
|
background-color: #fff;
|
|
|
-
|
|
|
- .map-route-head{
|
|
|
- font-size: 18px;
|
|
|
- color:#007AFF;
|
|
|
+ padding-bottom: 60px;
|
|
|
+
|
|
|
+ .map-route-head {
|
|
|
+ font-size: 16px;
|
|
|
+ color: #007AFF;
|
|
|
text-align: center;
|
|
|
line-height: 40px;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
- .map-route-main{
|
|
|
+
|
|
|
+ .map-route-main {
|
|
|
padding: 10px;
|
|
|
position: relative;
|
|
|
- overflow-x: scroll!important;
|
|
|
+ overflow-x: scroll !important;
|
|
|
display: -webkit-box;
|
|
|
}
|
|
|
}
|
|
@@ -84,110 +97,238 @@
|
|
|
margin-left: 6rpx;
|
|
|
}
|
|
|
}
|
|
|
- .map-route-origin{
|
|
|
- position: relative;
|
|
|
- height: 200px;
|
|
|
- width:15px;
|
|
|
- .map-route-circle{
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- top:30px;
|
|
|
- height: 15px;
|
|
|
- width: 15px;
|
|
|
- border-radius: 50%;
|
|
|
- background-color: #999;
|
|
|
- border: 3px solid #fff;
|
|
|
- box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
|
|
|
- z-index: 99;
|
|
|
- }
|
|
|
- .map-route-name{
|
|
|
- position: absolute;
|
|
|
- top: 50px;
|
|
|
- width: 16px;
|
|
|
- line-height: 16px;
|
|
|
- z-index: 999;
|
|
|
- left: 3px;
|
|
|
- }
|
|
|
- }
|
|
|
- .map-route-item{
|
|
|
- position: relative;
|
|
|
- height: 200px;
|
|
|
- width: 60px;
|
|
|
- .map-route-circle{
|
|
|
- position: absolute;
|
|
|
- right: -2px;
|
|
|
- top:30px;
|
|
|
- height: 15px;
|
|
|
+ .map-route-origin {
|
|
|
+ position: relative;
|
|
|
+ height: 200px;
|
|
|
width: 15px;
|
|
|
- border-radius: 50%;
|
|
|
- background-color: #fff;
|
|
|
- border: 3px solid #1677ff;
|
|
|
- z-index: 99;
|
|
|
- }
|
|
|
- .map-route-line{
|
|
|
- height:6px;
|
|
|
- background-color: #1677ff;
|
|
|
- width:55px;
|
|
|
- position: absolute;
|
|
|
- left: 0px;
|
|
|
- top:35px;
|
|
|
- z-index: 9;
|
|
|
+ .map-route-circle {
|
|
|
+ position: absolute;
|
|
|
+ left: 0;
|
|
|
+ top: 30px;
|
|
|
+ height: 15px;
|
|
|
+ width: 15px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background-color: #999;
|
|
|
+ border: 3px solid #fff;
|
|
|
+ box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
|
|
|
+ z-index: 99;
|
|
|
+ }
|
|
|
+ .map-route-name {
|
|
|
+ position: absolute;
|
|
|
+ top: 50px;
|
|
|
+ width: 16px;
|
|
|
+ line-height: 16px;
|
|
|
+ z-index: 999;
|
|
|
+ left: 3px;
|
|
|
+ }
|
|
|
+ &.map-geton{
|
|
|
+ .map-route-circle {
|
|
|
+ width: 24px;
|
|
|
+ background-color: #fff;
|
|
|
+ height: 24px;
|
|
|
+ border: 3px solid #25ad3b;
|
|
|
+ color:#25ad3b;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 18px;
|
|
|
+ font-size:10px;
|
|
|
+ top:25px;
|
|
|
+ left: -3px;
|
|
|
+ }
|
|
|
+ .map-route-car {
|
|
|
+ height: 30px;
|
|
|
+ width: 30px;
|
|
|
+ position: absolute;
|
|
|
+ right: -10px;
|
|
|
+ top: 2px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- .map-route-name{
|
|
|
- position: absolute;
|
|
|
- top: 50px;
|
|
|
- width: 16px;
|
|
|
- line-height: 16px;
|
|
|
- z-index: 999;
|
|
|
- right: -3px;
|
|
|
- text-align: center;
|
|
|
+
|
|
|
+ .map-route-item {
|
|
|
+ position: relative;
|
|
|
+ height: 200px;
|
|
|
+ width: 60px;
|
|
|
+ .map-route-car {
|
|
|
+ height: 30px;
|
|
|
+ width: 30px;
|
|
|
+ position: absolute;
|
|
|
+ right: -10px;
|
|
|
+ top: 2px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .map-route-circle {
|
|
|
+ position: absolute;
|
|
|
+ right: -2px;
|
|
|
+ top: 30px;
|
|
|
+ height: 15px;
|
|
|
+ width: 15px;
|
|
|
+ border-radius: 50%;
|
|
|
+ background-color: #fff;
|
|
|
+ border: 3px solid #1677ff;
|
|
|
+ z-index: 99;
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-line {
|
|
|
+ height: 6px;
|
|
|
+ background-color: #1677ff;
|
|
|
+ width: 55px;
|
|
|
+ position: absolute;
|
|
|
+ left: 0px;
|
|
|
+ top: 35px;
|
|
|
+ z-index: 9;
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-name {
|
|
|
+ position: absolute;
|
|
|
+ top: 50px;
|
|
|
+ width: 16px;
|
|
|
+ line-height: 16px;
|
|
|
+ z-index: 999;
|
|
|
+ right: -3px;
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- .map-route-item.map-now{
|
|
|
- .map-route-car{
|
|
|
- height:30px;
|
|
|
- width: 30px;
|
|
|
- position: absolute;
|
|
|
- left: 10px;
|
|
|
- top: 5px;
|
|
|
- img{
|
|
|
- height: 100%;
|
|
|
- width: 100%;
|
|
|
+
|
|
|
+ .map-route-item.map-now {
|
|
|
+ .map-route-car {
|
|
|
+ height: 30px;
|
|
|
+ width: 30px;
|
|
|
+ position: absolute;
|
|
|
+ left: 10px;
|
|
|
+ top: 2px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
- .map-route-circle{
|
|
|
- border: 3px solid #ff6200;
|
|
|
+ .map-route-item.map-color{
|
|
|
+ .map-route-circle {
|
|
|
+ border: 3px solid #ff6200;
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-line {
|
|
|
+ background-color: #ff6200;
|
|
|
+ }
|
|
|
}
|
|
|
- .map-route-line{
|
|
|
- background-color: #ff6200;
|
|
|
+
|
|
|
+ .map-route-item.map-after {
|
|
|
+ .map-route-circle {
|
|
|
+ border: 3px solid #999;
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-line {
|
|
|
+ background-color: #999;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- .map-route-item.map-after{
|
|
|
- .map-route-circle{
|
|
|
- border: 3px solid #999;
|
|
|
+
|
|
|
+ .map-route-item.map-geton {
|
|
|
+ .map-geton-mark {
|
|
|
+ width:20px;
|
|
|
+ height: 20px;
|
|
|
+ right: 0;
|
|
|
+ position: absolute;
|
|
|
+ right: -4px;
|
|
|
+ top: 5px;
|
|
|
+ img {
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-circle {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ border: 3px solid #25ad3b;
|
|
|
+ color:#25ad3b;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 18px;
|
|
|
+ font-size:10px;
|
|
|
+ top:25px;
|
|
|
+ right: -8px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-name {
|
|
|
+ color: #25ad3b
|
|
|
+ }
|
|
|
}
|
|
|
- .map-route-line{
|
|
|
- background-color: #999;
|
|
|
+ .map-route-item.map-geton1 {
|
|
|
+ .map-geton-mark {
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
+ right: 0;
|
|
|
+ position: absolute;
|
|
|
+ right: -4px;
|
|
|
+ top: 5px;
|
|
|
+
|
|
|
+ img {
|
|
|
+ height: 100%;
|
|
|
+ width: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-circle {
|
|
|
+ border: 3px solid #25ad3b;
|
|
|
+ }
|
|
|
+
|
|
|
+ .map-route-name {
|
|
|
+ color: #25ad3b
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- .map-route-item.map-geton{
|
|
|
- .map-geton-mark{
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
+ .add-foot {
|
|
|
+ position: fixed;
|
|
|
+ background-color: #fff;
|
|
|
+ border-top: 1px solid #eee;
|
|
|
+ z-index: 999;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
right: 0;
|
|
|
- position: absolute;
|
|
|
- right: -4px;
|
|
|
- top: 5px;
|
|
|
- img{
|
|
|
- height: 100%;
|
|
|
- width: 100%;
|
|
|
+ height: 90rpx;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .add-foot-price {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ padding-left: 20rpx;
|
|
|
+ font-size: 32rpx;
|
|
|
+
|
|
|
+ span {
|
|
|
+ color: #1677ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .add-foot-btn {
|
|
|
+ width: 240rpx;
|
|
|
+ background-color: #1677ff;
|
|
|
+ color: #fff;
|
|
|
+ font-size: 32rpx;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 90rpx;
|
|
|
}
|
|
|
}
|
|
|
- .map-route-circle{
|
|
|
- border: 3px solid #25ad3b;
|
|
|
- }
|
|
|
- .map-route-name{
|
|
|
- color:#25ad3b
|
|
|
- }
|
|
|
- }
|
|
|
+ .navbar-right {
|
|
|
+ display: flex;
|
|
|
+ margin-right: 20rpx;
|
|
|
+ span{
|
|
|
+ color:rgb(96, 98, 102);
|
|
|
+ margin-left: 3px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .slot-wrap {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ flex: 1;
|
|
|
+ }
|
|
|
</style>
|