From 39cbd32dade95af479393ecc132bc58a7b455d4b Mon Sep 17 00:00:00 2001 From: Zerroi Date: Sat, 13 Apr 2024 13:54:14 +0800 Subject: [PATCH] ElasticSearch_Hotel --- .idea/.gitignore | 8 + .idea/compiler.xml | 19 + .idea/dataSources.xml | 19 + .idea/encodings.xml | 7 + .idea/jarRepositories.xml | 20 + .idea/jsLibraryMappings.xml | 6 + .idea/misc.xml | 12 + .idea/vcs.xml | 6 + pom.xml | 85 + .../cn/itcast/hotel/HotelDemoApplication.java | 19 + .../hotel/constants/HotelIndexConstants.java | 50 + .../cn/itcast/hotel/mapper/HotelMapper.java | 7 + src/main/java/cn/itcast/hotel/pojo/Hotel.java | 24 + .../java/cn/itcast/hotel/pojo/HotelDoc.java | 34 + .../itcast/hotel/service/IHotelService.java | 7 + .../hotel/service/impl/HotelService.java | 11 + src/main/resources/application.yaml | 17 + src/main/resources/logback.xml | 14 + src/main/resources/static/css/banner.css | 96 + src/main/resources/static/css/index.css | 372 + src/main/resources/static/img/ad.png | Bin 0 -> 1634 bytes src/main/resources/static/img/ad2.png | Bin 0 -> 1349 bytes src/main/resources/static/img/heima.png | Bin 0 -> 7381 bytes src/main/resources/static/index.html | 540 + src/main/resources/static/js/amap.min.js | 2 + src/main/resources/static/js/axios.min.js | 9 + src/main/resources/static/js/vue.js | 10947 ++++++++++++++++ .../cn/itcast/hotel/HotelDocumentTest.java | 120 + .../java/cn/itcast/hotel/HotelIndexTest.java | 60 + target/classes/application.yaml | 17 + .../itcast/hotel/HotelDemoApplication.class | Bin 0 -> 836 bytes .../hotel/constants/HotelIndexConstants.class | Bin 0 -> 1198 bytes .../cn/itcast/hotel/mapper/HotelMapper.class | Bin 0 -> 301 bytes .../classes/cn/itcast/hotel/pojo/Hotel.class | Bin 0 -> 6754 bytes .../cn/itcast/hotel/pojo/HotelDoc.class | Bin 0 -> 6482 bytes .../itcast/hotel/service/IHotelService.class | Bin 0 -> 314 bytes .../hotel/service/impl/HotelService.class | Bin 0 -> 679 bytes target/classes/logback.xml | 14 + target/classes/static/css/banner.css | 96 + target/classes/static/css/index.css | 372 + target/classes/static/img/ad.png | Bin 0 -> 1634 bytes target/classes/static/img/ad2.png | Bin 0 -> 1349 bytes target/classes/static/img/heima.png | Bin 0 -> 7381 bytes target/classes/static/index.html | 540 + target/classes/static/js/amap.min.js | 2 + target/classes/static/js/axios.min.js | 9 + target/classes/static/js/vue.js | 10947 ++++++++++++++++ .../cn/itcast/hotel/HotelDocumentTest.class | Bin 0 -> 5924 bytes .../cn/itcast/hotel/HotelIndexTest.class | Bin 0 -> 4203 bytes 49 files changed, 24508 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/dataSources.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/jsLibraryMappings.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 pom.xml create mode 100644 src/main/java/cn/itcast/hotel/HotelDemoApplication.java create mode 100644 src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java create mode 100644 src/main/java/cn/itcast/hotel/mapper/HotelMapper.java create mode 100644 src/main/java/cn/itcast/hotel/pojo/Hotel.java create mode 100644 src/main/java/cn/itcast/hotel/pojo/HotelDoc.java create mode 100644 src/main/java/cn/itcast/hotel/service/IHotelService.java create mode 100644 src/main/java/cn/itcast/hotel/service/impl/HotelService.java create mode 100644 src/main/resources/application.yaml create mode 100644 src/main/resources/logback.xml create mode 100644 src/main/resources/static/css/banner.css create mode 100644 src/main/resources/static/css/index.css create mode 100644 src/main/resources/static/img/ad.png create mode 100644 src/main/resources/static/img/ad2.png create mode 100644 src/main/resources/static/img/heima.png create mode 100644 src/main/resources/static/index.html create mode 100644 src/main/resources/static/js/amap.min.js create mode 100644 src/main/resources/static/js/axios.min.js create mode 100644 src/main/resources/static/js/vue.js create mode 100644 src/test/java/cn/itcast/hotel/HotelDocumentTest.java create mode 100644 src/test/java/cn/itcast/hotel/HotelIndexTest.java create mode 100644 target/classes/application.yaml create mode 100644 target/classes/cn/itcast/hotel/HotelDemoApplication.class create mode 100644 target/classes/cn/itcast/hotel/constants/HotelIndexConstants.class create mode 100644 target/classes/cn/itcast/hotel/mapper/HotelMapper.class create mode 100644 target/classes/cn/itcast/hotel/pojo/Hotel.class create mode 100644 target/classes/cn/itcast/hotel/pojo/HotelDoc.class create mode 100644 target/classes/cn/itcast/hotel/service/IHotelService.class create mode 100644 target/classes/cn/itcast/hotel/service/impl/HotelService.class create mode 100644 target/classes/logback.xml create mode 100644 target/classes/static/css/banner.css create mode 100644 target/classes/static/css/index.css create mode 100644 target/classes/static/img/ad.png create mode 100644 target/classes/static/img/ad2.png create mode 100644 target/classes/static/img/heima.png create mode 100644 target/classes/static/index.html create mode 100644 target/classes/static/js/amap.min.js create mode 100644 target/classes/static/js/axios.min.js create mode 100644 target/classes/static/js/vue.js create mode 100644 target/test-classes/cn/itcast/hotel/HotelDocumentTest.class create mode 100644 target/test-classes/cn/itcast/hotel/HotelIndexTest.class diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 0000000..07fc08f --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml new file mode 100644 index 0000000..8b2b496 --- /dev/null +++ b/.idea/dataSources.xml @@ -0,0 +1,19 @@ + + + + + mysql.8 + true + true + 192.168.249.131 + com.mysql.cj.jdbc.Driver + jdbc:mysql://192.168.249.131:3306/hotel_demo?useSSL=false + + + + + + $ProjectFileDir$ + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..0e1c064 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..abb532a --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..4abbfdf --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..d5cd614 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..a130333 --- /dev/null +++ b/pom.xml @@ -0,0 +1,85 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.3.10.RELEASE + + + cn.itcast.demo + hotel-demo + 0.0.1-SNAPSHOT + hotel-demo + Demo project for Spring Boot + + 1.8 + 7.12.1 + + + + + org.elasticsearch.client + elasticsearch-rest-high-level-client + + + org.springframework.boot + spring-boot-starter-web + + + com.baomidou + mybatis-plus-boot-starter + 3.4.2 + + + mysql + mysql-connector-java + runtime + + + org.projectlombok + lombok + true + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.vintage + junit-vintage-engine + + + + + + com.alibaba + fastjson + 1.2.71 + + + org.apache.commons + commons-lang3 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + org.projectlombok + lombok + + + + + + + + diff --git a/src/main/java/cn/itcast/hotel/HotelDemoApplication.java b/src/main/java/cn/itcast/hotel/HotelDemoApplication.java new file mode 100644 index 0000000..518760e --- /dev/null +++ b/src/main/java/cn/itcast/hotel/HotelDemoApplication.java @@ -0,0 +1,19 @@ +package cn.itcast.hotel; + +import com.baomidou.mybatisplus.annotation.DbType; +import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; +import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Bean; + +@MapperScan("cn.itcast.hotel.mapper") +@SpringBootApplication +public class HotelDemoApplication { + + public static void main(String[] args) { + SpringApplication.run(HotelDemoApplication.class, args); + } + +} diff --git a/src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java b/src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java new file mode 100644 index 0000000..e051fa8 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/constants/HotelIndexConstants.java @@ -0,0 +1,50 @@ +package cn.itcast.hotel.constants; + +public class HotelIndexConstants { + public static final String MAPPING_TEMPLATE = + "{\n" + + " \"mappings\": {\n" + + " \"properties\": {\n" + + " \"id\": {\n" + + " \"type\": \"keyword\"\n" + + " },\n" + + " \"name\": {\n" + + " \"type\": \"text\", \n" + + " \"analyzer\": \"ik_max_word\",\n" + + " \"copy_to\": \"all\"\n" + + " },\n" + + " \"address\": {\n" + + " \"type\": \"keyword\",\n" + + " \"index\": false\n" + + " },\n" + + " \"price\": {\n" + + " \"type\": \"integer\"\n" + + " },\n" + + " \"score\": {\n" + + " \"type\": \"integer\"\n" + + " },\n" + + " \"brand\": {\n" + + " \"type\": \"keyword\",\n" + + " \"copy_to\": \"all\"\n" + + " },\n" + + " \"city\": {\n" + + " \"type\": \"keyword\"\n" + + " },\n" + + " \"startName\": {\n" + + " \"type\": \"keyword\"\n" + + " },\n" + + " \"business\": {\n" + + " \"type\": \"keyword\",\n" + + " \"copy_to\": \"all\"\n" + + " },\n" + + " \"location\": {\n" + + " \"type\": \"geo_point\"\n" + + " },\n" + + " \"pic\": {\n" + + " \"type\": \"keyword\",\n" + + " \"index\": false\n" + + " }\n" + + " }\n" + + " }\n" + + "}"; +} diff --git a/src/main/java/cn/itcast/hotel/mapper/HotelMapper.java b/src/main/java/cn/itcast/hotel/mapper/HotelMapper.java new file mode 100644 index 0000000..8a955c0 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/mapper/HotelMapper.java @@ -0,0 +1,7 @@ +package cn.itcast.hotel.mapper; + +import cn.itcast.hotel.pojo.Hotel; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +public interface HotelMapper extends BaseMapper { +} diff --git a/src/main/java/cn/itcast/hotel/pojo/Hotel.java b/src/main/java/cn/itcast/hotel/pojo/Hotel.java new file mode 100644 index 0000000..6e9cfa6 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/pojo/Hotel.java @@ -0,0 +1,24 @@ +package cn.itcast.hotel.pojo; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +@Data +@TableName("tb_hotel") +public class Hotel { + @TableId(type = IdType.INPUT) + private Long id; + private String name; + private String address; + private Integer price; + private Integer score; + private String brand; + private String city; + private String starName; + private String business; + private String longitude; + private String latitude; + private String pic; +} diff --git a/src/main/java/cn/itcast/hotel/pojo/HotelDoc.java b/src/main/java/cn/itcast/hotel/pojo/HotelDoc.java new file mode 100644 index 0000000..4d393b9 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/pojo/HotelDoc.java @@ -0,0 +1,34 @@ +package cn.itcast.hotel.pojo; + +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@NoArgsConstructor +public class HotelDoc { + private Long id; + private String name; + private String address; + private Integer price; + private Integer score; + private String brand; + private String city; + private String starName; + private String business; + private String location; + private String pic; + + public HotelDoc(Hotel hotel) { + this.id = hotel.getId(); + this.name = hotel.getName(); + this.address = hotel.getAddress(); + this.price = hotel.getPrice(); + this.score = hotel.getScore(); + this.brand = hotel.getBrand(); + this.city = hotel.getCity(); + this.starName = hotel.getStarName(); + this.business = hotel.getBusiness(); + this.location = hotel.getLatitude() + ", " + hotel.getLongitude(); + this.pic = hotel.getPic(); + } +} diff --git a/src/main/java/cn/itcast/hotel/service/IHotelService.java b/src/main/java/cn/itcast/hotel/service/IHotelService.java new file mode 100644 index 0000000..d4ab356 --- /dev/null +++ b/src/main/java/cn/itcast/hotel/service/IHotelService.java @@ -0,0 +1,7 @@ +package cn.itcast.hotel.service; + +import cn.itcast.hotel.pojo.Hotel; +import com.baomidou.mybatisplus.extension.service.IService; + +public interface IHotelService extends IService { +} diff --git a/src/main/java/cn/itcast/hotel/service/impl/HotelService.java b/src/main/java/cn/itcast/hotel/service/impl/HotelService.java new file mode 100644 index 0000000..5a312ac --- /dev/null +++ b/src/main/java/cn/itcast/hotel/service/impl/HotelService.java @@ -0,0 +1,11 @@ +package cn.itcast.hotel.service.impl; + +import cn.itcast.hotel.mapper.HotelMapper; +import cn.itcast.hotel.pojo.Hotel; +import cn.itcast.hotel.service.IHotelService; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; + +@Service +public class HotelService extends ServiceImpl implements IHotelService { +} diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml new file mode 100644 index 0000000..85c2e3b --- /dev/null +++ b/src/main/resources/application.yaml @@ -0,0 +1,17 @@ +server: + port: 8089 +spring: + datasource: + url: jdbc:mysql://192.168.249.131:3306/hotel_demo?useSSL=false + username: root + password: root + driver-class-name: com.mysql.cj.jdbc.Driver +logging: + level: + cn.itcast: debug + pattern: + dateformat: HH:mm:ss:SSS +mybatis-plus: + configuration: + map-underscore-to-camel-case: true + type-aliases-package: cn.itcast.hotel.pojo \ No newline at end of file diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 0000000..24a1f44 --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,14 @@ + + + + + + %d{MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/static/css/banner.css b/src/main/resources/static/css/banner.css new file mode 100644 index 0000000..0c3c8c2 --- /dev/null +++ b/src/main/resources/static/css/banner.css @@ -0,0 +1,96 @@ +#toggle-button{ + display: none; +} +.button-label{ + position: relative; + display: inline-block; + width: 68px; + background-color: #ccc; + border: #ccc; + border-radius: 30px; + cursor: pointer; + box-shadow:inset 0 0 3px 1px rgba(0, 0, 0, 0.4); +} +.circle{ + position: absolute; + top: 0; + left: 0; + width: 20px; + height: 20px; + border-radius: 50%; + background-color: #fff; + box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.5); +} +.button-label .text { + line-height: 20px; + font-size: 12px; + + /* + 用来阻止页面文字被选中,出现蓝色 + 可以将下面两行代码注释掉来查看区别 + */ + -webkit-user-select: none; + user-select: none; +} +.on { + color: #fff; + display: none; + text-indent: 0; +} +.off { + color: #fff; + display: inline-block; + text-indent: 0; +} +.button-label .circle{ + left: 0; + transition: all 0.3s;/*transition过度,时间为0.3秒*/ +} + +/* +以下是checked被选中后,紧跟checked标签后面label的样式。 +例如:div+p 选择所有紧接着
元素之后的

