From 49fa0d82a40345342966e810b44429aec0480ef3 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 01 七月 2025 17:00:18 +0800 Subject: [PATCH] fix:修改.gitgnore文件,移除打包文件 --- pages/station/index.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pages/station/index.vue b/pages/station/index.vue index 0e93cd8..9daa3c6 100644 --- a/pages/station/index.vue +++ b/pages/station/index.vue @@ -12,14 +12,15 @@ <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> @@ -33,14 +34,15 @@ <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> @@ -56,6 +58,9 @@ <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() -- Gitblit v1.9.3