|
@@ -1,105 +1,44 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <map style="width: 100%; height: 240px;" scale="12" ></map>
|
|
|
+ <car-common :mytitle="title" ref="common" ></car-common>
|
|
|
+
|
|
|
+ <carmap ref="amap"></carmap>
|
|
|
+
|
|
|
<view class="map-info">
|
|
|
- <view class="map-text">
|
|
|
- <h4>六中 → 锣场</h4>
|
|
|
- <p>首班:06:05 末班:18:10</p>
|
|
|
+ <view class="map-text" v-if="stationList.length">
|
|
|
+ <h4>{{stationList[0].name}} → {{stationList[stationList.length-1].name}}</h4>
|
|
|
+ <p>首班:{{routeInfo.startTime}} 末班:{{routeInfo.endTime}}</p>
|
|
|
</view>
|
|
|
- <view class="map-btn">
|
|
|
+ <view class="map-btn" @click="reverse">
|
|
|
<u-icon name="swap" custom-prefix="custom-icon" color="#2979ff"></u-icon>
|
|
|
<span>换向</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="map-route">
|
|
|
- <view class="map-route-head">
|
|
|
+ <view class="map-route-head" v-if="false">
|
|
|
2站3公里
|
|
|
</view>
|
|
|
<view class="map-route-main">
|
|
|
- <view class="map-route-origin">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 1锣场
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item map-after">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 2东方大道
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item map-now">
|
|
|
- <view class="map-route-car">
|
|
|
- <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">
|
|
|
- 3小天鹅
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 4宿架转盘
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 5荆棉
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item map-geton">
|
|
|
- <view class="map-geton-mark">
|
|
|
- <img src="static/img/up.png" alt="">
|
|
|
+ <template v-for="item,i in stationList">
|
|
|
+ <view class="scroll-view-item"
|
|
|
+ :class="{'map-route-origin':i==0,'map-route-item':i!=0}"
|
|
|
+ @click="downBtn(item)">
|
|
|
+
|
|
|
+ <view class="map-route-circle"></view>
|
|
|
+ <view class="map-route-line"></view>
|
|
|
+ <view class="map-route-name">
|
|
|
+ {{item.name}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 6跃进村
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 7变电站
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 8跃进村
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="map-route-item">
|
|
|
- <view class="map-route-circle"></view>
|
|
|
- <view class="map-route-line"></view>
|
|
|
- <view class="map-route-name">
|
|
|
- 9变电站
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ </template>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- export default {
|
|
|
- data() {
|
|
|
- return {
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- methods: {
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
+ import api from './index.js'
|
|
|
+ export default api
|
|
|
</script>
|
|
|
<style scoped lang="scss">
|
|
|
.map-route{
|