元素 +*/ +#toggle-button:checked + label.button-label .circle{ + left: 49px; +} +#toggle-button:checked + label.button-label .on{ + display: inline-block; +} +#toggle-button:checked + label.button-label .off{ + display: none; +} +#toggle-button:checked + label.button-label{ + background-color: #FF8800; +} + + +.banner{ + width: 100%; + display: flex; + justify-content: space-between; + padding-top: 10px; +} + +.logo { + display: flex; + justify-items: left; + +} +.logo img{ + width: 40px; +} +.logo span { + width: 80px; +} +.logo-ch { + line-height: 26px; + font-size: 14px; + color: #333; + font-weight: bold; + font-family: "Helvetica Neue", "Arial", "PingFang SC", "Microsoft Yahei", "SimSun", sans-serif; +} +.logo-en { + line-height: 14px; + font-size: 8px; +} diff --git a/src/main/resources/static/css/index.css b/src/main/resources/static/css/index.css new file mode 100644 index 0000000..b448139 --- /dev/null +++ b/src/main/resources/static/css/index.css @@ -0,0 +1,372 @@ + +.search-bar{ + display: flex; + flex-direction: column; + align-items: center; +} +.input-box{ + display: flex; + width: 35%; +} +.search-bar input { + border: 1px solid #F80; + width: 80%; + height: 28px; + line-height: 28px; + vertical-align: top; + border-radius: .25rem 0 0 .25rem; +} + +.search-bar button { + width: 20%; + border: 1px solid #F80; + background-color: #F80; + color: #fff; + line-height: 28px; + margin-left: -6px; + border-radius: 0 .25rem .25rem 0; + height: 28px; +} + +#complete-box{ + margin-top: 28px; + position: absolute; + z-index: 99; + text-align: left; + border: 1px solid #f1f1f2; + width: 336px; + height: 120px; + background-color: #fff; +} +#complete-box div{ + padding-left: 7px; +} + +.btn { + height: 34px; + line-height: 34px; + padding: 0 12px; + font-size: 16px; + font-family: "Arial", "PingFang SC", "Microsoft Yahei", "SimSun", sans-serif; + color: #FFF; + background: #F80; + border-color: #F80; + vertical-align: top; + text-align: center; + display: inline-block; + box-sizing: content-box; + cursor: pointer; + border-radius: 3px; +} + +em { + color: red; + font-style: normal; +} + +.selected { + color: red; +} + +.filter-list { + padding: 5px 0; + background: #fff; + border-radius: 3px; + box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2); +} + +.filter-box { + display: flex; + align-content: center; + position: relative; + line-height: 24px; +} + +.f-key { + font-size: 12px; + color: #666; + width: 10%; + text-align: center; + margin: auto; + line-height: 100%; +} +.column-divider{ + width: 2px; + border-radius: 1px; + box-shadow: 1px 0 0 rgba(0,0,0,.2) inset,-1px 0 0 rgba(255,255,255,.2) inset; +} +.row-divider{ + margin: auto; + width: 98%; + border-radius: 1px; + height: 3px; + box-shadow:0 1px 0 rgba(0,0,0,.2) inset,0 -1px 0 rgba(255,255,255,.2) inset; +} +a { + text-decoration: none; + color: #999; +} + +a:hover { + color: #F80; +} + +.f-items { + width: 85%; + display: flex; + flex-wrap: wrap; + align-content: center; +} + +.f-item { + width: 80px; + line-height: 30px; + font-size: 12px; +} +.btn-arrow{ + border-radius: 3px; +} +.btn-arrow, +.btn-arrow:visited, +.btn-arrow:link, +.btn-arrow:active { + width: 46px; + height: 23px; + border: 1px solid #DDD; + background: #FFF; + line-height: 23px; + font-family: "\5b8b\4f53"; + text-align: center; + font-size: 16px; + color: #AAA; + text-decoration: none; + out-line: none +} + +.btn-arrow:hover { + background-color: #FF8800; + color: whitesmoke; +} + +.sort-item { + display: inline; + width: 50px; + float: left; + font-size: 13px; +} + +.selected-ops { + display: flex; + align-items: center; +} + +.open { + font-size: 12px; + margin-left: 10px; + line-height: 24px; + margin-bottom: 3px; +} + +.selected-op { + border: 1px solid #eee; + border-radius: 3px; + font-size: 12px; + margin-left: 10px; + line-height: 16px; + background: #fff; + padding: 0px 5px 1px; +} + +.selected-op:hover { + box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1); +} + +.selected-op span { + color: red; + cursor: pointer; +} + +.close { + margin-left: 8px; + font-size: 16px; + font-weight: 800; +} + +.top-ban { + margin-top: 20px; + display: flex; + justify-content: space-between; +} + +.top-pagination { + padding: 3px 15px; + font-size: 11px; + font-weight: 700; + line-height: 18px; + color: #999; + text-shadow: 0 1px 0 rgba(255, 255, 255, .5); + text-transform: uppercase; +} + +.top-pagination span { + margin-right: 10px; +} + + +body { + background-color: #fcfcfc; +} + +#app { + width: 100%; + display: flex; + justify-content: center; +} + +.star-name { + width: 50px; + text-align: center; + font: 12px/1.5 tahoma, arial, 'pingfang sc', 'Hiragino Sans GB', \5b8b\4f53, sans-serif; + background-color: #fe7a6b; + color: #fff; + margin-bottom: 10px; + border-radius: 3px; + padding: 2px 5px; + zoom: 1; +} +.hotel-info { + text-align: left; + width: 50%; + display: flex; + flex-direction: column; + justify-content: space-around; +} +#hotel-price { + font-weight: bold; + font-size: 24px; + color: #f60; + padding-right: 2px; + font-family: 'Helvetica Neue', 'Arial', 'PingFang SC', 'Microsoft Yahei', 'SimSun', sans-serif; +} + +.hotel-name { + font-size: 18px; + color: #333; + font-weight: bold; + font-family: "Helvetica Neue", "Arial", "PingFang SC", "Microsoft Yahei", "SimSun", sans-serif; + line-height: 26px; +} + +.hotel-score { + font-size: 14px; + color: #365873; + font-weight: 700; + font: arial, 'pingfang sc', 'Hiragino Sans GB', \5b8b\4f53, sans-serif +} + +.hotel-list { + display: flex; + flex-direction: column; + width: 640px; + height: 100%; +} +.hotel-list span{ + font-size: 12px;font: arial,'pingfang sc','Hiragino Sans GB',\5b8b\4f53,sans-serif +} +.order { + color: #2bba9e; cursor: default; font: 12px/1.5 tahoma,arial,'pingfang sc','Hiragino Sans GB',\5b8b\4f53,sans-serif; +} +.address { + margin-bottom: 10px;font: 12px/1.5 tahoma,arial,'pingfang sc','Hiragino Sans GB',\5b8b\4f53,sans-serif; +} + +.hotel-box { + padding: 20px; + margin-bottom: 10px; + position: relative; + background: #fff; + border-radius: 5px; + box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2); +} + +.hotel-box:hover { + box-shadow: 0 1px 3px 1px rgba(245, 131, 8, 0.3); +} + +.fixed-map { + position: fixed; + top: 0; +} + +.map-box { + background-color: #fff; + color: #666; + width: 360px; + height: 400px; + padding: 5px; + border-radius: 5px; + box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.2); +} + +.map-head { + line-height: 35px; +} + +.amap { + width: 100%; + height: 350px; +} + +.marker-label{ + font-size: 12px; +} +.marker { + position: absolute; + top: -25px; + right: -100px; + color: #fff; + padding: 4px 10px; + box-shadow: 1px 1px 1px rgba(10, 10, 10, .2); + white-space: nowrap; + font-size: 12px; + font-family: ""; + background-color: #25A5F7; + border-radius: 3px; +} + +em{ + color: red; +} +.ad-mark { + position: absolute; + left: 5px; + top: 0; +} +.ad-mark img{ + filter: drop-shadow(1px 2px 1px rgba(0,0,0,.3)) +} + +.map-geo{ + position: relative; + bottom: 35px; + left: 310px; + width: 32px; + height: 32px; + border-radius: 50%; + cursor: pointer; + background-image: url(https://a.amap.com/jsapi/static/image/plugin/locate.png); + background-size: 24px; + background-repeat: no-repeat; + background-position: 50%; + background-color: #fff; + box-shadow: 0 0 5px silver; +} + +.map-geo img { + height: 24px; + width: 24px; + background-color: #fff; + margin: 4px; + border-radius: 50%; + -webkit-animation: rotate 2s linear infinite; +} \ No newline at end of file diff --git a/src/main/resources/static/img/ad.png b/src/main/resources/static/img/ad.png new file mode 100644 index 0000000000000000000000000000000000000000..8250ec831e351b7572eadf15b739f2cfa36aaa7b GIT binary patch literal 1634 zcmcgtdo8{Ky(V#bi`2GeoILp|*<|k-5dVjS*>v!dhD*hRtRgQ<<=nnK7np zq3t3GU2J12n%tU7+R|i7E~T_3vL&O!{_LK!|L;Hho%4Oq^Ss}C&hx(KJ?HyGOn*O9 zV{2mofGL&Y69fRt5aH+02FQ8kEqnz5R7#MaH>kR2^9Ldf>O&4mk9v3P zsrPf@9AC2U%e{dZ8}rGj#c{zNKLjm>`Y1uk+B@;_yLhIX9^y^Ule!(JHpyj)%D4_v&VV#jYt`JNErt*)wxk)??gro1KWwOzV!P} z9htHDe41y#%rz<_qn|9dX*kQu?rdFgs^)&*GTj5UCMl$SpoQ&)?j2P&7c8962Ie|= zwYZ=z>vw9)4NGA@4Y;7n4KZOich_|%I@FAZyOGHuP)XqI!>c#&6|m*<`3g&WnxZAO z=Gk2={G#Qg0e$U$dSU#IQD5S1c+btWkSmX@VqLe(#HC))s<6(43-H0ZDc2nUO zaBYq2ktXrZAw#o+D!el!wOTNF+=G6MC|X$3rHPL^NhtHc4nF0!;-f0-%=FQL(Qrbc zU^vH8ntq{oed#qClE8A-Yx5Y-8;9#Rca5k|VBrJVCLOKg?M&R4Sa@L`u1EKkr2FW% zJ;OSzShi;my?oZ6jc03Z6-@?F3#((BC)(9*NA1*aP;~-738w@7c!UDiD;poJJuFOp zZPZtQ56N%-KEno@Qf2@%2kr-Tn?X7jDl2N8FShS%EuZTZX1Ou9fRL)ql%^yNcM#Z4 z8{R2~vW78KL5ABBcA9OK@KXe~RwG~}Lm##&w0q9HpruFa@`)Nkg@3I@j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2iF|L40p zpE%V@k_(|V0>w&m3W70olJ zU08Z)eWPqs)4pxT4&K?uA}bPPxocinwCr)l+d^rMiNz^bZa&zYGjB_OO2B!~zH<|c zb&~u!CoPe@DI=MFxK~4r(+(%rv zrNynk{~U{A;^S6xYtr@3k$!w|NUHZs8DEuqV%kp@s@#} z0=)W1T_$?I*rnwC?$ZZH5usH%UXxBWt6$oqz*|WEkX_6VYlacy=o4Bc+J$EQ%iK8!MAlOVQkNi zdHcOn?h^{(^j#x#C2gb3=ayK`%PQ$=$88eBo3>osyy9GfZJO$extDB>{>d9?JNinj zFS;NM6v;f~%U5-14U4H$Rh-p~sSC;u*qooW*6Tv_!n)^PK=~az{yNLf4;0#Td;N+i z{eGd4{Wkp*c5P%;waYSk9oUq0{PTl^&?Y|4eV@JDRA2Njs_5$uQ(Y0+^nOQ1NYlEl zu@~0n-k7rBJ=^xQu!P{Ie+kpR>#X+V{Po%5o^#W*2_Bvw*!gDay!5N&=iK~F=A)|P zbpBuWi#KREw!6OH%raXjUXEoRzG!H#aLj^wxcs!V^XZEUq(8YJGNamBtLCw_E=#@mjQB z{?}B8C(TbbOf5JQbUEu6~6HJiEV37zy4CMqIS|g%CY#b UQ;V+$uzX_hboFyt=akR{0M>g*3IG5A literal 0 HcmV?d00001 diff --git a/src/main/resources/static/img/heima.png b/src/main/resources/static/img/heima.png new file mode 100644 index 0000000000000000000000000000000000000000..f386f6748babe4080f1575a2f0f3a1df5a40ea5f GIT binary patch literal 7381 zcmV;`94h09P)p$`mYfT8!^MMuH{NiMQwEADopB=)frJK1E{$*yxYWxYAaXOH)+V<%Z> zH!g8v$&zJTwq#ia1QMV|@13Cyh~7KQ0Q=oH^Uzdg29TXS$M1LyV*dA+@7@2F@817$ zINw~~An^YI0gJDDl1ocV-2Q=q$kK|+BlsC-$>S~VN=!JOot5?R*FCqbj{miQy0EZd z*Vx>Apu4v>b9!dhlO|zrZ$A8^v`uj5Ze9HwFXXjRTv0Js9t7}7mpMRO1o$dP94a#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nn-BV=?|g6(st;L4T%f{&-H3RGRHH1}b z_rQTafH=_!W=xrp*`QLVsO{hTx8ujpfZ1`-0ajHaKtIT!q1b|hRLDTi-t1R#?&<=L z;`G9+Fo{SpWdZ7K5Nf(1-SZRS}!pMPaf4C-KtDD=J^K{fcO2Tewl6^mn%DM){WE-o&)MFLn97oUT0c515zMhnja1y{8jh0NoYs;Xror6ccuco&4 zAKE&k_kd_oE=NlRY&<&#@7qI?YCz7M;{XR6G@=5ZVZ4K-86}jR$i0u?d#e1fK&he~ z{6`7WHsRn_BWLDjo#yeb0MLQ(EmxW0ZiA+j74@CMZgpnP_=0#-fhC__pd$+l4*p|e zeEi3tFt=6uxg*9a(+j^SjK!NSg69?%#5kSpy}Y~<3jOQ7 zi1!J|0W_U8VBSJWul0nnQ+J6_ql#bxA5_mE=Y=Dk)@w*kcA#3Mif_rEfO|HM*NSu_ z8(a(Svu-B<+Dac^DX97;*w=q66lFkhsP9LG$XEo5ZY4Nw + + + + + 黑马旅游 + + + + + + + +

