Commit 6e714dbc authored by shilei's avatar shilei

图标

parent 88e18b9d
...@@ -38,7 +38,7 @@ module.exports = { ...@@ -38,7 +38,7 @@ module.exports = {
'no-unused-vars': 'off', 'no-unused-vars': 'off',
'no-else-return': 'off', 'no-else-return': 'off',
'@typescript-eslint/no-unused-vars': 'error', '@typescript-eslint/no-unused-vars': 'error',
'vue-scoped-css/enforce-style-type': ['error', { allows: ['plain'] }], 'vue-scoped-css/enforce-style-type': ['error', { allows: ['plain', 'scoped'] }],
'vue/block-order': [ 'vue/block-order': [
'error', 'error',
{ {
......
...@@ -32,6 +32,8 @@ declare module 'vue' { ...@@ -32,6 +32,8 @@ declare module 'vue' {
ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('element-plus/es')['ElSwitch'] ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTimePicker: typeof import('element-plus/es')['ElTimePicker'] ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
ListIndustryCategory: typeof import('./src/components/list/list-industryCategory.vue')['default']
ListLand: typeof import('./src/components/list/list-land.vue')['default']
ListPagination: typeof import('./src/components/list/list-pagination.vue')['default'] ListPagination: typeof import('./src/components/list/list-pagination.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink'] RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
......
public/favicon.ico

4.19 KB | W: | H:

public/favicon.ico

4.19 KB | W: | H:

public/favicon.ico
public/favicon.ico
public/favicon.ico
public/favicon.ico
  • 2-up
  • Swipe
  • Onion skin
<template> <template>
<div> <div>
<ElContainer class="min-h-screen"> <ElContainer class="min-h-screen">
<ElHeader> <CommonHeader :menu-list="menuList" :current-path="currentPath"></CommonHeader>
<CommonHeader :menu-list="menuList" :current-path="currentPath"></CommonHeader>
</ElHeader>
<ElMain> <ElMain>
<RouterView /> <RouterView />
</ElMain> </ElMain>
......
html,body {
font-family: -apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,Helvetica Neue,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;
}
<template> <template>
<div class="flex items-center"> <div class="flex items-center justify-between pt-[12px] pl-[40px] header-view">
<div>logo</div> <!-- <div>logo</div> -->
<div class="flex flex-1 justify-center"> <div class="flex flex-1 justify-start">
<ElMenu <ElMenu
class="!border-none" class="!border-none"
mode="horizontal" mode="horizontal"
...@@ -28,7 +28,13 @@ ...@@ -28,7 +28,13 @@
</template> </template>
</ElMenu> </ElMenu>
</div> </div>
<div>登录</div> <div class="flex items-center">
<span>登录/注册</span>
<div class="flex items-center">
<img src="@/assets/images/icon-phone_call.png" />
<span>400-900-1786</span>
</div>
</div>
</div> </div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
...@@ -51,3 +57,8 @@ const getParentName = (menu: HeaderMenuItem) => { ...@@ -51,3 +57,8 @@ const getParentName = (menu: HeaderMenuItem) => {
const handleMenuChange = () => {}; const handleMenuChange = () => {};
</script> </script>
<style scoped>
.header-view {
box-shadow: 0px 2px 8px 0px rgba(90, 0, 0, 0.1);
}
</style>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<div id="container"></div> <div id="container"></div>
<div id="panel"></div> <div id="panel"></div>
<div class="map-table"> <div class="map-table">
<div class="table-serch"> <div class="table-search">
<ul> <ul>
<li <li
search="highway" search="highway"
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</li> </li>
</ul> </ul>
</div> </div>
<div class="map-serch-info"> <div class="map-search-info">
<p <p
class="position-item" class="position-item"
v-for="item in infoList" v-for="item in infoList"
...@@ -70,14 +70,17 @@ ...@@ -70,14 +70,17 @@
import { onMounted, onUnmounted, ref } from 'vue'; import { onMounted, onUnmounted, ref } from 'vue';
import AMapLoader from '@amap/amap-jsapi-loader'; import AMapLoader from '@amap/amap-jsapi-loader';
let map1 = null; let map1: any = null;
window._AMapSecurityConfig = { interface Window {
_AMapSecurityConfig: { serviceHost?: string };
}
(window as any)._AMapSecurityConfig = {
serviceHost: 'http://test.api.liyeyun.com/_AMapService', serviceHost: 'http://test.api.liyeyun.com/_AMapService',
}; };
let placeSearch = null; let placeSearch: any = null;
let infoWindow = null; let infoWindow: any = null;
let markers = []; let markers: any = [];
let AMapRoot = null; let AMapRoot: any = null;
onMounted(() => { onMounted(() => {
AMapLoader.load({ AMapLoader.load({
key: '75ff1c8fdbf7f75d6b129998f1b813ba', // 申请好的Web端开发者Key,首次调用 load 时必填 key: '75ff1c8fdbf7f75d6b129998f1b813ba', // 申请好的Web端开发者Key,首次调用 load 时必填
...@@ -98,9 +101,8 @@ onMounted(() => { ...@@ -98,9 +101,8 @@ onMounted(() => {
label: { label: {
content: '园区位置', content: '园区位置',
direction: 'bottom', direction: 'bottom',
offset: new AMap.Pixel(0, 0) offset: new AMap.Pixel(0, 0),
} },
// offset: new AMap.Pixel(-13, -30), // offset: new AMap.Pixel(-13, -30),
// content: item.name // content: item.name
...@@ -121,21 +123,21 @@ onMounted(() => { ...@@ -121,21 +123,21 @@ onMounted(() => {
}); });
}); });
let infoList = ref([]); let infoList = ref<any[]>([]);
const handleSearch = (keyWords, radius, type) => { const handleSearch = (keyWords: String, radius: Number, type: String) => {
map1.remove(markers); map1.remove(markers);
placeSearch.setType(type); placeSearch.setType(type);
placeSearch.searchNearBy( placeSearch.searchNearBy(
keyWords, keyWords,
new AMap.LngLat(116.506911, 37.434738), new AMapRoot.LngLat(116.506911, 37.434738),
radius, radius,
(status, results) => { (status: String, results: any) => {
infoList.value = []; infoList.value = [];
console.log('searchNearBy', status, results); console.log('searchNearBy', status, results);
if (status === 'complete') { if (status === 'complete') {
infoList.value = results.poiList.pois; infoList.value = results.poiList.pois;
for (let item of results.poiList.pois) { for (let item of results.poiList.pois) {
const marker = new AMap.Marker({ const marker = new AMapRoot.Marker({
map: map1, map: map1,
position: [item.location.lng, item.location.lat], position: [item.location.lng, item.location.lat],
// offset: new AMap.Pixel(-13, -30), // offset: new AMap.Pixel(-13, -30),
...@@ -149,11 +151,11 @@ const handleSearch = (keyWords, radius, type) => { ...@@ -149,11 +151,11 @@ const handleSearch = (keyWords, radius, type) => {
info.push(`<p class='input-item'>${item.name}</p>`); info.push(`<p class='input-item'>${item.name}</p>`);
info.push(`<p class='input-item'>${item.distance}米</p></div>`); info.push(`<p class='input-item'>${item.distance}米</p></div>`);
infoWindow = new AMap.InfoWindow({ infoWindow = new AMapRoot.InfoWindow({
content: info.join(''), //使用默认信息窗体框样式,显示信息内容 content: info.join(''), //使用默认信息窗体框样式,显示信息内容
isCustom: true, isCustom: true,
autoMove: false, autoMove: false,
offset: new AMap.Pixel(0, -35), offset: new AMapRoot.Pixel(0, -35),
}); });
infoWindow.open(map1, [item.location.lng, item.location.lat]); infoWindow.open(map1, [item.location.lng, item.location.lat]);
}); });
...@@ -171,7 +173,7 @@ const handleSearch = (keyWords, radius, type) => { ...@@ -171,7 +173,7 @@ const handleSearch = (keyWords, radius, type) => {
); );
}; };
const showInfoWindow = (info) => { const showInfoWindow = (info: any) => {
let infoContent = []; let infoContent = [];
infoContent.push("<div class='input-card'>"); infoContent.push("<div class='input-card'>");
infoContent.push(`<p class='input-item'>${info.name}</p>`); infoContent.push(`<p class='input-item'>${info.name}</p>`);
...@@ -212,7 +214,7 @@ onUnmounted(() => { ...@@ -212,7 +214,7 @@ onUnmounted(() => {
right: 0px; right: 0px;
z-index: 99; z-index: 99;
} }
.table-serch { .table-search {
padding-bottom: 8px; padding-bottom: 8px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 1px 10px 0px rgba(31, 108, 221, 0.11); box-shadow: 0px 1px 10px 0px rgba(31, 108, 221, 0.11);
...@@ -239,7 +241,7 @@ onUnmounted(() => { ...@@ -239,7 +241,7 @@ onUnmounted(() => {
float: left; float: left;
margin-top: 8px; margin-top: 8px;
} }
.map-serch-info { .map-search-info {
width: 290px; width: 290px;
height: 158px; height: 158px;
padding: 20px; padding: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment