| | |
| | | <block v-for="(item,index) in sendWaterSiteList" :key='index'> |
| | | <view class="item"> |
| | | <view class="item-img"> |
| | | <image src="../../static/logo.png" alt=''></image> |
| | | <image v-if="item.image" :src="baseUrl + '/upload' + item.image" alt='' mode="aspectFit"></image> |
| | | <image v-else src="../../static/images/station/facilityImg.svg" alt='' mode="aspectFit"></image> |
| | | </view> |
| | | <view class="item-info"> |
| | | <view class="info-name">{{item.name}}</view> |
| | | <view class="info-addr" @click="openMap(item.latitude,item.longitude)"> |
| | | <text class="addr-text">地址:{{item.address}}</text> |
| | | <view> |
| | | <image src="../../static/images/index/icon22.png" alt=''></image> |
| | | <image src="../../static/images/index/icon22.svg" alt=''></image> |
| | | <text>{{item.distanceValue}}km</text> |
| | | </view> |
| | | </view> |
| | |
| | | <block v-for="(item,index) in facilitySiteList" :key='index'> |
| | | <view class="item"> |
| | | <view class="item-img"> |
| | | <image src="../../static/logo.png" alt=''></image> |
| | | <image v-if="item.image" :src="baseUrl + '/upload' + item.image" alt='' mode="aspectFit"></image> |
| | | <image v-else src="../../static/images/station/facilityImg.svg" alt='' mode="aspectFit"></image> |
| | | </view> |
| | | <view class="item-info"> |
| | | <view class="info-name">{{item.name}}</view> |
| | | <view class="info-addr"> |
| | | <text class="addr-text">地址:{{item.address}}</text> |
| | | <view @click="openMap(item.latitude,item.longitude)"> |
| | | <image src="../../static/images/index/icon22.png" alt=''></image> |
| | | <image src="../../static/images/index/icon22.svg" alt=''></image> |
| | | <text>{{item.distanceValue}}km</text> |
| | | </view> |
| | | </view> |
| | |
| | | <script setup> |
| | | import { onMounted, ref } from 'vue' |
| | | import { siteApi } from '../../api/index.js' |
| | | import { BASE_URL } from '../../config/baseUrl.js'; |
| | | |
| | | const baseUrl = ref(BASE_URL) |
| | | const isNav = ref(2)//1:送水点;2:设备点 |
| | | const isActive = ref({borderBottom:`3px solid #226AC9`}) |
| | | const userLocation = ref() |