|
@@ -13,7 +13,7 @@
|
|
|
<view class="station_item-content-left">
|
|
<view class="station_item-content-left">
|
|
|
<view class="station_item-content-left-label">
|
|
<view class="station_item-content-left-label">
|
|
|
<view class="font12 station_item-content-left-label-left">
|
|
<view class="font12 station_item-content-left-label-left">
|
|
|
- <text class="station_item-content-left-label-left_idle">{{ fmtDictName('WashStation.status',item.stationStatus) }}</text>
|
|
|
|
|
|
|
+ <text class="station_item-content-left-label-left_idle">{{ fmtDictName('WashStation.status', item.stationStatus) }}</text>
|
|
|
<text class="station_item-content-left-label-left_count">{{ item.idleParkingNum }}/{{ item.parkingNum }}</text>
|
|
<text class="station_item-content-left-label-left_count">{{ item.idleParkingNum }}/{{ item.parkingNum }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
<!-- <uv-tags size="small" class="station_item-content-left-label_tag" text="洗车机" plain shape="circle"></uv-tags>-->
|
|
<!-- <uv-tags size="small" class="station_item-content-left-label_tag" text="洗车机" plain shape="circle"></uv-tags>-->
|
|
@@ -25,12 +25,12 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="station_item-content-right">
|
|
<view class="station_item-content-right">
|
|
|
-<!-- <image
|
|
|
|
|
- style="width: 20px; height: 20px;color: #eeeeee;"
|
|
|
|
|
- src="/static/nav.png"
|
|
|
|
|
- />-->
|
|
|
|
|
|
|
+ <!-- <image
|
|
|
|
|
+ style="width: 20px; height: 20px;color: #eeeeee;"
|
|
|
|
|
+ src="/static/nav.png"
|
|
|
|
|
+ />-->
|
|
|
<uv-icon name="map" color="#19A497"></uv-icon>
|
|
<uv-icon name="map" color="#19A497"></uv-icon>
|
|
|
- <text class="font12" @click.stop="handleNavMap(item)">{{ item.distance }}km</text>
|
|
|
|
|
|
|
+ <text class="font12" @click.stop="handleNavMap(item)">{{ item.distance }}km</text>
|
|
|
<!-- <uv-tags text="1222km" type="warning" plain size="mini"></uv-tags>-->
|
|
<!-- <uv-tags text="1222km" type="warning" plain size="mini"></uv-tags>-->
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -52,8 +52,7 @@ const props = defineProps({
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-const handleNavMap = (station:any) => {
|
|
|
|
|
|
|
+const handleNavMap = (station: any) => {
|
|
|
let location = JSON.parse(station.location)
|
|
let location = JSON.parse(station.location)
|
|
|
uni.openLocation({
|
|
uni.openLocation({
|
|
|
latitude: location.stationLat,
|
|
latitude: location.stationLat,
|
|
@@ -65,9 +64,16 @@ const handleNavMap = (station:any) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const handleNavStation = (station: any) => {
|
|
const handleNavStation = (station: any) => {
|
|
|
|
|
+ let currentPages = getCurrentPages();
|
|
|
|
|
+ let currentPageRoute = currentPages[currentPages.length - 1].route;
|
|
|
|
|
+ console.log("route", currentPageRoute)
|
|
|
|
|
+ if (currentPageRoute?.includes('pages-wash/station/index')) {
|
|
|
|
|
+ return;
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
getApp<any>().globalData.last.station = station
|
|
getApp<any>().globalData.last.station = station
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
- url: '/pages-wash/station/index?id='+station.id
|
|
|
|
|
|
|
+ url: '/pages-wash/station/index?id=' + station.id
|
|
|
})
|
|
})
|
|
|
console.log(station)
|
|
console.log(station)
|
|
|
}
|
|
}
|