清理冗余注释

This commit is contained in:
WindowBird 2025-10-30 14:33:29 +08:00
parent 2a8b347ca0
commit 7f20d965c8
3 changed files with 2 additions and 72 deletions

View File

@ -24,7 +24,7 @@
</template>
<script setup>
import { ref, onMounted, onUnmounted, watch } from 'vue'
import { ref, onMounted, onUnmounted } from 'vue'
import { getAMapScriptUrl, validateKeys } from '~/config/amap'
//
@ -198,30 +198,6 @@ defineExpose({
}
})
// // props
// watch(() => props.center, (newCenter) => {
// if (map.value && newCenter) {
// console.log(':', newCenter)
// map.value.setCenter(newCenter)
// }
// }, { deep: true })
//
// watch(() => props.zoom, (newZoom) => {
// if (map.value && newZoom) {
// console.log(':', newZoom)
// map.value.setZoom(newZoom)
// }
// })
//
// watch(() => props.viewMode, (newViewMode) => {
// if (map.value && newViewMode) {
// console.log(':', newViewMode)
// //
// //
// console.warn('')
// }
// })
//
onMounted(() => {
initMap()

View File

@ -58,20 +58,16 @@ const contacts = [
<!-- variant="ghost"-->
<!-- />-->
<UButton
color="neutral"
icon="simple-icons-alibabadotcom"
target="_blank"
to="https://chuangtewulian.1688.com/page/index.html"
/>
<UButton
color="neutral"
icon="i-simple-icons-tiktok"
target="_blank"
to="https://www.douyin.com/user/MS4wLjABAAAAdPkGyADnJFLrZBwDM9U7faUJs-wmmyEU9L34SS0CKhs"
/>
</template>
</UFooter>

View File

@ -11,48 +11,7 @@ export const amapConfig = {
// 地图默认配置
defaultCenter: [39.9042, 116.4074], // 北京坐标
defaultZoom: 13,
// 地图样式
styles: {
normal: 'amap://styles/normal',
dark: 'amap://styles/dark',
light: 'amap://styles/light',
fresh: 'amap://styles/fresh',
grey: 'amap://styles/grey',
graffiti: 'amap://styles/graffiti',
macaron: 'amap://styles/macaron',
blue: 'amap://styles/blue',
darkblue: 'amap://styles/darkblue',
wine: 'amap://styles/wine'
},
// 服务网点坐标(示例数据)
servicePoints: [
{
id: 1,
name: '北京总部',
address: '北京市朝阳区xxx街道xxx号',
position: [116.4074, 39.9042],
phone: '010-12345678',
hours: '9:00-18:00'
},
{
id: 2,
name: '上海分公司',
address: '上海市浦东新区xxx路xxx号',
position: [121.4737, 31.2304],
phone: '021-87654321',
hours: '9:00-18:00'
},
{
id: 3,
name: '广州分公司',
address: '广州市天河区xxx大道xxx号',
position: [113.2644, 23.1291],
phone: '020-11223344',
hours: '9:00-18:00'
}
]
}
// 获取地图API URL
@ -69,7 +28,6 @@ export const validateKeys = () => {
return {
hasKey,
isValid: hasKey
}
}