| xqd
@@ -132,11 +132,12 @@
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
|
- <view class="address" v-if="isShow">
|
|
|
+ <view class="address">
|
|
|
<view style="height:1232rpx;">
|
|
|
- <hch-position ref="map" :markers="markers" @moveToMarkId="moveToMarkId"/>
|
|
|
+ <hch-position ref="map" :markers="hotelList" @moveToMarkId="moveToMarkId"/>
|
|
|
</view>
|
|
|
- <view class="address-nav" style="overflow-x: visible;">
|
|
|
+ <view class="address-nav" style="overflow-x: visible; height:318rpx;">
|
|
|
+ <!-- 遮挡地图修正
|
|
|
<view class="address-nav-btn">
|
|
|
<view class="" @click="goLocation">
|
|
|
<image style="width: 84rpx;height: 84rpx;" src="/static/icon/location.png" mode=""></image>
|
| xqd
@@ -145,11 +146,14 @@
|
|
|
<image style="width: 84rpx;height: 84rpx;" src="/static/icon/list.png" mode=""></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ -->
|
|
|
<view id="switch-container"
|
|
|
style="width: 100%; overflow-x: scroll; display: none;align-items: center;justify-content: space-between;">
|
|
|
</view>
|
|
|
- <scroll-view style="width: calc(100% + 32rpx);height:318rpx;white-space: nowrap;" :scroll-x="true" :scroll-left="scrolls.scrollX" :scroll-with-animation="true">
|
|
|
- <view style="width: 16rpx;display: inline-block;"></view>
|
|
|
+ <scroll-view style="width: calc(100% + 16px);height:318rpx;white-space: nowrap;margin-left: -8px;"
|
|
|
+ @scroll="bottomScroll" @scrolltolower="scrollTolower"
|
|
|
+ :scroll-x="true" :scroll-left="scrolls.scrollX" :scroll-with-animation="true">
|
|
|
+ <view style="width: 8px;display: inline-block;"></view>
|
|
|
<view class="address-detail" v-for="(item,index) in hotelList" :key="index">
|
|
|
<view class="mark">
|
|
|
<image style=""
|
| xqd
@@ -162,29 +166,35 @@
|
|
|
<view class="content">
|
|
|
<text>{{item.label}}</text>
|
|
|
</view>
|
|
|
- <view class="bottom">
|
|
|
+ <view class="bottom" v-if="item.min_price">
|
|
|
<text class="bottom-left">¥</text>
|
|
|
<text class="bottom-right">{{item.min_price}}起</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="address-detail-main-right" @click="goBook(item.id)">
|
|
|
+ <view class="address-detail-main-right" @click="goBook(index)">
|
|
|
<text>预订</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="address-detail-position">
|
|
|
<image style="width: 18rpx;height: 22rpx;" src="/static/icon/address02.png" mode="">
|
|
|
</image>
|
|
|
- <text style="margin-left:4rpx ;">{{item.distance}}km</text>
|
|
|
+ <text style="margin-left:4rpx ;">{{item.distanceToMe}}km</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view style="width: 1rpx;display: inline-block;"></view>
|
|
|
+ <view style="width: 1px;display: inline-block;"></view>
|
|
|
</scroll-view>
|
|
|
+ <view class="address-nav-button" @click="goLocation">
|
|
|
+ <image style="width: 84rpx;height: 84rpx;" src="/static/icon/location.png" mode=""></image>
|
|
|
+ </view>
|
|
|
+ <view class="address-nav-button" @click="goHotelList">
|
|
|
+ <image style="width: 84rpx;height: 84rpx;" src="/static/icon/list.png" mode=""></image>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 酒店列表 -->
|
|
|
- <view class="hotel-list" v-if="!isShow">
|
|
|
+ <view class="hotel-list" style="position: absolute;" v-if="!isShow">
|
|
|
<view class="hotel-list-item" v-for="(item,index) in hotelList" :key="index" @click="goBook(item.id)">
|
|
|
<view class="wrap">
|
|
|
<view class="mark">
|
| xqd
@@ -198,18 +208,18 @@
|
|
|
<view class="content">
|
|
|
<text>{{item.label}}</text>
|
|
|
</view>
|
|
|
- <view class="bottom">
|
|
|
+ <view class="bottom" v-if="item.min_price">
|
|
|
<text class="bottom-left">¥</text>
|
|
|
<text class="bottom-right">{{item.min_price}}起</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="address-detail-main-right" @click.stop="goBook(item.id)">
|
|
|
+ <view class="address-detail-main-right" @click.stop="goBook(index)">
|
|
|
<text>预订</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="address-detail-position">
|
|
|
<image style="width: 18rpx;height: 22rpx;" src="/static/icon/address02.png" mode=""></image>
|
|
|
- <text style="margin-left:4rpx ;">{{item.distance}}km</text>
|
|
|
+ <text style="margin-left:4rpx ;">{{item.distanceToMe}}km</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
| xqd
@@ -329,12 +339,21 @@
|
|
|
isPartner: false,
|
|
|
//是否展示加盟品牌
|
|
|
isJoin: false,
|
|
|
+ //滚动参数
|
|
|
+ scrollData:{
|
|
|
+ spa: false
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
//获取经纬度
|
|
|
this.updated()
|
|
|
this.getHotelCategory()
|
|
|
+ uni.getSystemInfo({
|
|
|
+ success:(res)=>{
|
|
|
+ this.screenWidth = res.screenWidth
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
methods: {
|
|
|
//获取筛选数据
|
| xqd
@@ -375,35 +394,9 @@
|
|
|
_this.getList()
|
|
|
},
|
|
|
fail: function(res) {
|
|
|
- console.log(res)
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
- //计算酒店距离我的位置--int
|
|
|
- calcDistanceFromHotel({x0,y0},{x1,y1}){
|
|
|
- //x0,y0是我的坐标(经纬度)
|
|
|
- //x1,y1是酒店坐标(经纬度)
|
|
|
- // console.log(x0,y0,x1,y1);
|
|
|
- return this.space(x0,y0,x1,y1);
|
|
|
- return Math.sqrt(Math.pow(Math.abs(x1-x0),2)+Math.pow(Math.abs(y1-y0),2));//返回距离
|
|
|
- },
|
|
|
- //遍历所有酒店,并计算出酒店分别与我的距离--数组
|
|
|
- setEachHotelDistance(hotelArray=[],{x0,y0}){
|
|
|
- hotelArray.map(item=>{
|
|
|
- item.distanceToMe=this.calcDistanceFromHotel({x0,y0},{x1:item.longitude,y1:item.latitude})
|
|
|
- return item;
|
|
|
- })
|
|
|
- return hotelArray;
|
|
|
-
|
|
|
- },
|
|
|
- //筛选出距离我最近的酒店--对象
|
|
|
- getMinDistanceHotel({x0,y0}){
|
|
|
- this.markers=this.setEachHotelDistance(this.markers,{x0,y0});
|
|
|
- // this.markers.sort((prev,next)=>{
|
|
|
- // return prev.distanceToMe-next.distanceToMe;
|
|
|
- // })
|
|
|
- return this.markers[0];
|
|
|
- },
|
|
|
+ },
|
|
|
space(lat1, lng1, lat2, lng2) {
|
|
|
var radLat1 = lat1 * Math.PI / 180.0;
|
|
|
var radLat2 = lat2 * Math.PI / 180.0;
|
| xqd
@@ -420,54 +413,60 @@
|
|
|
this.$api.hotel.getHotelList({
|
|
|
page: 1
|
|
|
}).then(res => {
|
|
|
- // this.hotelListBase = res.data.data
|
|
|
- // this.hotelList = []
|
|
|
- // this.hotelListBase.forEach(item=>{
|
|
|
- // if(this.search.isActiveIds.find(item.category_id)){
|
|
|
- // this.hotelList.push(item)
|
|
|
- // }
|
|
|
- // })
|
|
|
- this.hotelList = res.data.data
|
|
|
- this.markers = this.hotelList.map(item=>{
|
|
|
- const distance =this.calcDistanceFromHotel({x0:this.latitude, y0:this.longitude}, {x1:item.latitude,y1:item.longitude}).toFixed(1);
|
|
|
- item.distance = distance;
|
|
|
+ this.hotelList = res.data.data.map(item=>{
|
|
|
return {
|
|
|
- id:item.id,
|
|
|
- latitude: item.latitude,
|
|
|
- longitude: item.longitude,
|
|
|
- width:'34rpx',
|
|
|
- height:'40rpx',
|
|
|
- iconPath:'../../static/icon/late02.png' ,
|
|
|
- distance: distance,
|
|
|
- active: {
|
|
|
- width: '90rpx',
|
|
|
- height: '100rpx',
|
|
|
- iconPath: item.logo,
|
|
|
- },
|
|
|
- noActive:{
|
|
|
+ ...item,
|
|
|
+ marker:{
|
|
|
+ id:item.id,
|
|
|
+ latitude: item.latitude,
|
|
|
+ longitude: item.longitude,
|
|
|
width:'34rpx',
|
|
|
height:'40rpx',
|
|
|
iconPath:'../../static/icon/late02.png' ,
|
|
|
- },
|
|
|
- callout1: {
|
|
|
- content:item.name,
|
|
|
- borderRadius: 10,
|
|
|
- padding: 10,
|
|
|
- display: "ALWAYS",
|
|
|
- }
|
|
|
+ active: {
|
|
|
+ width: '90rpx',
|
|
|
+ height: '100rpx',
|
|
|
+ iconPath: item.logo,
|
|
|
+ },
|
|
|
+ noActive:{
|
|
|
+ width:'34rpx',
|
|
|
+ height:'40rpx',
|
|
|
+ iconPath:'../../static/icon/late02.png' ,
|
|
|
+ },
|
|
|
+ callout1: {
|
|
|
+ content:item.name,
|
|
|
+ borderRadius: 10,
|
|
|
+ padding: 10,
|
|
|
+ display: "ALWAYS",
|
|
|
+ },
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
- console.log(this.markers, '----->markers')
|
|
|
- let mylongitude = this.longitude
|
|
|
- let mylatitude = this.latitude
|
|
|
- let a = this.getMinDistanceHotel({x0:mylongitude,y0:mylatitude})
|
|
|
- console.log(a,'----->最近酒店');
|
|
|
+ this.hotelList.map(item=>{
|
|
|
+ item.distanceToMe=this.space(this.latitude,this.longitude,item.latitude,item.longitude).toFixed(1);
|
|
|
+ return item;
|
|
|
+ })
|
|
|
+ this.hotelList.sort((prev,next)=>{
|
|
|
+ return prev.distanceToMe-next.distanceToMe;
|
|
|
+ })
|
|
|
+ console.log(this.hotelList[0].id)
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.$refs.map.markertap({markerId: this.hotelList[0].id})
|
|
|
+ }, 300)
|
|
|
+
|
|
|
})
|
|
|
},
|
|
|
//去预定页面
|
|
|
- goBook(id) {
|
|
|
+ goBook(index) {
|
|
|
+ if(!this.$store.getters.userInfo){
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/login/login'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ const hotel = this.hotelList[index];
|
|
|
+
|
|
|
uni.navigateTo({
|
|
|
- url: '/pages/map/hotel-book/index?hotel_id='+id
|
|
|
+ url: `/pages/map/hotel-book/index?hotel_id=${hotel.id}&latitude=${hotel.latitude}&longitude=${hotel.longitude}&name=${hotel.name}&address=${hotel.address}`
|
|
|
})
|
|
|
},
|
|
|
//返回上一级
|
| xqd
@@ -476,7 +475,6 @@
|
|
|
},
|
|
|
//打开酒店列表
|
|
|
goHotelList() {
|
|
|
- console.log(111);
|
|
|
this.isShow = !this.isShow
|
|
|
},
|
|
|
//是否展示加盟品牌
|
| xqd
@@ -489,7 +487,6 @@
|
|
|
},
|
|
|
//合作伙伴刷选
|
|
|
change(e) {
|
|
|
- console.log('e:', e);
|
|
|
},
|
|
|
//菜单index切换
|
|
|
checked(id,categoreName) {
|
| xqd
@@ -518,528 +515,37 @@
|
|
|
},
|
|
|
//下面酒店位移
|
|
|
moveToMarkId(markId){
|
|
|
- this.markers.forEach((item,index) => {
|
|
|
+ this.hotelList.forEach((item,index) => {
|
|
|
if(markId == item.id){
|
|
|
- this.scrolls.scrollX = ((496+16) * index) + 'rpx';
|
|
|
+ this.scrollData.spa = true;
|
|
|
+ this.scrolls.scrollX = (256 * index) - (this.screenWidth-256)/2 + 'px';
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.scrollData.spa = false
|
|
|
+ },500)
|
|
|
return;
|
|
|
- }
|
|
|
+ }
|
|
|
})
|
|
|
+ },
|
|
|
+ bottomScroll(e){
|
|
|
+ if(this.scrollData.spa) return;
|
|
|
+ const moveX = e.detail.scrollLeft;
|
|
|
+ const index = Math.floor((moveX + this.screenWidth) / 256) - 1;
|
|
|
+ if(this.$refs.map.isActiveMarker == this.hotelList[index].id) return;
|
|
|
+ this.$refs.map.markertap({markerId: this.hotelList[index].id}, false)
|
|
|
+ this.scrollData.spa = true;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.scrollData.spa = false;
|
|
|
+ }, 10)
|
|
|
+ },
|
|
|
+ scrollTolower(){
|
|
|
+ this.$refs.map.markertap({markerId: this.hotelList[this.hotelList.length-1].id}, false)
|
|
|
+ this.scrollData.spa = true;
|
|
|
+ setTimeout(()=>{
|
|
|
+ this.scrollData.spa = false;
|
|
|
+ }, 10)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
- page {
|
|
|
- height: 100%;
|
|
|
- }
|
|
|
-
|
|
|
- .map {
|
|
|
- height: 100%;
|
|
|
- background-color: #f9f9f9;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- }
|
|
|
-
|
|
|
- .return-btn {
|
|
|
- position: fixed;
|
|
|
- right: 0;
|
|
|
- top: 927rpx;
|
|
|
- z-index: 99;
|
|
|
- }
|
|
|
-
|
|
|
- .home-bottom {
|
|
|
- height: 60rpx;
|
|
|
- background-color: #f9f9f9;
|
|
|
- }
|
|
|
-
|
|
|
- .hotel-list {
|
|
|
- width: 100%;
|
|
|
- background-color: #f9f9f9;
|
|
|
- padding: 32rpx 30rpx;
|
|
|
- padding-bottom: 200rpx;
|
|
|
-
|
|
|
- .hotel-list-item {
|
|
|
- width: 100%;
|
|
|
- margin-bottom: 20rpx;
|
|
|
-
|
|
|
- .wrap {
|
|
|
- width: 100%;
|
|
|
- height: 318rpx;
|
|
|
- position: relative;
|
|
|
- box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.08);
|
|
|
- border-radius: 10rpx;
|
|
|
-
|
|
|
- .inner {
|
|
|
- width: 100%;
|
|
|
- height: 318rpx;
|
|
|
- border-radius: 10rpx;
|
|
|
- position: absolute;
|
|
|
- z-index: 2;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
-
|
|
|
- .address-detail-main {
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- bottom: 30rpx;
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: flex-end;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
- .address-detail-main-left {
|
|
|
- position: absolute;
|
|
|
- left: 20rpx;
|
|
|
-
|
|
|
- .title {
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
-
|
|
|
- .content {
|
|
|
- margin: 12rpx 0 20rpx;
|
|
|
- width: 92rpx;
|
|
|
- height: 34rpx;
|
|
|
- background: rgba(142, 160, 166, .6);
|
|
|
- border-radius: 17rpx;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 22rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- }
|
|
|
-
|
|
|
- .bottom {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: flex-start;
|
|
|
-
|
|
|
- .bottom-left {
|
|
|
- font-size: 24rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #ffffff;
|
|
|
- margin-right: 6rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .bottom-right {
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .address-detail-main-right {
|
|
|
- position: absolute;
|
|
|
- right: 24rpx;
|
|
|
- width: 120rpx;
|
|
|
- height: 44rpx;
|
|
|
- background: #FF6300;
|
|
|
- box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.08);
|
|
|
- border-radius: 22rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .address-detail-position {
|
|
|
- position: absolute;
|
|
|
- top: 22rpx;
|
|
|
- right: 24rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-weight: 500;
|
|
|
- color: #FFFFFF;
|
|
|
- font-size: 20rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .search-detail {
|
|
|
- width: 100%;
|
|
|
- position: absolute;
|
|
|
- top: 88rpx;
|
|
|
- z-index: 999 !important;
|
|
|
- background-color: #ffffff;
|
|
|
- box-shadow: 0px 12rpx 16rpx 0px rgba(220, 222, 229, 0.4);
|
|
|
- padding: 20rpx 30rpx 20rpx;
|
|
|
-
|
|
|
- .partner {
|
|
|
- .partner-top {
|
|
|
- height: 88rpx;
|
|
|
- border-top: 2rpx solid #F0F0F0;
|
|
|
- border-bottom: 2rpx solid #F0F0F0;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- color: #333;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .partner-main {
|
|
|
- margin-top: 32rpx;
|
|
|
-
|
|
|
- ::v-deep .uni-data-checklist .checklist-group .checklist-box {
|
|
|
- width: 26%;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .uni-data-checklist .checklist-group .checklist-box .checkbox__inner {
|
|
|
- width: 48rpx;
|
|
|
- height: 48rpx;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .uni-data-checklist .checklist-group .checklist-box .checkbox__inner .checkbox__inner-icon {
|
|
|
- top: 6rpx !important;
|
|
|
- left: 17rpx !important;
|
|
|
- height: 24rpx !important;
|
|
|
- width: 15rpx !important;
|
|
|
- border-right-color: #ff6200;
|
|
|
- border-bottom-color: #ff6200;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checklist-text {
|
|
|
- color: #666 !important;
|
|
|
- font-size: 24rpx !important;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .checklist-text {
|
|
|
- font-size: 24rpx !important;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .uni-data-checklist .checklist-group .checklist-box.is--default.is-checked .checkbox__inner {
|
|
|
- border-color: #EDEDED !important;
|
|
|
- background-color: #ffffff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .search-detail-area {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- flex-wrap: wrap;
|
|
|
- justify-content: flex-start;
|
|
|
- align-items: center;
|
|
|
-
|
|
|
- .areaTitle {
|
|
|
- width: 156rpx;
|
|
|
- height: 56rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- border: 2rpx solid #EDEDED;
|
|
|
- border-radius: 28rpx;
|
|
|
- font-size: 28rpx;
|
|
|
- color: #666;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- margin-right: 20rpx;
|
|
|
- margin-bottom: 18rpx;
|
|
|
-
|
|
|
- &:nth-child(4n) {
|
|
|
- margin-right: 0;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- // .areaTitle-item {
|
|
|
- // width: 156rpx;
|
|
|
- // height: 56rpx;
|
|
|
- // background-color: #F1F1F1;
|
|
|
- // border-radius: 26rpx;
|
|
|
- // font-size: 24rpx;
|
|
|
- // color: #999;
|
|
|
- // display: flex;
|
|
|
- // justify-content: center;
|
|
|
- // align-items: center;
|
|
|
- // }
|
|
|
- .active-area {
|
|
|
- width: 156rpx;
|
|
|
- height: 56rpx;
|
|
|
- border-radius: 28rpx;
|
|
|
- background-color: #FF6200;
|
|
|
- color: #fff;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .search-detail-btn {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- margin: 38rpx 0 20rpx;
|
|
|
-
|
|
|
- .search-detail-btn-left {
|
|
|
- flex: 1;
|
|
|
- height: 76rpx;
|
|
|
- background: rgba(237, 237, 237, .55);
|
|
|
- border-radius: 8rpx;
|
|
|
- color: #999999;
|
|
|
- font-size: 30rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-weight: bold;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .search-detail-btn-right {
|
|
|
- flex: 1;
|
|
|
- height: 76rpx;
|
|
|
- background: linear-gradient(270deg, #FF6200 0%, #FF9342 100%);
|
|
|
- border-radius: 8rpx;
|
|
|
- color: #FFFFFF;
|
|
|
- font-size: 30rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-left: 22rpx;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .u-input {
|
|
|
- width: 690rpx !important;
|
|
|
- height: 68rpx !important;
|
|
|
- background: #F1F1F1;
|
|
|
- border-radius: 74rpx;
|
|
|
- }
|
|
|
-
|
|
|
- ::v-deep .u-input__content__field-wrapper {
|
|
|
- padding-left: 36rpx;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- .search-top {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- }
|
|
|
-
|
|
|
- .search {
|
|
|
- position: relative;
|
|
|
- flex: none;
|
|
|
- width: 100%;
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0px 12rpx 16rpx 0px rgba(220, 222, 229, 0.4);
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: inherit;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
- .search-loupe {
|
|
|
- flex: none;
|
|
|
- width: 60rpx;
|
|
|
- height: 60rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 50%;
|
|
|
- border: 2rpx solid #EDEDED;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-right: 16rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .search-area-all {
|
|
|
- flex: 1;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: flex-start;
|
|
|
-
|
|
|
- .search-areaClick {
|
|
|
- padding: 12rpx 22rpx;
|
|
|
- height: 52rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 26rpx;
|
|
|
- border: 2rpx solid #FF6200;
|
|
|
- font-weight: 500;
|
|
|
- color: #FF6200;
|
|
|
- font-size: 28rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-right: 16rpx;
|
|
|
-
|
|
|
- text {
|
|
|
- margin-right: 8rpx;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .search-area {
|
|
|
- padding: 12rpx 22rpx;
|
|
|
- height: 52rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 26rpx;
|
|
|
- border: 2rpx solid #EDEDED;
|
|
|
- font-weight: 500;
|
|
|
- color: #666666;
|
|
|
- font-size: 28rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- margin-right: 16rpx;
|
|
|
-
|
|
|
- text {
|
|
|
- margin-right: 8rpx;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .address-nav {
|
|
|
- position: absolute;
|
|
|
- width: 100%;
|
|
|
- bottom: 34rpx;
|
|
|
- padding: 0 16rpx;
|
|
|
- display: flex;
|
|
|
- flex-direction: column;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- overflow-x: scroll;
|
|
|
-
|
|
|
- .address-nav-btn {
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: space-between;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .address {
|
|
|
- flex: 1;
|
|
|
- position: relative;
|
|
|
-
|
|
|
-
|
|
|
- .address-detail {
|
|
|
- display: inline-block;
|
|
|
- position: relative;
|
|
|
- flex: none;
|
|
|
- width: 496rpx;
|
|
|
- height: 318rpx;
|
|
|
- border-radius: 10rpx;
|
|
|
- margin-right: 16rpx;
|
|
|
-
|
|
|
- &:last-child {
|
|
|
- margin-right: 0rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .mark{
|
|
|
- height: inherit;
|
|
|
- width: inherit;
|
|
|
-
|
|
|
- image{
|
|
|
- width: 100%;
|
|
|
- height:100%;
|
|
|
- border-radius: 10rpx;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .inner {
|
|
|
- width: 100%;
|
|
|
- height: inherit;
|
|
|
- border-radius: 10rpx;
|
|
|
- position: absolute;
|
|
|
- z-index: 2;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
-
|
|
|
- .address-detail-main {
|
|
|
- position: absolute;
|
|
|
- left: 0;
|
|
|
- bottom: 30rpx;
|
|
|
- width: 100%;
|
|
|
- display: flex;
|
|
|
- align-items: flex-end;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
-
|
|
|
- .address-detail-main-left {
|
|
|
- position: absolute;
|
|
|
- left: 20rpx;
|
|
|
-
|
|
|
- .title {
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #FFFFFF;
|
|
|
- }
|
|
|
-
|
|
|
- .content {
|
|
|
- margin: 12rpx 0 20rpx;
|
|
|
- width: 92rpx;
|
|
|
- height: 34rpx;
|
|
|
- background: rgba(142, 160, 166, .6);
|
|
|
- border-radius: 17rpx;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 22rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- }
|
|
|
-
|
|
|
- .bottom {
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: flex-start;
|
|
|
-
|
|
|
- .bottom-left {
|
|
|
- font-size: 24rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #ffffff;
|
|
|
- margin-right: 6rpx;
|
|
|
- }
|
|
|
-
|
|
|
- .bottom-right {
|
|
|
- font-size: 32rpx;
|
|
|
- font-weight: bold;
|
|
|
- color: #ffffff;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .address-detail-main-right {
|
|
|
- position: absolute;
|
|
|
- right: 24rpx;
|
|
|
- width: 120rpx;
|
|
|
- height: 44rpx;
|
|
|
- background: #FF6300;
|
|
|
- box-shadow: 0px 4rpx 8rpx 0px rgba(0, 0, 0, 0.08);
|
|
|
- border-radius: 22rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- color: #ffffff;
|
|
|
- font-size: 28rpx;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .address-detail-position {
|
|
|
- position: absolute;
|
|
|
- top: 22rpx;
|
|
|
- right: 24rpx;
|
|
|
- display: flex;
|
|
|
- align-items: center;
|
|
|
- justify-content: center;
|
|
|
- font-weight: 500;
|
|
|
- color: #FFFFFF;
|
|
|
- font-size: 20rpx;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-</style>
|
|
|
+<style lang="scss" src="./map.scss" scoped></style>
|