地图问题修复

This commit is contained in:
aixianling
2021-12-21 16:40:02 +08:00
parent 2d81852c6f
commit 633d85de91
3 changed files with 295 additions and 364 deletions

View File

@@ -10,7 +10,7 @@
<p class="address">{{item.createAddress}}</p> <p class="address">{{item.createAddress}}</p>
<span class="status" :class="'color'+item.locationStatus">{{$dict.getLabel('BuildLocationStatus', item.locationStatus)}}</span> <span class="status" :class="'color'+item.locationStatus">{{$dict.getLabel('BuildLocationStatus', item.locationStatus)}}</span>
</div> </div>
<div class="item-btn" v-if="item.locationStatus != 1" @click="toMap(item.communityId, item.areaId)"> <div class="item-btn" v-if="item.locationStatus != 1" @click="toMap(item.id, item.areaId)">
<span>去定位</span> <span>去定位</span>
</div> </div>
</div> </div>
@@ -68,7 +68,7 @@ export default {
params: {id, areaId} params: {id, areaId}
}) })
} }
}, },
onReachBottom() { onReachBottom() {
this.current++; this.current++;
@@ -85,7 +85,7 @@ export default {
.item{ .item{
width: 100%; width: 100%;
background: #FFF; background: #FFF;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.02); box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.02);
border-radius: 8px; border-radius: 8px;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
@@ -159,4 +159,4 @@ export default {
} }
} }
} }
</style> </style>

View File

