持续集成分支

This commit is contained in:
aixianling
2024-10-31 14:34:57 +08:00
parent 6a833be062
commit 8c56cf808b
2165 changed files with 4116 additions and 8716 deletions

View File

@@ -0,0 +1,528 @@
<template>
<div class="detail">
<div class="top">
<AiPagePicker class="left" type="custom" @select="handleSelectGird"
:ops="{url:'./SelectGird',label: 'girdName'}">
<div class="gird-content">
<image src="./img/gird--select-icon.png" class="avatras"/>
<div class="label">{{ form.girdName || '网格选择' }}</div>
<u-icon name="arrow-right" color="#cccccc" size="26" style="margin-left:4px;"></u-icon>
</div>
</AiPagePicker>
<div class="grid-input">
<img src="./img/search-icon-w.png" class="search-icon">
<input class="input" placeholder="请输入网格名称" v-model="girdName" maxlength="20" confirm-type="search" @confirm="search"/>
<div class="clear-btn">
<img src="./img/del-icon.png" class="del-icon" v-if="girdName" @click="girdName = ''">
</div>
</div>
</div>
<div class="map-content">
<AiTMap ref="AiTMap" :map.sync="map" :lib.sync="lib" :libraries="['geometry','service', 'tools']"/>
</div>
<u-popup v-model="show" mode="bottom" border-radius="14">
<div class="popup">
<div class="bg"></div>
<div class="title">{{ form.girdName }}</div>
<scroll-view scroll-y="true" class="grid-info">
<div class="info-flex" v-for="(item, index) in form.girdMemberManageList" :key="index">
<span class="label">网格长</span>
<span class="value">
<AiOpenData v-if="item.name" type="userName" :openid="item.name"/>
<!-- &nbsp;&nbsp;{{ item.phone }}
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
v-if="item.phone"> -->
</span>
</div>
<div class="info-flex" v-for="(item, index) in form.girdMemberList" :key="index">
<span class="label">网格员</span>
<span class="value">
<AiOpenData v-if="item.name" type="userName" :openid="item.name"/>
<!-- &nbsp;&nbsp;{{ item.phone }}
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(item.phone)" class="phone-icon"
v-if="item.phone"> -->
</span>
</div>
<div class="info-flex" v-if="(form.girdMemberManageList && form.girdMemberManageList.length) || (form.girdMemberList && form.girdMemberList.length)">
<span class="label">管辖家庭</span>
<span class="value">{{ form.residentNum || 0 }}</span>
</div>
</scroll-view>
</div>
</u-popup>
<u-popup v-model="isShowGrid" mode="bottom" border-radius="14" height="60%">
<div class="grid-wrapper">
<div class="title">请选择网格</div>
<scroll-view scroll-y="true" class="grid-info">
<div
class="grid-item"
v-for="(item, index) in girdList"
@click="form.girdName = item.girdName, getGridList(item.id)"
:key="index">
{{ item.girdName }}
</div>
</scroll-view>
</div>
</u-popup>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
data() {
return {
areaId: '',
lib: null,
map: null,
show: false,
form: {girdName: '', id: ''},
treeList: [],
girdName: '',
showSelect: false,
editor: null,
polygons: [],
labels: [],
latLngCenter: [],
isShowGrid: false,
girdList: []
}
},
computed: {...mapState(['user'])},
created() {
this.areaId = this.user.areaId
uni.$on('goback', e => {
this.form.girdName = e.girdName
this.getGridList(e.id, true)
})
},
methods: {
handleSelectGird(v) {
this.form = v || {}
this.getGridList(v?.id, true)
},
toChoose() {
uni.navigateTo({
url: './SelectGird?isFormMap=1'
})
},
search () {
this.$loading()
this.$http.post(`/app/appgirdinfo/list?size=100&girdName=${this.girdName}`).then((res) => {
if (res.code === 0) {
if (res.data.records.length) {
this.girdList = res.data.records
this.isShowGrid = true
} else {
this.$u.toast('未查询到网格')
}
}
})
},
getLeafNodes() {
this.$http.post(`/app/appgirdinfo/queryGirdMemberGirdsById`).then((res) => {
if (res?.data) {
this.treeList = res.data
const arr = res.data.filter(v => v.points).map(e => {
return {
id: e.id,
girdName: e.girdName,
points: e.points.map(p => [p.lng, p.lat])
}
})
arr.length > 0 && this.renderGridMap(arr)
}
})
},
getGridList(id) {
this.$loading()
this.$http.post(`/app/appgirdinfo/queryChildGirdInfoByGirdId?girdId=${id}`).then((res) => {
if (res?.data) {
const arr = []
res.data.map(v => {
if (v.points) {
arr.push(
{
id: v.id,
girdName: v.girdName,
points: v.points ? v.points.map(p => [p.lng, p.lat]) : []
}
)
if (this.latLngCenter.length) {
} else {
this.latLngCenter.push(v.points[0].lat, v.points[0].lng)
}
}
})
if (!arr.filter(v => v.points).length) {
return this.$u.toast('该网格还未标会')
}
this.isShowGrid = false
this.renderGridMap(arr.filter(v => v.points))
}
}).catch(() => {
this.$hideLoading()
})
},
getGridInfo(id, flag) {
this.$loading()
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${id}`).then((res) => {
this.$hideLoading()
if (res?.data) {
this.form = res.data
if (res.data.points.length > 0 && flag) {
const arr = [{
id: res.data.id,
girdName: res.data.girdName,
points: res.data.points.map(p => [p.lng, p.lat])
}]
this.renderGridMap(arr)
}
this.$nextTick(() => {
!flag && (this.show = true)
})
}
}).catch(() => {
this.$hideLoading()
})
},
renderGridMap(paths, count = 0) {
let {map, lib: TMap, $refs: {AiTMap: {fitBounds}}} = this
if (TMap) {
if (this.latLngCenter.length) {
map.setCenter(this.latLngCenter)
this.map.setZoom(14)
}
if (this.polygons.length > 0) {
this.polygons.forEach(e => e.destroy())
this.labels.forEach(e => {
e.destroy(e.id)
})
this.polygons = []
this.labels = []
}
if (paths?.length > 0) {
let bounds = []
paths.forEach((path, i) => {
let polygon = new TMap.MultiPolygon({
map, styles: {
default: new TMap.PolygonStyle({
showBorder: true,
borderColor: '#5088FF',
borderWidth: 2,
color: this.$colorUtils.Hex2RGBA('#5088FF', 0.1)
})
},
id: path.id,
geometries: [{paths: path.points.map(e => new TMap.LatLng(e[1], e[0]))}]
})
this.polygons.push(polygon)
bounds.push(fitBounds(path.points.map(e => new TMap.LatLng(e[1], e[0]))))
polygon.on('click', e => {
const id = e.target.id
this.getGridInfo(id)
})
const points = path.points.map(e => new TMap.LatLng(e[1], e[0]))
var position = TMap.geometry.computeCentroid(points)
let label = new TMap.MultiLabel({
id: `label~${path.id}`,
data: path.id,
map: map,
styles: {
building: new TMap.LabelStyle({
color: '#3777FF',
size: 20,
alignment: 'center',
verticalAlignment: 'middle'
})
},
geometries: [
{
id: `label-class-${i}`,
styleId: 'building',
position: position,
content: path.girdName,
}
]
})
this.labels.push(label)
label.on('click', e => {
this.getGridInfo(e.target.id.split('~')[1])
});
})
bounds = bounds.reduce((a, b) => {
return fitBounds([
a.getNorthEast(),
a.getSouthWest(),
b.getNorthEast(),
b.getSouthWest(),
]);
});
map.fitBounds(bounds, {padding: 100})
} else {
// map.setCenter(this.config.latlng)
}
} else {
if (count < 5) {
setTimeout(() => {
this.renderGridMap(paths, ++count)
}, 1000)
}
}
},
callPhone(phone) {
uni.makePhoneCall({phoneNumber: phone})
},
handleSelect(e) {
if (e?.points?.length > 0) {
this.form = e
const points = e.points.map(e => new TMap.LatLng(e.lat, e.lng))
var position = TMap.geometry.computeCentroid(points)
this.map.setCenter(position)
this.map.setZoom(18)
} else {
this.$u.toast("所选网格没有标绘!")
}
},
}
}
</script>
<style lang="scss" scoped>
.detail {
height: 100%;
* {
box-sizing: border-box;
}
.grid-wrapper {
height: 100%;
overflow: hidden;
.title {
height: 80px;
line-height: 80px;
text-align: center;
color: #333;
font-size: 32px;
font-weight: 800;
}
scroll-view {
height: calc(100% - 80px);
}
.grid-item {
height: 80px;
line-height: 80px;
padding: 0 24px;
text-align: center;
color: #333;
font-size: 28px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-bottom: 1px solid #eee;
&:last-child {
border: none;
}
&:active {
background: #eee;
}
}
}
.top {
display: flex;
position: fixed;
align-items: center;
justify-content: space-between;
top: 96px;
left: 0;
z-index: 1111;
width: 100%;
height: 112px;
padding: 0 32px;
background: #FFF;
box-sizing: border-box;
.gird-content {
display: flex;
align-items: center;
image {
width: 32px;
height: 34px;
margin-right: 16px;
}
.label {
max-width: 120px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #666666;
font-size: 28px;
}
}
.left {
flex: 1;
}
}
.grid-input {
display: flex;
align-items: center;
width: 460px;
height: 64px;
background: #F5F5F5;
border-radius: 32px;
padding: 0 36px;
.search-icon {
width: 32px;
height: 32px;
margin-right: 16px;
}
.input {
flex: 1;
height: 64px;
width: 100%;
font-size: 28px;
color: #666;
}
.back-icon {
width: 16px;
height: 32px;
margin-right: 24px;
vertical-align: super;
}
.clear-btn {
width: 32px;
height: 32px;
}
.del-icon {
width: 32px;
height: 32px;
}
}
.map-content {
position: fixed;
top: 96px;
left: 0;
width: 100%;
height: calc(100vh - 96px);
}
.popup {
padding: 0 32px 16px;
.bg {
width: 64px;
height: 10px;
background: #CCC;
border-radius: 6px;
margin: 32px auto 32px auto;
}
.grid-info {
height: 800px;
}
.title {
font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333;
line-height: 50px;
margin-bottom: 24px;
}
.info-flex {
padding: 26px 0 30px 0;
width: 100%;
border-bottom: 1px solid #D8DDE6;
line-height: 40px;
font-size: 28px;
&:last-of-type {
border-bottom: none;
}
.label {
display: inline-block;
width: 160px;
font-weight: 800;
color: #333;
}
.value {
color: #666;
font-size: 26px;
.phone-icon {
width: 40px;
height: 40px;
vertical-align: sub;
margin-left: 16px;
}
div {
display: inline-block;
}
}
}
}
}
.footer {
width: 100%;
position: fixed;
bottom: 0;
left: 0;
z-index: 99999;
display: flex;
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
height: 112px;
line-height: 112px;
text-align: center;
.btn {
flex: 2;
background: #1365DD;
color: #FFF;
}
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 866 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 892 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -0,0 +1,719 @@
<template>
<div class="searchMap">
<div class="top">
<div class="grid-input">
<img src="./img/back-icon.png" alt="" class="back-icon" v-if="name && show" @click="show=false">
<img src="./img/search-icon-w.png" alt="" class="search-icon" v-else>
<input type="text" class="input" placeholder="请输入姓名、房屋信息" v-model="name" maxlength="10" confirm-type="search"
@confirm="search"/>
<div class="clear-btn">
<img src="./img/del-icon.png" alt="" class="del-icon" v-if="name" @click="clear">
</div>
</div>
</div>
<div class="build-btn" @click="toList()">
<img src="./img/build-icon.png" alt=""> 楼栋<br/>列表
</div>
<div class="map-content">
<AiTMap :map.sync="map" :lib.sync="lib" :ops="ops" :libraries="['service', 'tools']"/>
</div>
<u-popup v-model="showPop" mode="bottom" border-radius="14">
<div class="popup">
<div class="bg"></div>
<div class="title">{{ detailInfo.house.createAddress || '' }}</div>
<p class="address" v-if="detailInfo.community">{{ detailInfo.community.address || '' }}</p>
<div class="info-flex">
<span class="label">所属社区</span>
<span class="value">{{ detailInfo.build.areaName }}</span>
</div>
<div class="info-flex">
<span class="label">所属小区</span>
<span class="value">{{ detailInfo.build.communityName }}</span>
</div>
<div class="info-flex">
<span class="label">房屋类型</span>
<span class="value">{{ $dict.getLabel('communityBuildingType', detailInfo.house.buildingType) }}</span>
</div>
<div class="info-flex">
<span class="label">所属网格</span>
<span class="value" v-if="detailInfo.build && detailInfo.build.appGirdInfo">{{ detailInfo.build.appGirdInfo.girdName || '' }}</span>
</div>
<div class="info-flex">
<span class="label">网格管理员</span>
<span class="value" v-if="detailInfo.build.appGirdInfo && detailInfo.build.appGirdInfo.girdMemberNames && detailInfo.build.appGirdInfo.girdMemberNames.length">
<span v-for="(item, index) in detailInfo.build.appGirdInfo.girdMemberNames" :key="index">
<AiOpenData v-if="item" type="userName" :openid="item" style="display:inline-block;" /><span v-if="index<detailInfo.build.appGirdInfo.girdMemberNames.length-1">,</span>
</span>
</span>
</div>
<div class="info-flex">
<span class="label">楼栋长</span>
<span
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>
</div>
</div>
<div class="popup-btn" @click="toDetail(detailInfo.build.id)">查看楼栋模型</div>
</u-popup>
<u-popup v-model="buildPopup" mode="bottom" border-radius="14">
<div class="popup">
<div class="bg"/>
<div class="title">{{ building.createAddress || '' }}</div>
<div class="info-flex">
<span class="label">所属社区</span>
<span class="value">{{ building.areaName }}</span>
</div>
<div class="info-flex">
<span class="label">所属小区</span>
<span class="value">{{ building.communityName }}</span>
</div>
<div class="info-flex">
<span class="label">房屋类型</span>
<span class="value">{{ $dict.getLabel('communityBuildingType', building.buildingType) }}</span>
</div>
<div class="info-flex">
<span class="label">所属网格</span>
<span class="value" v-text="building.girdName||''"/>
</div>
<div class="info-flex">
<span class="label">网格管理员</span>
<span class="value">
<span v-for="(item, index) in building.girdMemberNames" :key="index">
<AiOpenData v-if="item" type="userName" :openid="item" style="display:inline-block;" /><span v-if="index<building.girdMemberNames.length-1">,</span>
</span>
</span>
</div>
<div class="info-flex">
<span class="label">楼栋长</span>
<span
class="value">{{ building.managerName || '' }}
&nbsp;&nbsp;{{ building.managerPhone || '' }}
<img :src="$cdn + 'common/phone.png'" alt="" @click="callPhone(detailInfo.build.managerPhone)"
class="phone-icon" v-if="detailInfo.build.managerPhone">
</span>
</div>
</div>
<div class="popup-btn" @click="toDetail(building.id)">查看楼栋模型</div>
</u-popup>
<u-popup v-model="show" mode="bottom" border-radius="14" height="70%">
<div class="grid-wrapper">
<div class="title">请选择居民</div>
<scroll-view scroll-y="true" class="grid-info">
<div
class="grid-item"
v-for="(item, index) in buildList"
@click="getBuildingInfo(item)"
:key="index">
<image src="./img/user-icon.png" />
<div class="right">
<h3>{{ item.residentName }}</h3>
<p>{{ item.areaName || '' }}{{ item.createAddress }}</p>
</div>
</div>
</scroll-view>
</div>
</u-popup>
</div>
</template>
<script>
import {mapState} from 'vuex'
export default {
name:"searchMap",
data() {
return {
ops: {},
lib: null,
map: null,
markerArr: [],
show: false,
value: '',
form: {girdName: '', id: ''},
ClusterBubble: null,
name: '',
buildList: [],
detailInfo: {
house: {},
build: {},
community: {},
gird: {}
},
showPop: false,
retryMapCount: 0,
building: {},
isShowGrid: false,
buildPopup: false
}
},
computed: {...mapState(['user', 'wxwork'])},
mounted() {
this.getCommunityList().then(points => {
this.getMarkerCluster(points)
})
},
onShow() {
document.title = "以房找人"
},
created() {
this.$dict.load("communityBuildingType")
},
methods: {
handleSelectGird(v) {
this.form = v || {}
// this.getGridList(v?.id, true)
},
getCommunityList() {
return this.$http.post('/app/appcommunitybuildinginfo/listByBuilding', null, {
params: {
current: 1,
size: 1000000,
}
}).then(res => {
if (res?.data) {
this.buildList = res.data
return res.data.map(item => {
return {
...item,
lnglat: [item.lng, item.lat],
buildingNumber: item.name || item.buildingNumber,
communityName: item.name || item.communityName,
}
})
}
})
},
getMarkerCluster(points, count = 0) {
let {lib: TMap, map} = this
if (map) {
let MarkerCluster = new TMap.MarkerCluster({
map, gridSize: 60,
enableDefaultStyle: false, // 关闭默认样式
geometries: points?.map(e => ({
position: new TMap.LatLng(e.lat, e.lng),
content: `${e.createAddress} | ${e.houseNum}`,
properties: {...e}
})) || [],
zoomOnClick: true
})
let geometries = [], marker, markers = []
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,
properties: {...item},
content: item.geometries.length?.toString() || "0"
})
} else {
//点标记样式
// 创建气泡DOM元素
class ClusterBubble extends TMap.DOMOverlay {
constructor(options) {
super(options);
}
onInit(options) {
this.content = options.content;
this.position = options.position;
};
onDestroy() {
this.dom.removeEventListener('click', this.onClick);
this.removeAllListeners();
}
createDOM() {
let 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);
dom.addEventListener('touchend', this.onClick);
return dom;
};
updateDOM() {
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');
};
onClick() {
this.emit('click');
}
}
let {content} = item.geometries?.[0] || {},
overlay = new ClusterBubble({map, position: item.center, content})
overlay.on('click', () => {
this.buildPopup = true
this.building = item.geometries?.[0]?.properties || {}
this.building.girdMemberNames = this.building.girdMemberNames.split(',')
// if(item.geometries[0].properties.id) {
// this.$http.post(`/app/appcommunitybuildinginfo/queryBuildingInfo?buildingId=${item.geometries[0].properties.id}`).then(res => {
// this.building = res.data
// this.building.girdMemberNames = this.building.girdMemberNames.split(',')
// this.buildPopup = true
// })
// }
})
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
})
},
})
marker.on('click', (e) => {
let {bounds} = e.geometry.properties
map.fitBounds(bounds)
})
}
})
return Promise.resolve()
} else {
if (count < 5) {
setTimeout(() => {
return this.getMarkerCluster(points, ++count)
}, 1000)
} else Promise.reject("加载失败")
}
},
clear() {
this.name = ''
},
search() {
this.buildList = []
this.$loading()
this.$http.post('/app/appcommunityhouseinfo/queryHouseByNameBySize', null, {
params: {
current: 1,
size: 20,
name: this.name
}
}).then(res => {
if (res.code == 0 && res.data.length) {
this.show = true
this.buildList = res.data
const points = res.data.map(item => {
if(item.lng && item.lat) {
return {
lnglat: [item.lng, item.lat],
id: item.id,
corpId: item.corpId,
areaName: item.areaName,
buildingNumber: item.name || item.buildingNumber,
communityName: item.name || item.communityName,
}
}
})
this.getMarkerCluster(points)
} else {
this.show = false
this.$u.toast('未搜索到结果,请换个关键字重试!')
}
})
},
getBuildingInfo(item) {
this.$http.post(`/app/appcommunityhouseinfo/queryDetailByIdWithBuilding?buildId=${item.buildingId}&houseId=${item.id}`).then(res => {
if (res?.data) {
this.detailInfo = {...res.data}
if(this.detailInfo.build.appGirdInfo && this.detailInfo.build.appGirdInfo.girdMemberNames && this.detailInfo.build.appGirdInfo.girdMemberNames) {
this.detailInfo.build.appGirdInfo.girdMemberNames = this.detailInfo.build.appGirdInfo.girdMemberNames.split(',')
}
this.show = false
this.showPop = true
}
})
},
toList() {
uni.navigateTo({url: './list'})
},
callPhone(phone) {
uni.makePhoneCall({phoneNumber: phone})
},
toDetail(id) {
uni.navigateTo({url: `./detail?id=${id}`})
}
}
}
</script>
<style lang="scss" scoped>
.searchMap {
height: 100vh;
* {
box-sizing: border-box;
}
.grid-wrapper {
height: 100%;
overflow: hidden;
.title {
height: 80px;
line-height: 80px;
text-align: center;
color: #333;
font-size: 32px;
font-weight: 800;
}
scroll-view {
height: calc(100% - 80px);
}
.grid-item {
display: flex;
align-items: center;
padding: 20px 24px;
color: #333;
font-size: 28px;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
border-bottom: 1px solid #eee;
image {
width: 50px;
height: 50px;
margin-right: 16px;
}
.right {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
h2 {
margin-bottom: 12px;
color: #333;
font-size: 30px;
font-weight: 600;
}
p {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #666;
}
}
&:last-child {
border: none;
}
&:active {
background: #eee;
}
}
}
.top {
display: flex;
position: fixed;
align-items: center;
justify-content: space-between;
top: 96px;
left: 0;
z-index: 1111;
width: 100%;
height: 112px;
padding: 0 32px;
background: #FFF;
box-sizing: border-box;
.gird-content {
display: flex;
align-items: center;
image {
width: 32px;
height: 34px;
margin-right: 16px;
}
.label {
max-width: 120px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #666666;
font-size: 28px;
}
}
.left {
flex: 1;
}
}
.grid-input {
display: flex;
align-items: center;
width: 100%;
height: 64px;
background: #F5F5F5;
border-radius: 32px;
padding: 0 36px;
.search-icon {
width: 32px;
height: 32px;
margin-right: 16px;
}
.input {
flex: 1;
height: 64px;
width: 100%;
font-size: 28px;
color: #666;
}
.back-icon {
width: 16px;
height: 32px;
margin-right: 24px;
vertical-align: super;
}
.clear-btn {
width: 32px;
height: 32px;
}
.del-icon {
width: 32px;
height: 32px;
}
}
.search-list {
position: fixed;
width: 100%;
height: calc(100% - 130px);
overflow-y: scroll;
top: 128px;
left: 0;
box-sizing: border-box;
z-index: 99999;
.search-icon {
width: 36px;
height: 36px;
margin-right: 16px;
vertical-align: sub;
}
.title {
height: 82px;
line-height: 82px;
font-size: 26px;
font-family: MicrosoftYaHeiSemibold;
color: #1365DD;
padding-left: 44px;
background-color: #fff;
}
.item {
padding: 22px 44px 24px 44px;
background-color: #fff;
}
.item-content {
display: inline-block;
width: 610px;
color: #333;
h3 {
font-size: 28px;
font-family: MicrosoftYaHeiSemibold;
line-height: 32px;
margin-bottom: 8px;
}
p {
width: 100%;
font-size: 24px;
font-family: MicrosoftYaHei;
line-height: 32px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
.user-icon {
vertical-align: top;
}
.border {
border-bottom: 1px solid #DEDFE1;
}
}
.build-btn {
width: 80px;
height: 160px;
background: #FFF;
box-shadow: 0 4px 8px 0 rgba(138, 138, 138, 0.5);
border-radius: 8px;
position: fixed;
bottom: 136px;
right: 24px;
z-index: 99999;
padding: 16px 16px 0;
box-sizing: border-box;
font-size: 24px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #666;
line-height: 30px;
img {
width: 48px;
height: 48px;
margin-bottom: 8px;
}
}
.map-content {
position: fixed;
top: 96px;
left: 0;
width: 100%;
height: calc(100vh - 96px);
}
.popup {
padding: 0 32px 16px;
.bg {
width: 64px;
height: 10px;
background: #CCC;
border-radius: 6px;
margin: 32px 0 32px 344px;
}
.title {
font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333;
line-height: 50px;
margin-bottom: 24px;
}
.info-flex {
padding: 26px 0 30px 0;
width: 100%;
border-bottom: 1px solid #D8DDE6;
line-height: 40px;
font-size: 28px;
.label {
display: inline-block;
width: 160px;
font-weight: 800;
color: #333;
}
.value {
color: #666;
font-size: 26px;
.phone-icon {
width: 40px;
height: 40px;
vertical-align: sub;
margin-left: 16px;
}
}
}
}
.popup-btn {
width: 100%;
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
height: 112px;
line-height: 112px;
text-align: center;
background: #1365DD;
color: #FFF;
}
::v-deep.marker {
color: #fff;
background: #5088FF;
width: fit-content;
padding: 10px 32px;
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>