+
+ + + + +
+
全部结果:
+
+ {{filterNames[k]}}:{{v}} × +
+
+ +
+
+
+
{{filterNames[k]}}
+
+ +
+
+
+ +
+ +
+ +
+
+ {{item.text}} + | +
+
+ + +
+ {{total}} 家酒店 + {{params.page}}/{{totalPage}} + < + > +
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+
{{hotel.starName}}
+
+ 位于 {{hotel.business}} 周边,{{hotel.address}} +
+
1分钟前有人预订了该酒店
+
距离您 {{hotel.distance.toFixed(2)}} km
+
+
+
+ {{hotel.price}} +
+
立即预定
+
+ {{hotel.score / 10}}分 /5分 +
+
+
+
+
+
地图预览
+
+
+ +
+
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/static/js/amap.min.js b/src/main/resources/static/js/amap.min.js new file mode 100644 index 0000000..f3c85c2 --- /dev/null +++ b/src/main/resources/static/js/amap.min.js @@ -0,0 +1,2 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("VueAMap",["vue"],e):"object"==typeof exports?exports.VueAMap=e(require("vue")):t.VueAMap=e(t.Vue)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=64)}([function(t,e,n){"use strict";var r=n(45),o=n.n(r),i=n(6),a=n(50),s=n(13),u=n(49),c=n(27);e.a={data:function(){return{unwatchFns:[]}},mounted:function(){var t=this;s.b&&s.b.load().then(function(){t.__contextReady&&t.__contextReady.call(t,t.convertProps())}),this.$amap=this.$amap||this.$parent.$amap,this.$amap?this.register():this.$on(u.a.AMAP_READY_EVENT,function(e){t.$amap=e,t.register()})},destroyed:function(){this.unregisterEvents(),this.$amapComponent&&(this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.unwatchFns.forEach(function(t){return t()}),this.unwatchFns=[])},methods:{getHandlerFun:function(t){return this.handlers&&this.handlers[t]?this.handlers[t]:this.$amapComponent["set"+o()(t)]||this.$amapComponent.setOptions},convertProps:function(){var t=this,e={};this.$amap&&(e.map=this.$amap);var n=this.$options.propsData,r=void 0===n?{}:n,o=this.propsRedirect;return Object.keys(r).reduce(function(n,i){var a=i,s=t.convertSignalProp(a,r[a]);return void 0===s?n:(o&&o[i]&&(a=o[a]),e[a]=s,n)},e)},convertSignalProp:function(t,e){var n="",r="";if(this.amapTagName)try{var a=o()(this.amapTagName).replace(/^El/,"");r=(c.default[a]||"").props[t].$type,n=i.a[r]}catch(t){}if(r&&n)return n(e);if(this.converters&&this.converters[t])return this.converters[t].call(this,e);var s=i.a[t];return s?s(e):e},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var t in this.events)a.a.addListener(this.$amapComponent,t,this.events[t]);if(this.$options.propsData.onceEvents)for(var e in this.onceEvents)a.a.addListenerOnce(this.$amapComponent,e,this.onceEvents[e])}},unregisterEvents:function(){a.a.clearListeners(this.$amapComponent)},setPropWatchers:function(){var t=this,e=this.propsRedirect,n=this.$options.propsData,r=void 0===n?{}:n;Object.keys(r).forEach(function(n){var r=n;e&&e[n]&&(r=e[n]);var o=t.getHandlerFun(r);if(o||"events"===n){var i=t.$watch(n,function(e){if("events"===n)return t.unregisterEvents(),void t.registerEvents();if(o&&o===t.$amapComponent.setOptions){var i;return o.call(t.$amapComponent,(i={},i[r]=t.convertSignalProp(n,e),i))}o.call(t.$amapComponent,t.convertSignalProp(n,e))});t.unwatchFns.push(i)}})},registerToManager:function(){var t=this.amapManager||this.$parent.amapManager;t&&void 0!==this.vid&&t.setComponent(this.vid,this.$amapComponent)},initProps:function(){var t=this;["editable","visible"].forEach(function(e){if(void 0!==t[e]){var n=t.getHandlerFun(e);n&&n.call(t.$amapComponent,t.convertSignalProp(e,t[e]))}})},printReactiveProp:function(){var t=this;Object.keys(this._props).forEach(function(e){t.$amapComponent["set"+o()(e)]&&console.log(e)})},register:function(){var t=this,e=this.__initComponent&&this.__initComponent(this.convertProps());e&&e.then?e.then(function(e){return t.registerRest(e)}):this.registerRest(e)},registerRest:function(t){!this.$amapComponent&&t&&(this.$amapComponent=t),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init(this.$amapComponent,this.$amap,this.amapManager||this.$parent.amapManager)},$$getInstance:function(){return this.$amapComponent}}}},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var p;if(a?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=p):o&&(p=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),p)if(c.functional){c._injectStyles=p;var f=c.render;c.render=function(t,e){return p.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,p):[p]}return{exports:t,options:c}}e.a=r},function(t,e,n){var r=n(30)("wks"),o=n(14),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return new AMap.Pixel(t[0],t[1])}function o(t){return new AMap.Size(t[0],t[1])}function i(t){return Array.isArray(t)?t:[t.getX(),t.getY()]}function a(t){return new AMap.LngLat(t[0],t[1])}function s(t){if(t)return Array.isArray(t)?t.slice():[t.getLng(),t.getLat()]}function u(t){return new AMap.Bounds(a(t[0]),a(t[1]))}e.e=r,e.c=i,e.d=a,e.b=s,n.d(e,"a",function(){return c});var c={position:a,offset:r,bounds:u,LngLat:a,Pixel:r,Size:o,Bounds:u}},function(t,e,n){var r=n(3),o=n(8),i=n(11),a=n(14)("src"),s=Function.toString,u=(""+s).split("toString");n(16).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(9),o=n(20);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(10),o=n(31),i=n(33),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n(97),o=n(19),i=n.n(o),a=null,s=function(t){i.a.prototype.$isServer||a||(a||(a=new r.a(t)),a.load())}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(71);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(75),o=n(22);t.exports=function(t){return r(o(t))}},function(e,n){e.exports=t},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(70),o=n(34),i=n(7),a=n(8),s=n(12),u=n(72),c=n(25),p=n(79),f=n(2)("iterator"),l=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){u(n,e,h);var g,b,_,x=function(t){if(!l&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",w="values"==v,$=!1,M=t.prototype,E=M[f]||M["@@iterator"]||v&&M[v],A=E||x(v),O=v?w?x("entries"):A:void 0,S="Array"==e?M.entries||E:E;if(S&&(_=p(S.call(new t)))!==Object.prototype&&_.next&&(c(_,C,!0),r||"function"==typeof _[f]||a(_,f,d)),w&&E&&"values"!==E.name&&($=!0,A=function(){return E.call(this)}),r&&!y||!l&&!$&&M[f]||a(M,f,A),s[e]=A,s[C]=d,v)if(g={values:w?A:x("values"),keys:m?A:x("keys"),entries:O},y)for(b in g)b in M||i(M,b,g[b]);else o(o.P+o.F*(l||$),e,g);return g}},function(t,e,n){var r=n(30)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(9).f,o=n(11),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(50);e.a={methods:{setEditorEvents:function(){var t=this;if(this.$amapComponent.editor&&this.events){var e=["addnode","adjust","removenode","end","move"],n={};Object.keys(this.events).forEach(function(r){-1!==e.indexOf(r)&&(n[r]=t.events[r])}),Object.keys(n).forEach(function(e){r.a.addListener(t.$amapComponent.editor,e,n[e])})}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(65),n(45)),o=n.n(r),i=n(13),a=n(100),s=n(106),u=n(107),c=n(111),p=n(113),f=n(115),l=n(116),d=n(118),h=n(120),v=n(122),m=n(124),y=n(126),g=n(128),b=n(130),_=n(131);n.d(e,"AMapManager",function(){return b.a}),n.d(e,"initAMapApiLoader",function(){return i.a}),n.d(e,"createCustomComponent",function(){return _.a}),n.d(e,"lazyAMapApiLoaderInstance",function(){return i.b});var x=[a.a,s.a,u.a,c.a,p.a,f.a,d.a,l.a,h.a,v.a,m.a,y.a,g.a],C={initAMapApiLoader:i.a,AMapManager:b.a};C.install=function(t){C.installed||(t.config.optionMergeStrategies.deferredReady=t.config.optionMergeStrategies.created,x.map(function(e){t.component(e.name,e),C[o()(e.name).replace(/^El/,"")]=e}))};"undefined"!=typeof window&&window.Vue&&function t(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.installed||C.install(e)}(window.Vue),e.default=C},function(t,e,n){var r=n(29),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(3),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){t.exports=!n(5)&&!n(15)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),o=n(16),i=n(8),a=n(7),s=n(17),u=function(t,e,n){var c,p,f,l,d=t&u.F,h=t&u.G,v=t&u.S,m=t&u.P,y=t&u.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});h&&(n=e);for(c in n)p=!d&&g&&void 0!==g[c],f=(p?g:n)[c],l=y&&p?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,g&&a(g,c,f,t&u.U),b[c]!=f&&i(b,c,l),m&&_[c]!=f&&(_[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(10),o=n(73),i=n(38),a=n(24)("IE_PROTO"),s=function(){},u=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(78).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(" + + + + + + + + + \ No newline at end of file diff --git a/target/classes/static/js/amap.min.js b/target/classes/static/js/amap.min.js new file mode 100644 index 0000000..f3c85c2 --- /dev/null +++ b/target/classes/static/js/amap.min.js @@ -0,0 +1,2 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("VueAMap",["vue"],e):"object"==typeof exports?exports.VueAMap=e(require("vue")):t.VueAMap=e(t.Vue)}("undefined"!=typeof self?self:this,function(t){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./",e(e.s=64)}([function(t,e,n){"use strict";var r=n(45),o=n.n(r),i=n(6),a=n(50),s=n(13),u=n(49),c=n(27);e.a={data:function(){return{unwatchFns:[]}},mounted:function(){var t=this;s.b&&s.b.load().then(function(){t.__contextReady&&t.__contextReady.call(t,t.convertProps())}),this.$amap=this.$amap||this.$parent.$amap,this.$amap?this.register():this.$on(u.a.AMAP_READY_EVENT,function(e){t.$amap=e,t.register()})},destroyed:function(){this.unregisterEvents(),this.$amapComponent&&(this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.unwatchFns.forEach(function(t){return t()}),this.unwatchFns=[])},methods:{getHandlerFun:function(t){return this.handlers&&this.handlers[t]?this.handlers[t]:this.$amapComponent["set"+o()(t)]||this.$amapComponent.setOptions},convertProps:function(){var t=this,e={};this.$amap&&(e.map=this.$amap);var n=this.$options.propsData,r=void 0===n?{}:n,o=this.propsRedirect;return Object.keys(r).reduce(function(n,i){var a=i,s=t.convertSignalProp(a,r[a]);return void 0===s?n:(o&&o[i]&&(a=o[a]),e[a]=s,n)},e)},convertSignalProp:function(t,e){var n="",r="";if(this.amapTagName)try{var a=o()(this.amapTagName).replace(/^El/,"");r=(c.default[a]||"").props[t].$type,n=i.a[r]}catch(t){}if(r&&n)return n(e);if(this.converters&&this.converters[t])return this.converters[t].call(this,e);var s=i.a[t];return s?s(e):e},registerEvents:function(){if(this.setEditorEvents&&this.setEditorEvents(),this.$options.propsData){if(this.$options.propsData.events)for(var t in this.events)a.a.addListener(this.$amapComponent,t,this.events[t]);if(this.$options.propsData.onceEvents)for(var e in this.onceEvents)a.a.addListenerOnce(this.$amapComponent,e,this.onceEvents[e])}},unregisterEvents:function(){a.a.clearListeners(this.$amapComponent)},setPropWatchers:function(){var t=this,e=this.propsRedirect,n=this.$options.propsData,r=void 0===n?{}:n;Object.keys(r).forEach(function(n){var r=n;e&&e[n]&&(r=e[n]);var o=t.getHandlerFun(r);if(o||"events"===n){var i=t.$watch(n,function(e){if("events"===n)return t.unregisterEvents(),void t.registerEvents();if(o&&o===t.$amapComponent.setOptions){var i;return o.call(t.$amapComponent,(i={},i[r]=t.convertSignalProp(n,e),i))}o.call(t.$amapComponent,t.convertSignalProp(n,e))});t.unwatchFns.push(i)}})},registerToManager:function(){var t=this.amapManager||this.$parent.amapManager;t&&void 0!==this.vid&&t.setComponent(this.vid,this.$amapComponent)},initProps:function(){var t=this;["editable","visible"].forEach(function(e){if(void 0!==t[e]){var n=t.getHandlerFun(e);n&&n.call(t.$amapComponent,t.convertSignalProp(e,t[e]))}})},printReactiveProp:function(){var t=this;Object.keys(this._props).forEach(function(e){t.$amapComponent["set"+o()(e)]&&console.log(e)})},register:function(){var t=this,e=this.__initComponent&&this.__initComponent(this.convertProps());e&&e.then?e.then(function(e){return t.registerRest(e)}):this.registerRest(e)},registerRest:function(t){!this.$amapComponent&&t&&(this.$amapComponent=t),this.registerEvents(),this.initProps(),this.setPropWatchers(),this.registerToManager(),this.events&&this.events.init&&this.events.init(this.$amapComponent,this.$amap,this.amapManager||this.$parent.amapManager)},$$getInstance:function(){return this.$amapComponent}}}},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,s){t=t||{};var u=typeof t.default;"object"!==u&&"function"!==u||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var p;if(a?(p=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=p):o&&(p=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),p)if(c.functional){c._injectStyles=p;var f=c.render;c.render=function(t,e){return p.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,p):[p]}return{exports:t,options:c}}e.a=r},function(t,e,n){var r=n(30)("wks"),o=n(14),i=n(3).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";function r(t){return new AMap.Pixel(t[0],t[1])}function o(t){return new AMap.Size(t[0],t[1])}function i(t){return Array.isArray(t)?t:[t.getX(),t.getY()]}function a(t){return new AMap.LngLat(t[0],t[1])}function s(t){if(t)return Array.isArray(t)?t.slice():[t.getLng(),t.getLat()]}function u(t){return new AMap.Bounds(a(t[0]),a(t[1]))}e.e=r,e.c=i,e.d=a,e.b=s,n.d(e,"a",function(){return c});var c={position:a,offset:r,bounds:u,LngLat:a,Pixel:r,Size:o,Bounds:u}},function(t,e,n){var r=n(3),o=n(8),i=n(11),a=n(14)("src"),s=Function.toString,u=(""+s).split("toString");n(16).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(9),o=n(20);t.exports=n(5)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(10),o=n(31),i=n(33),a=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return a});var r=n(97),o=n(19),i=n.n(o),a=null,s=function(t){i.a.prototype.$isServer||a||(a||(a=new r.a(t)),a.load())}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var n=t.exports={version:"2.5.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(71);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(75),o=n(22);t.exports=function(t){return r(o(t))}},function(e,n){e.exports=t},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(70),o=n(34),i=n(7),a=n(8),s=n(12),u=n(72),c=n(25),p=n(79),f=n(2)("iterator"),l=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,h,v,m,y){u(n,e,h);var g,b,_,x=function(t){if(!l&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",w="values"==v,$=!1,M=t.prototype,E=M[f]||M["@@iterator"]||v&&M[v],A=E||x(v),O=v?w?x("entries"):A:void 0,S="Array"==e?M.entries||E:E;if(S&&(_=p(S.call(new t)))!==Object.prototype&&_.next&&(c(_,C,!0),r||"function"==typeof _[f]||a(_,f,d)),w&&E&&"values"!==E.name&&($=!0,A=function(){return E.call(this)}),r&&!y||!l&&!$&&M[f]||a(M,f,A),s[e]=A,s[C]=d,v)if(g={values:w?A:x("values"),keys:m?A:x("keys"),entries:O},y)for(b in g)b in M||i(M,b,g[b]);else o(o.P+o.F*(l||$),e,g);return g}},function(t,e,n){var r=n(30)("keys"),o=n(14);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(9).f,o=n(11),i=n(2)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(50);e.a={methods:{setEditorEvents:function(){var t=this;if(this.$amapComponent.editor&&this.events){var e=["addnode","adjust","removenode","end","move"],n={};Object.keys(this.events).forEach(function(r){-1!==e.indexOf(r)&&(n[r]=t.events[r])}),Object.keys(n).forEach(function(e){r.a.addListener(t.$amapComponent.editor,e,n[e])})}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(65),n(45)),o=n.n(r),i=n(13),a=n(100),s=n(106),u=n(107),c=n(111),p=n(113),f=n(115),l=n(116),d=n(118),h=n(120),v=n(122),m=n(124),y=n(126),g=n(128),b=n(130),_=n(131);n.d(e,"AMapManager",function(){return b.a}),n.d(e,"initAMapApiLoader",function(){return i.a}),n.d(e,"createCustomComponent",function(){return _.a}),n.d(e,"lazyAMapApiLoaderInstance",function(){return i.b});var x=[a.a,s.a,u.a,c.a,p.a,f.a,d.a,l.a,h.a,v.a,m.a,y.a,g.a],C={initAMapApiLoader:i.a,AMapManager:b.a};C.install=function(t){C.installed||(t.config.optionMergeStrategies.deferredReady=t.config.optionMergeStrategies.created,x.map(function(e){t.component(e.name,e),C[o()(e.name).replace(/^El/,"")]=e}))};"undefined"!=typeof window&&window.Vue&&function t(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.installed||C.install(e)}(window.Vue),e.default=C},function(t,e,n){var r=n(29),o=n(2)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(3),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){t.exports=!n(5)&&!n(15)(function(){return 7!=Object.defineProperty(n(32)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4),o=n(3).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var r=n(3),o=n(16),i=n(8),a=n(7),s=n(17),u=function(t,e,n){var c,p,f,l,d=t&u.F,h=t&u.G,v=t&u.S,m=t&u.P,y=t&u.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?o:o[e]||(o[e]={}),_=b.prototype||(b.prototype={});h&&(n=e);for(c in n)p=!d&&g&&void 0!==g[c],f=(p?g:n)[c],l=y&&p?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,g&&a(g,c,f,t&u.U),b[c]!=f&&i(b,c,l),m&&_[c]!=f&&(_[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(10),o=n(73),i=n(38),a=n(24)("IE_PROTO"),s=function(){},u=function(){var t,e=n(32)("iframe"),r=i.length;for(e.style.display="none",n(78).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("