@@ -4,7 +4,7 @@
<img src="./img/model-icon.png" alt="" @click="toDetail"> 楼栋<br/>模型 <img src="./img/model-icon.png" alt="" @click="toDetail"> 楼栋<br/>模型
</div> </div>
<div class="map-content"> <div class="map-content">
<AiTMap :areaId="areaId" :map.sync="map" :lib.sync="lib" :ops="ops" :libraries="['service', 'tools']"></AiTMap> <AiTMap :areaId="user.areaId" :map.sync="map" :lib.sync="lib" :ops="ops" :libraries="['service', 'tools']"></AiTMap>
</div> </div>
<div class="footer"> <div class="footer">
<div class="click" @click="isFlag=true">点击定位</div> <div class="click" @click="isFlag=true">点击定位</div>
@@ -48,54 +48,62 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default { export default {
props: ['params'], props: ['params'],
data() { data() {
return { return {
areaId: '',
ops: {}, ops: {},
lib: '', lib: null,
map: null, map: null,
markerLayer: '', markerLayer: '',
isFlag: false, isFlag: false,
latLng: {lat: '', lng: ''}, latLng: {lat: '', lng: ''},
retryTimes: 0
} }
}, },
computed: { ...mapState(['user']) }, computed: {...mapState(['user'])},
mounted() { mounted() {
this.areaId = this.params.areaId
this.initMap() this.initMap()
}, },
methods: { methods: {
initMap() { //初始化地图 initMap() { //初始化地图
this.$nextTick(() =>{ this.$nextTick(() => {
let {lib: TMap, map} = this let {lib: TMap, map, retryTimes} = this
map.on("click", (evt) => { if (map) {
if( this.markerLayer) { map.on("click", (evt) => {
this.markerLayer.setMap(null); if (this.markerLayer) {
} this.markerLayer.setMap(null);
this.markerLayer = new TMap.MultiMarker({
id: 'marker-layer',
map: map
});
if(this.isFlag) {
this.markerLayer.add({
position: evt.latLng
});
this.latLng = {
lat: evt.latLng.lat,
lng: evt.latLng.lng
} }
}
this.markerLayer = new TMap.MultiMarker({
}); id: 'marker-layer',
map: map
});
if (this.isFlag) {
this.markerLayer.add({
position: evt.latLng
});
this.latLng = {
lat: evt.latLng.lat,
lng: evt.latLng.lng
}
}
});
} else {
if (retryTimes < 5)
setTimeout(() => {
this.retryTimes++
this.initMap()
}, 1000)
}
}) })
}, },
confirm() { confirm() {
if(!this.latLng.lat) { if (!this.latLng.lat) {
return this.$u.toast(`未获取到定位信息,无法定位`) return this.$u.toast(`未获取到定位信息,无法定位`)
} }
@@ -122,22 +130,24 @@ export default {
params: this.params params: this.params
}) })
} }
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
uni-page-body{ uni-page-body {
height: 100%; height: 100%;
} }
.map { .map {
height: 100%; height: 100%;
.build-btn{
.build-btn {
width: 80px; width: 80px;
height: 160px; height: 160px;
background: #FFF; background: #FFF;
box-shadow: 0px 4px 8px 0px rgba(138, 138, 138, 0.5); box-shadow: 0 4px 8px 0 rgba(138, 138, 138, 0.5);
border-radius: 8px; border-radius: 8px;
position: fixed; position: fixed;
bottom: 136px; bottom: 136px;
@@ -150,17 +160,20 @@ uni-page-body{
font-weight: 500; font-weight: 500;
color: #666; color: #666;
line-height: 30px; line-height: 30px;
img{
img {
width: 48px; width: 48px;
height: 48px; height: 48px;
margin-bottom: 8px; margin-bottom: 8px;
} }
} }
.map-content{
.map-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.footer{
.footer {
width: 100%; width: 100%;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@@ -173,16 +186,18 @@ uni-page-body{
height: 112px; height: 112px;
line-height: 112px; line-height: 112px;
text-align: center; text-align: center;
.click{
.click {
flex: 1; flex: 1;
color: #333; color: #333;
background-color: #fff; background-color: #fff;
} }
.btn{
.btn {
flex: 2; flex: 2;
background: #1365DD; background: #1365DD;
color: #FFF; color: #FFF;
} }
} }
} }
</style> </style>

View File

@@ -7,18 +7,18 @@
<div class="clear-btn"> <div class="clear-btn">
<img src="./img/del-icon.png" alt="" class="del-icon" v-if="name" @click="clear"> <img src="./img/del-icon.png" alt="" class="del-icon" v-if="name" @click="clear">
</div> </div>
<span class="search-btn" @click="search">搜索</span> <span class="search-btn" @click="search">搜索</span>
</div> </div>
<div class="search-list" v-if="show" @click="show=false"> <div class="search-list" v-if="show" @click="show=false">
<div class="title border"> <div class="title border">
<img src="./img/search-icon.png" alt="" class="search-icon">{{name}} <img src="./img/search-icon.png" alt="" class="search-icon">{{ name }}
</div> </div>
<div class="item border" v-for="(item, index) in buildList" :key="index" @click.stop="getBuidInfo(item)"> <div class="item border" v-for="(item, index) in buildList" :key="index" @click.stop="getBuidInfo(item)">
<img src="./img/user-icon.png" alt="" class="search-icon user-icon"> <img src="./img/user-icon.png" alt="" class="search-icon user-icon">
<div class="item-content"> <div class="item-content">
<h3>{{item.residentName}}</h3> <h3>{{ item.residentName }}</h3>
<p>{{item.areaName || ''}}{{item.createAddress}}</p> <p>{{ item.areaName || '' }}{{ item.createAddress }}</p>
</div> </div>
</div> </div>
</div> </div>
@@ -26,24 +26,24 @@
<img src="./img/build-icon.png" alt=""> 楼栋<br/>列表 <img src="./img/build-icon.png" alt=""> 楼栋<br/>列表
</div> </div>
<div class="map-content"> <div class="map-content">
<AiTMap :areaId="areaId" :map.sync="map" :lib.sync="lib" :ops="ops" :libraries="['service', 'tools']"></AiTMap> <AiTMap :areaId="areaId" :map.sync="map" :lib.sync="lib" :ops="ops" :libraries="['service', 'tools']"/>
</div> </div>
<u-popup v-model="showPop" mode="bottom" border-radius="14"> <u-popup v-model="showPop" mode="bottom" border-radius="14">
<div class="popup" > <div class="popup">
<div class="bg"></div> <div class="bg"></div>
<div class="title">{{detailInfo.house.createAddress || ''}}</div> <div class="title">{{ detailInfo.house.createAddress || '' }}</div>
<p class="address">{{detailInfo.build.createAddress || ''}}</p> <p class="address">{{ detailInfo.build.createAddress || '' }}</p>
<div class="info-flex"> <div class="info-flex">
<span class="label">所属社区</span> <span class="label">所属社区</span>
<span class="value">{{detailInfo.build.areaName}}</span> <span class="value">{{ detailInfo.build.areaName }}</span>
</div> </div>
<div class="info-flex"> <div class="info-flex">
<span class="label">所属小区</span> <span class="label">所属小区</span>
<span class="value">{{detailInfo.build.communityName}}</span> <span class="value">{{ detailInfo.build.communityName }}</span>
</div> </div>
<div class="info-flex"> <div class="info-flex">
<span class="label">房屋类型</span> <span class="label">房屋类型</span>
<span class="value">{{$dict.getLabel('communityBuildingType', detailInfo.house.buildingType)}}</span> <span class="value">{{ $dict.getLabel('communityBuildingType', detailInfo.house.buildingType) }}</span>
</div> </div>
<div class="info-flex"> <div class="info-flex">
<span class="label">所属网格</span> <span class="label">所属网格</span>
@@ -55,8 +55,12 @@
</div> </div>
<div class="info-flex"> <div class="info-flex">
<span class="label">楼栋长</span> <span class="label">楼栋长</span>
<span class="value">{{detailInfo.build.managerName || ''}}&nbsp;&nbsp;{{detailInfo.build.managerPhone || ''}} <span
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(detailInfo.build.managerPhone)" class="phone-icon" v-if="detailInfo.build.managerPhone"> class="value">{{ detailInfo.build.managerName || '' }}&nbsp;&nbsp;{{
detailInfo.build.managerPhone || ''
}}
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(detailInfo.build.managerPhone)"
class="phone-icon" v-if="detailInfo.build.managerPhone">
</span> </span>
</div> </div>
</div> </div>
@@ -66,15 +70,16 @@
</template> </template>
<script> <script>
import { mapState } from 'vuex' import {mapState} from 'vuex'
export default {
export default {
data() { data() {
return { return {
latLngCenter: {}, latLngCenter: {},
areaId: '', areaId: '',
ops: {}, ops: {},
lib: '', lib: null,
map: null, map: null,
markerArr: [], markerArr: [],
show: false, show: false,
@@ -86,298 +91,162 @@ export default {
house: {}, house: {},
build: {} build: {}
}, },
showPop: false showPop: false,
retryMapCount: 0
} }
}, },
computed: { ...mapState(['user']) }, computed: {...mapState(['user'])},
mounted() { mounted() {
this.areaId = this.user.areaId this.areaId = this.user.areaId
this.getCenterLatLng() // Promise.all([this.getCenterLatLng(),this.getCommunityList()])
this.getCenterLatLng().then(points => {
this.getMarkerCluster(points)
})
},
created() {
this.$dict.load("communityBuildingType")
}, },
methods: { methods: {
initMap() {
this.$nextTick(() =>{
let {lib: TMap, map} = this
var ClusterBubbleClick;
this.ClusterBubble = function (options) {
TMap.DOMOverlay.call(this, options)
}
// this.ClusterBubble.prototype = new TMap.DOMOverlay();
// this.ClusterBubble.prototype.onInit = function (options) {
// this.content = options.content;
// this.position = options.position;
// }
// 创建点聚合
var markerCluster = new TMap.MarkerCluster({
id: 'cluster',
map: map,
enableDefaultStyle: false, // 关闭默认样式
minimumClusterSize: 3,
geometries: [{ // 点数组
position: new TMap.LatLng(39.953416, 116.480945)
},
{
position: new TMap.LatLng(39.984104, 116.407503)
},
{
position: new TMap.LatLng(39.908802, 116.497502)
},
{
position: new TMap.LatLng(40.040417, 116.373514)
},
{
position: new TMap.LatLng(39.953416, 116.380945)
},
{
position: new TMap.LatLng(39.984104, 116.307503)
},
{
position: new TMap.LatLng(39.908802, 116.397502)
},
{
position: new TMap.LatLng(40.040417, 116.273514)
},
],
zoomOnClick: true,
gridSize: 60,
averageCenter: false
});
var clusterBubbleList = [];
var markerGeometries = [];
var marker = null;
// 监听聚合簇变化
markerCluster.on('cluster_changed', function (e) {
// 销毁旧聚合簇生成的覆盖物
if (clusterBubbleList.length) {
clusterBubbleList.forEach(function (item) {
item.destroy();
})
clusterBubbleList = [];
}
markerGeometries = [];
// 根据新的聚合簇数组生成新的覆盖物和点标记图层
var clusters = markerCluster.getClusters();
clusters.forEach(function (item) {
if (item.geometries.length > 1) {
let clusterBubble = new this.ClusterBubble({
map,
position: item.center,
content: item.geometries.length,
});
clusterBubble.on('click', () => {
map.fitBounds(item.bounds);
});
clusterBubbleList.push(clusterBubble);
} else {
markerGeometries.push({
position: item.center
});
}
});
if (marker) {
// 已创建过点标记图层,直接更新数据
marker.setGeometries(markerGeometries);
} else {
// 创建点标记图层
console.log(markerGeometries)
marker = new TMap.MultiMarker({
id: 'marker-layer', // 图层id
map: map,
styles: {
// 点标注的相关样式
marker: new TMap.MarkerStyle({
width: 25,
height: 35,
anchor: { x: 16, y: 32 },
src:'',
}),
},
geometries: [
{
// 点标注数据数组
id: 'demo',
styleId: 'marker',
position: new TMap.LatLng(40.040422, 116.273521),
},
],
});
markerGeometries.map((item, index) => {
var html = `<div style=" display: inline-block;padding: 6px 10px;line-height: 16px;border-radius: 24px; background: #5088FF;color: #fff;font-size: 12px;position: relative;">`
+`腾讯大厦${index}<span style=" width: 0;height: 0;border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 12px solid #5088FF;position: absolute;bottom: -12px;left: 50%;margin-left:-6px;"></span></div>`
new TMap.InfoWindow(
{
map: map,
enableCustom: true,
position: new TMap.LatLng(item.position.lat, item.position.lng),
offset: { y: -70, x: -5 },
content: html
},
);
})
}
});
})
},
// // 以下代码为基于DOMOverlay实现聚合点气泡
// function ClusterBubble(options) {
// TMap.DOMOverlay.call(this, options);
// }
// ClusterBubble.prototype = new TMap.DOMOverlay();
// ClusterBubble.prototype.onInit = function (options) {
// this.content = options.content;
// this.position = options.position;
// };
// // 销毁时需要删除监听器
// ClusterBubble.prototype.onDestroy = function() {
// this.dom.removeEventListener('click', this.onClick);
// this.removeAllListeners();
// };
// ClusterBubble.prototype.onClick = function() {
// this.emit('click');
// };
// // 创建气泡DOM元素
// ClusterBubble.prototype.createDOM = function () {
// var dom = document.createElement('div');
// dom.classList.add('clusterBubble');
// dom.innerText = this.content;
// dom.style.cssText = [
// 'width: ' + (40 + parseInt(this.content) * 2) + 'px;',
// 'height: ' + (40 + parseInt(this.content) * 2) + 'px;',
// 'line-height: ' + (40 + parseInt(this.content) * 2) + 'px;',
// ].join(' ');
// // 监听点击事件实现zoomOnClick
// this.onClick = this.onClick.bind(this);
// // pc端注册click事件移动端注册touchend事件
// dom.addEventListener('click', this.onClick);
// return dom;
// };
// ClusterBubble.prototype.updateDOM = function () {
// if (!this.map) {
// return;
// }
// // 经纬度坐标转容器像素坐标
// let pixel = this.map.projectToContainer(this.position);
// // 使文本框中心点对齐经纬度坐标点
// let left = pixel.getX() - this.dom.clientWidth / 2 + 'px';
// let top = pixel.getY() - this.dom.clientHeight / 2 + 'px';
// this.dom.style.transform = `translate(${left}, ${top})`;
// this.emit('dom_updated');
// };
// window.ClusterBubble = ClusterBubble;
getCenterLatLng() { getCenterLatLng() {
this.$http.post(`/app/appdvcpconfig/getCorpLocation`, ).then(res => { return this.$http.post(`/app/appdvcpconfig/getCorpLocation`).then(res => {
if (res.code == 0) { if (res?.data) {
this.latLngCenter = res.data this.latLngCenter = res.data
this.getCommunityList() return this.getCommunityList()
} }
}) })
}, },
getCommunityList() { getCommunityList() {
this.$http.post('/app/appcommunitybuildinginfo/listByBuilding', null, { return this.$http.post('/app/appcommunitybuildinginfo/listByBuilding', null, {
params: { params: {
current: 1, current: 1,
size: 1000000, size: 1000000,
areaId: this.user.areaId areaId: this.user.areaId
} }
}).then(res => { }).then(res => {
if (res.code === 0) { if (res?.data) {
this.buildList = res.data this.buildList = res.data
const points = res.data.map(item => { return res.data.map(item => {
return { return {
...item,
lnglat: [item.lng, item.lat], lnglat: [item.lng, item.lat],
id: item.id,
corpId: item.corpId,
areaName:item.areaName,
buildingNumber: item.name || item.buildingNumber, buildingNumber: item.name || item.buildingNumber,
communityName:item.name || item.communityName, communityName: item.name || item.communityName,
} }
}) })
this.addMakert(points)
} }
}) })
}, },
addMakert(points) { getMarkerCluster(points) {
this.$nextTick(() =>{ let {lib: TMap, map, retryMapCount} = this
let {lib: TMap, map} = this if (map) {
var center = new TMap.LatLng(this.latLngCenter.lat, this.latLngCenter.lng) map.setCenter(this.latLngCenter)
map.setCenter(center) let MarkerCluster = new TMap.MarkerCluster({
var marker = null; map, gridSize: 60,
map.setZoom(18) enableDefaultStyle: false, // 关闭默认样式
geometries: points?.map(e => ({
var geometriesList = [] position: new TMap.LatLng(e.lat, e.lng),
points.map((item) => { content: `${e.createAddress} | ${e.houseNum}`
item.position = new TMap.LatLng(item.lnglat[1], item.lnglat[0]) })) || [],
var info = { zoomOnClick: true
id: item.id, })
styleId: 'marker', let geometries = [], marker, markers = []
position: new TMap.LatLng(item.lnglat[1], item.lnglat[0]) MarkerCluster.on('cluster_changed', () => {
if (markers.length) {
markers.forEach(function (item) {
item.destroy();
})
markers = [];
}
geometries = []
let clusters = MarkerCluster.getClusters()
clusters.forEach((item) => {
if (item.geometries.length > 1) {
//聚合样式
geometries.push({
styleId: 'cluster',
position: item.center,
content: item.geometries.length.toString() || "0"
})
} else {
//点标记样式
// 以下代码为基于DOMOverlay实现聚合点气泡
function ClusterBubble(options) {
TMap.DOMOverlay.call(this, options);
}
ClusterBubble.prototype = new TMap.DOMOverlay();
ClusterBubble.prototype.onInit = function (options) {
this.content = options.content;
this.position = options.position;
};
// 销毁时需要删除监听器
ClusterBubble.prototype.onDestroy = function () {
this.dom.removeEventListener('click', this.onClick);
this.removeAllListeners();
};
ClusterBubble.prototype.onClick = function () {
this.emit('click');
};
// 创建气泡DOM元素
ClusterBubble.prototype.createDOM = function () {
var dom = document.createElement('div');
dom.classList.add('marker');
dom.innerText = this.content;
// 监听点击事件实现zoomOnClick
this.onClick = this.onClick.bind(this);
// pc端注册click事件移动端注册touchend事件
dom.addEventListener('click', this.onClick);
return dom;
};
ClusterBubble.prototype.updateDOM = function () {
if (!this.map) {
return;
}
// 经纬度坐标转容器像素坐标
let pixel = this.map.projectToContainer(this.position);
// 使文本框中心点对齐经纬度坐标点
let left = pixel.getX() - this.dom.clientWidth / 2 + 'px';
let top = pixel.getY() - this.dom.clientHeight / 2 + 'px';
this.dom.style.transform = `translate(${left}, ${top})`;
this.emit('dom_updated');
};
let {content} = item.geometries?.[0] || {},
overlay = new ClusterBubble({map, position: item.center, content})
overlay.on('click', () => {
map.fitBounds(item.bounds);
})
markers.push(overlay)
}
});
if (marker) {
marker.setGeometries(geometries)
} else {
marker = new TMap.MultiMarker({
map, enableCollision: true, geometries,
styles: {
cluster: new TMap.MarkerStyle({
width: 48,
height: 48,
anchor: {x: 24, y: 24},
src: this.$cdn + "/map/cluster.png",
color: '#fff',
// direction: 'center',
size: 18
})
},
})
} }
geometriesList.push(info)
}) })
marker = new TMap.MultiMarker({ return Promise.resolve()
id: 'marker-layer', // 图层id } else {
map: map, if (retryMapCount < 5) {
styles: { setTimeout(() => {
// 点标注的相关样式 this.retryMapCount++
marker: new TMap.MarkerStyle({ return this.getMarkerCluster(points)
width: 25, }, 1000)
height: 35, } else Promise.reject("加载失败")
anchor: { x: 16, y: 32 }, }
src:'',
}),
},
geometries: geometriesList,
});
points.map((item) => {
var html = `<div style=" display: inline-block;padding: 6px 10px;line-height: 16px;border-radius: 24px; background: #5088FF;color: #fff;font-size: 12px;position: relative;">`
+`${item.communityName}${item.buildingNumber}栋<span style=" width: 0;height: 0;border-left: 6px solid transparent;border-right: 6px solid transparent;border-top: 12px solid #5088FF;position: absolute;bottom: -12px;left: 50%;margin-left:-6px;"></span></div>`
new TMap.InfoWindow(
{
map: map,
enableCustom: true,
position: item.position,
offset: { y: -70, x: -5 },
content: html
},
);
})
})
}, },
clear() { clear() {
this.name = '' this.name = ''
@@ -400,36 +269,34 @@ export default {
lnglat: [item.lng, item.lat], lnglat: [item.lng, item.lat],
id: item.id, id: item.id,
corpId: item.corpId, corpId: item.corpId,
areaName:item.areaName, areaName: item.areaName,
buildingNumber: item.name || item.buildingNumber, buildingNumber: item.name || item.buildingNumber,
communityName:item.name || item.communityName, communityName: item.name || item.communityName,
} }
}) })
this.getMarkerCluster(points)
this.addMakert(points) } else {
}else {
this.show = false this.show = false
this.$u.toast('未搜索到结果,请换个关键字重试!') this.$u.toast('未搜索到结果,请换个关键字重试!')
} }
}) })
}, },
getBuidInfo(item) { getBuidInfo(item) {
this.$http.post(`/app/appcommunityhouseinfo/queryDetailByIdWithBuilding?buildId=${item.buildingId}&houseId=${item.id}`).then(res => { this.$http.post(`/app/appcommunityhouseinfo/queryDetailByIdWithBuilding?buildId=${item.buildingId}&houseId=${item.id}`).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.show = false this.show = false
this.showPop = true this.showPop = true
this.detailInfo = res.data this.detailInfo = res.data
} }
}) })
}, },
toList() { toList() {
console.log(122)
this.$emit('change', { this.$emit('change', {
type: 'List', type: 'List',
}) })
}, },
callPhone(phone) { callPhone(phone) {
uni.makePhoneCall({ phoneNumber: phone }) uni.makePhoneCall({phoneNumber: phone})
}, },
toDetail(id) { toDetail(id) {
this.$emit('change', { this.$emit('change', {
@@ -442,16 +309,14 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
uni-page-body{
height: 100%;
}
.searchMap { .searchMap {
height: 100%; height: 100vh;
.grid-input{
.grid-input {
width: 720px; width: 720px;
height: 88px; height: 88px;
background: #FFF; background: #FFF;
box-shadow: 0px 4px 8px 0px rgba(192, 185, 185, 0.5); box-shadow: 0 4px 8px 0 rgba(192, 185, 185, 0.5);
border-radius: 16px; border-radius: 16px;
position: fixed; position: fixed;
top: 24px; top: 24px;
@@ -459,12 +324,14 @@ uni-page-body{
z-index: 99999; z-index: 99999;
padding: 16px 20px; padding: 16px 20px;
box-sizing: border-box; box-sizing: border-box;
.search-icon{
.search-icon {
width: 48px; width: 48px;
height: 48px; height: 48px;
margin-right: 16px; margin-right: 16px;
} }
.input{
.input {
display: inline-block; display: inline-block;
padding: 8px 0; padding: 8px 0;
height: 32px; height: 32px;
@@ -474,24 +341,28 @@ uni-page-body{
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
color: #666; color: #666;
} }
.back-icon{
.back-icon {
width: 16px; width: 16px;
height: 32px; height: 32px;
margin-right: 24px; margin-right: 24px;
vertical-align: super; vertical-align: super;
} }
.clear-btn{
.clear-btn {
display: inline-block; display: inline-block;
width: 32px; width: 32px;
height: 32px; height: 32px;
margin-right: 30px; margin-right: 30px;
} }
.del-icon{
.del-icon {
width: 32px; width: 32px;
height: 32px; height: 32px;
vertical-align: super; vertical-align: super;
} }
.search-btn{
.search-btn {
display: inline-block; display: inline-block;
width: 80px; width: 80px;
height: 32px; height: 32px;
@@ -505,7 +376,8 @@ uni-page-body{
margin-top: 12px; margin-top: 12px;
} }
} }
.search-list{
.search-list {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 700px; height: 700px;
@@ -516,33 +388,39 @@ uni-page-body{
box-sizing: border-box; box-sizing: border-box;
background-color: #fff; background-color: #fff;
z-index: 99999; z-index: 99999;
.search-icon{
.search-icon {
width: 36px; width: 36px;
height: 36px; height: 36px;
margin-right: 16px; margin-right: 16px;
vertical-align: sub; vertical-align: sub;
} }
.title{
.title {
height: 82px; height: 82px;
line-height: 82px; line-height: 82px;
font-size: 26px; font-size: 26px;
font-family: MicrosoftYaHeiSemibold; font-family: MicrosoftYaHeiSemibold;
color: #1365DD; color: #1365DD;
} }
.item{
.item {
padding: 22px 0 24px 0; padding: 22px 0 24px 0;
} }
.item-content{
.item-content {
display: inline-block; display: inline-block;
width: 610px; width: 610px;
color: #333; color: #333;
h3{
h3 {
font-size: 28px; font-size: 28px;
font-family: MicrosoftYaHeiSemibold; font-family: MicrosoftYaHeiSemibold;
line-height: 32px; line-height: 32px;
margin-bottom: 8px; margin-bottom: 8px;
} }
p{
p {
width: 100%; width: 100%;
font-size: 24px; font-size: 24px;
font-family: MicrosoftYaHei; font-family: MicrosoftYaHei;
@@ -552,18 +430,21 @@ uni-page-body{
text-overflow: ellipsis; text-overflow: ellipsis;
} }
} }
.user-icon{
.user-icon {
vertical-align: top; vertical-align: top;
} }
.border{
.border {
border-bottom: 1px solid #DEDFE1; border-bottom: 1px solid #DEDFE1;
} }
} }
.build-btn{
.build-btn {
width: 80px; width: 80px;
height: 160px; height: 160px;
background: #FFF; background: #FFF;
box-shadow: 0px 4px 8px 0px rgba(138, 138, 138, 0.5); box-shadow: 0 4px 8px 0 rgba(138, 138, 138, 0.5);
border-radius: 8px; border-radius: 8px;
position: fixed; position: fixed;
bottom: 136px; bottom: 136px;
@@ -576,26 +457,31 @@ uni-page-body{
font-weight: 500; font-weight: 500;
color: #666; color: #666;
line-height: 30px; line-height: 30px;
img{
img {
width: 48px; width: 48px;
height: 48px; height: 48px;
margin-bottom: 8px; margin-bottom: 8px;
} }
} }
.map-content{
.map-content {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.popup{
.popup {
padding: 0 32px 16px; padding: 0 32px 16px;
.bg{
.bg {
width: 64px; width: 64px;
height: 10px; height: 10px;
background: #CCC; background: #CCC;
border-radius: 6px; border-radius: 6px;
margin: 32px 0 32px 344px; margin: 32px 0 32px 344px;
} }
.title{
.title {
font-size: 36px; font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC; font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800; font-weight: 800;
@@ -603,22 +489,26 @@ uni-page-body{
line-height: 50px; line-height: 50px;
margin-bottom: 24px; margin-bottom: 24px;
} }
.info-flex{
.info-flex {
padding: 26px 0 30px 0; padding: 26px 0 30px 0;
width: 100%; width: 100%;
border-bottom: 1px solid #D8DDE6; border-bottom: 1px solid #D8DDE6;
line-height: 40px; line-height: 40px;
font-size: 28px; font-size: 28px;
.label{
.label {
display: inline-block; display: inline-block;
width: 160px; width: 160px;
font-weight: 800; font-weight: 800;
color: #333; color: #333;
} }
.value{
.value {
color: #666; color: #666;
font-size: 26px; font-size: 26px;
.phone-icon{
.phone-icon {
width: 40px; width: 40px;
height: 40px; height: 40px;
vertical-align: sub; vertical-align: sub;
@@ -627,7 +517,8 @@ uni-page-body{
} }
} }
} }
.popup-btn{
.popup-btn {
width: 100%; width: 100%;
font-size: 32px; font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
@@ -638,5 +529,30 @@ uni-page-body{
background: #1365DD; background: #1365DD;
color: #FFF; color: #FFF;
} }
::v-deep.marker {
color: #fff;
background: #5088FF;
padding: 0 32px;
width: fit-content;
height: 56px;
border-radius: 52px;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
&:before {
content: " ";
display: block;
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 0;
transform: translate(-50%, 100%);
border: 12px solid transparent;
border-top-color: #5088FF;
}
}
} }
</style> </style>