parent
acd66bee0b
commit
20433f8923
@ -1,37 +1,39 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import config from './config'
|
import config from './config';
|
||||||
import { getToken } from '@/utils/auth'
|
import { getToken } from '@/utils/auth';
|
||||||
import { useConfigStore } from '@/store'
|
import { useConfigStore } from '@/store';
|
||||||
import { getCurrentInstance } from "vue"
|
import { getCurrentInstance } from 'vue';
|
||||||
import { onLaunch } from '@dcloudio/uni-app'
|
import { onLaunch } from '@dcloudio/uni-app';
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance()
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
onLaunch(() => {
|
onLaunch(() => {
|
||||||
initApp()
|
initApp();
|
||||||
})
|
});
|
||||||
|
|
||||||
// 初始化应用
|
// 初始化应用
|
||||||
function initApp() {
|
function initApp() {
|
||||||
// 初始化应用配置
|
// 初始化应用配置
|
||||||
initConfig()
|
initConfig();
|
||||||
// 检查用户登录状态
|
// 检查用户登录状态
|
||||||
//#ifdef H5
|
//#ifdef H5
|
||||||
checkLogin()
|
checkLogin();
|
||||||
//#endif
|
//#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
function initConfig() {
|
function initConfig() {
|
||||||
useConfigStore().setConfig(config)
|
useConfigStore().setConfig(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkLogin() {
|
function checkLogin() {
|
||||||
if (!getToken()) {
|
if (!getToken()) {
|
||||||
proxy.$tab.reLaunch('/pages/login')
|
proxy.$tab.reLaunch('/pages/login');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '@/static/scss/index.scss'
|
@import '@/static/scss/index.scss';
|
||||||
|
@import 'leaflet/dist/leaflet.css';
|
||||||
|
@import 'mars2d/mars2d.css';
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,26 +1,26 @@
|
|||||||
// 应用全局配置
|
// 应用全局配置
|
||||||
export default {
|
export default {
|
||||||
baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
baseUrl: 'https://vue.ruoyi.vip/prod-api',
|
||||||
// baseUrl: 'http://localhost:8080',
|
// baseUrl: 'http://221.229.220.83:9028',
|
||||||
// 应用信息
|
// 应用信息
|
||||||
appInfo: {
|
appInfo: {
|
||||||
// 应用名称
|
// 应用名称
|
||||||
name: "ruoyi-app",
|
name: "ruoyi-app",
|
||||||
// 应用版本
|
// 应用版本
|
||||||
version: "1.2.0",
|
version: "1.2.0",
|
||||||
// 应用logo
|
// 应用logo
|
||||||
logo: "/static/logo.png",
|
logo: "/static/logo.png",
|
||||||
// 官方网站
|
// 官方网站
|
||||||
site_url: "http://ruoyi.vip",
|
site_url: "http://ruoyi.vip",
|
||||||
// 政策协议
|
// 政策协议
|
||||||
agreements: [{
|
agreements: [{
|
||||||
title: "隐私政策",
|
title: "隐私政策",
|
||||||
url: "https://ruoyi.vip/protocol.html"
|
url: "https://ruoyi.vip/protocol.html"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "用户服务协议",
|
title: "用户服务协议",
|
||||||
url: "https://ruoyi.vip/protocol.html"
|
url: "https://ruoyi.vip/protocol.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"@amap/amap-jsapi-loader": "^1.0.1",
|
||||||
|
"leaflet": "^1.9.4",
|
||||||
|
"mars2d": "^3.3.2"
|
||||||
|
}
|
||||||
|
}
|
@ -1,87 +1,103 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [{
|
||||||
{
|
"path": "pages/login",
|
||||||
"path": "pages/login",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "登录"
|
||||||
"navigationBarTitleText": "登录"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/register",
|
||||||
"path": "pages/register",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "注册"
|
||||||
"navigationBarTitleText": "注册"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/index",
|
||||||
"path": "pages/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "若依移动端框架",
|
||||||
"navigationBarTitleText": "若依移动端框架",
|
"navigationStyle": "custom"
|
||||||
"navigationStyle": "custom"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/work/index",
|
||||||
"path": "pages/work/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "工作台"
|
||||||
"navigationBarTitleText": "工作台"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/index",
|
||||||
"path": "pages/mine/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "我的"
|
||||||
"navigationBarTitleText": "我的"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/avatar/index",
|
||||||
"path": "pages/mine/avatar/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "修改头像"
|
||||||
"navigationBarTitleText": "修改头像"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/info/index",
|
||||||
"path": "pages/mine/info/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "个人信息"
|
||||||
"navigationBarTitleText": "个人信息"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/info/edit",
|
||||||
"path": "pages/mine/info/edit",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "编辑资料"
|
||||||
"navigationBarTitleText": "编辑资料"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/pwd/index",
|
||||||
"path": "pages/mine/pwd/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "修改密码"
|
||||||
"navigationBarTitleText": "修改密码"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/setting/index",
|
||||||
"path": "pages/mine/setting/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "应用设置"
|
||||||
"navigationBarTitleText": "应用设置"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/help/index",
|
||||||
"path": "pages/mine/help/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "常见问题"
|
||||||
"navigationBarTitleText": "常见问题"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/mine/about/index",
|
||||||
"path": "pages/mine/about/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "关于我们"
|
||||||
"navigationBarTitleText": "关于我们"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/common/webview/index",
|
||||||
"path": "pages/common/webview/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "浏览网页"
|
||||||
"navigationBarTitleText": "浏览网页"
|
}
|
||||||
}
|
}, {
|
||||||
}, {
|
"path": "pages/common/textview/index",
|
||||||
"path": "pages/common/textview/index",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "浏览文本"
|
||||||
"navigationBarTitleText": "浏览文本"
|
}
|
||||||
}
|
},
|
||||||
}],
|
{
|
||||||
"tabBar": {
|
"path": "pages/homePage/emergency",
|
||||||
"color": "#000000",
|
"style": {
|
||||||
"selectedColor": "#000000",
|
"navigationBarTitleText": "应急抢险工单",
|
||||||
"borderStyle": "white",
|
"navigationBarBackgroundColor": "#537CF7",
|
||||||
"backgroundColor": "#ffffff",
|
"navigationBarTextStyle": "#ffffff",
|
||||||
|
"navigationStyle": "custom"
|
||||||
},
|
}
|
||||||
"globalStyle": {
|
},
|
||||||
"navigationBarTextStyle": "black",
|
{
|
||||||
"navigationBarTitleText": "RuoYi",
|
"path": "pages/homePage/emergencyEntry",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"style": {
|
||||||
}
|
"navigationBarTitleText": "应急抢险工单录入",
|
||||||
}
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"tabBar": {
|
||||||
|
"color": "#000000",
|
||||||
|
"selectedColor": "#000000",
|
||||||
|
"borderStyle": "white",
|
||||||
|
"backgroundColor": "#ffffff"
|
||||||
|
|
||||||
|
},
|
||||||
|
"globalStyle": {
|
||||||
|
"navigationBarTextStyle": "black",
|
||||||
|
"navigationBarTitleText": "RuoYi",
|
||||||
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,408 @@
|
|||||||
|
<template>
|
||||||
|
<view class="container">
|
||||||
|
<!-- 自定义标题 -->
|
||||||
|
<uni-nav-bar left-icon="left" left-text="返回" background-color="#537CF7" color="#ffffff" @clickLeft="goBack">
|
||||||
|
<text class="navbar-title">应急抢险工单录入</text>
|
||||||
|
</uni-nav-bar>
|
||||||
|
|
||||||
|
<!-- 地图容器 -->
|
||||||
|
<view class="map-container" id="map"></view>
|
||||||
|
|
||||||
|
<!-- 搜索框 -->
|
||||||
|
<view class="top-container">
|
||||||
|
<image src="/static/images/地图icon.png" mode=""></image>
|
||||||
|
<view class="search-container">
|
||||||
|
<uni-easyinput v-model="keyword" placeholder="请在地图上选择点位或手动输入" class="search-input" @confirm="toSearch" @input="handleInput"></uni-easyinput>
|
||||||
|
<!-- 搜索结果列表 -->
|
||||||
|
<view class="search-results" v-if="searchBox && searchList.length > 0">
|
||||||
|
<view class="search-item" v-for="(item, index) in searchList" :key="index" @click="centerMap(item)">
|
||||||
|
<view class="item-name">{{ item.name }}</view>
|
||||||
|
<view class="item-address">{{ item.address }}</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 表单 -->
|
||||||
|
<view class="form-container">
|
||||||
|
<emergencyForm />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import { ref, onMounted } from 'vue';
|
||||||
|
import 'mars2d/mars2d.css';
|
||||||
|
import * as mars2d from 'mars2d';
|
||||||
|
import emergencyForm from '/components/emergencyForm';
|
||||||
|
|
||||||
|
const map = ref(null);
|
||||||
|
const selectedMarker = ref(null);
|
||||||
|
const pointForm = ref({
|
||||||
|
name: '',
|
||||||
|
lat: '',
|
||||||
|
lng: '',
|
||||||
|
address: ''
|
||||||
|
});
|
||||||
|
|
||||||
|
const keyword = ref('');
|
||||||
|
const searchList = ref([]);
|
||||||
|
const searchBox = ref(false);
|
||||||
|
const gaodeKey = 'bd665f6310bb41cdaea4494ec86fcbfa';
|
||||||
|
const searchDebounce = ref(null);
|
||||||
|
|
||||||
|
// 返回
|
||||||
|
function goBack() {
|
||||||
|
uni.navigateBack();
|
||||||
|
}
|
||||||
|
|
||||||
|
//地图
|
||||||
|
function initMap() {
|
||||||
|
map.value = new mars2d.Map('map', {
|
||||||
|
zoom: 17,
|
||||||
|
copyright: false,
|
||||||
|
center: { lng: 121.438097, lat: 31.199193 },
|
||||||
|
basemaps: [{ name: '高德地图', type: 'gaode', layer: 'vec', show: true }],
|
||||||
|
graphicLayer: {
|
||||||
|
id: 'graphicLayer',
|
||||||
|
isAutoAdd: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
map.value.on('ready', () => {
|
||||||
|
setTimeout(() => {
|
||||||
|
if (map.value) map.value.invalidateSize();
|
||||||
|
}, 100);
|
||||||
|
});
|
||||||
|
|
||||||
|
// 初始化默认标记点并添加点击事件监听
|
||||||
|
const center = { lat: 31.199193, lng: 121.438097 };
|
||||||
|
addDefaultMarker(center);
|
||||||
|
reverseGeocode(center).then(() => {
|
||||||
|
pointForm.value = {
|
||||||
|
name: pointForm.value.address,
|
||||||
|
lat: center.lat,
|
||||||
|
lng: center.lng,
|
||||||
|
address: pointForm.value.address
|
||||||
|
};
|
||||||
|
keyword.value = pointForm.value.address;
|
||||||
|
});
|
||||||
|
|
||||||
|
// 监听地图点击事件
|
||||||
|
map.value.on('click', (event) => {
|
||||||
|
selectedMarker.value.setLatLng(event.latlng);
|
||||||
|
updatePointForm(event.latlng);
|
||||||
|
reverseGeocode(event.latlng).then(() => {
|
||||||
|
pointForm.value.name = pointForm.value.address;
|
||||||
|
keyword.value = pointForm.value.address;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function addDefaultMarker(latlng) {
|
||||||
|
selectedMarker.value = new mars2d.graphic.Marker({
|
||||||
|
latlng: [latlng.lat, latlng.lng],
|
||||||
|
style: {
|
||||||
|
image: 'https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png',
|
||||||
|
width: 20,
|
||||||
|
height: 30,
|
||||||
|
draggable: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
map.value.graphicLayer.addGraphic(selectedMarker.value);
|
||||||
|
|
||||||
|
// 监听拖动事件
|
||||||
|
selectedMarker.value.on('dragend', (event) => {
|
||||||
|
const newLatLng = event.target.getLatLng();
|
||||||
|
updatePointForm(newLatLng);
|
||||||
|
reverseGeocode(newLatLng).then(() => {
|
||||||
|
pointForm.value.name = pointForm.value.address;
|
||||||
|
keyword.value = pointForm.value.address;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function updatePointForm(latlng) {
|
||||||
|
pointForm.value.lat = latlng.lat;
|
||||||
|
pointForm.value.lng = latlng.lng;
|
||||||
|
}
|
||||||
|
|
||||||
|
function submitLocation() {
|
||||||
|
if (!pointForm.value.address) {
|
||||||
|
uni.showToast({ title: '请选择一个地址', icon: 'none' });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
uni.showToast({ title: '提交成功', icon: 'success' });
|
||||||
|
console.log('提交地址信息:', pointForm.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
function handleInput() {
|
||||||
|
if (searchDebounce.value) clearTimeout(searchDebounce.value);
|
||||||
|
searchDebounce.value = setTimeout(() => {
|
||||||
|
toSearch();
|
||||||
|
}, 300);
|
||||||
|
}
|
||||||
|
|
||||||
|
function toSearch() {
|
||||||
|
if (!keyword.value.trim()) {
|
||||||
|
searchList.value = [];
|
||||||
|
searchBox.value = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const url = `https://restapi.amap.com/v3/place/text?key=${gaodeKey}&keywords=${keyword.value}&city=亳州市`;
|
||||||
|
|
||||||
|
uni.request({
|
||||||
|
url,
|
||||||
|
success: (res) => {
|
||||||
|
if (res.data.pois && res.data.pois.length > 0) {
|
||||||
|
searchList.value = res.data.pois.map((poi) => ({
|
||||||
|
name: poi.name,
|
||||||
|
address: poi.address,
|
||||||
|
location: poi.location
|
||||||
|
}));
|
||||||
|
searchBox.value = true;
|
||||||
|
} else {
|
||||||
|
uni.showToast({ title: '未找到相关地点', icon: 'none' });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: () => {
|
||||||
|
uni.showToast({ title: '搜索失败,请稍后重试', icon: 'none' });
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function centerMap(item) {
|
||||||
|
const [lng, lat] = item.location.split(',').map(Number);
|
||||||
|
|
||||||
|
// 更新地图视图
|
||||||
|
map.value.flyTo([lat, lng], 17);
|
||||||
|
|
||||||
|
// 清除已有标记
|
||||||
|
if (selectedMarker.value) {
|
||||||
|
map.value.graphicLayer.removeGraphic(selectedMarker.value);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加新标记
|
||||||
|
selectedMarker.value = new mars2d.graphic.Marker({
|
||||||
|
latlng: [lat, lng],
|
||||||
|
style: {
|
||||||
|
image: 'https://webapi.amap.com/theme/v1.3/markers/n/mark_b.png',
|
||||||
|
width: 32,
|
||||||
|
height: 44,
|
||||||
|
draggable: true
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
map.value.graphicLayer.addGraphic(selectedMarker.value);
|
||||||
|
|
||||||
|
// 监听拖动事件
|
||||||
|
selectedMarker.value.on('dragend', (event) => {
|
||||||
|
const newLatLng = event.target.getLatLng();
|
||||||
|
updatePointForm(newLatLng);
|
||||||
|
reverseGeocode(newLatLng).then(() => {
|
||||||
|
pointForm.value.name = pointForm.value.address;
|
||||||
|
keyword.value = pointForm.value.address;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
// 设置表单数据
|
||||||
|
pointForm.value = {
|
||||||
|
name: item.name,
|
||||||
|
lat: lat,
|
||||||
|
lng: lng,
|
||||||
|
address: item.address
|
||||||
|
};
|
||||||
|
|
||||||
|
// 回写到搜索框
|
||||||
|
keyword.value = item.name;
|
||||||
|
|
||||||
|
// 关闭搜索面板
|
||||||
|
searchBox.value = false;
|
||||||
|
|
||||||
|
// 重新绑定点击事件以确保正常工作
|
||||||
|
map.value.off('click');
|
||||||
|
map.value.on('click', (event) => {
|
||||||
|
selectedMarker.value.setLatLng(event.latlng);
|
||||||
|
updatePointForm(event.latlng);
|
||||||
|
reverseGeocode(event.latlng).then(() => {
|
||||||
|
pointForm.value.name = pointForm.value.address;
|
||||||
|
keyword.value = pointForm.value.address;
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function reverseGeocode(latlng) {
|
||||||
|
return new Promise((resolve, reject) => {
|
||||||
|
const url = `https://restapi.amap.com/v3/geocode/regeo?key=${gaodeKey}&location=${latlng.lng},${latlng.lat}`;
|
||||||
|
uni.request({
|
||||||
|
url,
|
||||||
|
success: (res) => {
|
||||||
|
if (res.data.status === '1') {
|
||||||
|
pointForm.value.address = res.data.regeocode.formatted_address;
|
||||||
|
resolve();
|
||||||
|
} else {
|
||||||
|
reject();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
fail: () => {
|
||||||
|
reject();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 初始化地图
|
||||||
|
onMounted(() => {
|
||||||
|
setTimeout(() => {
|
||||||
|
initMap();
|
||||||
|
}, 100);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.container {
|
||||||
|
width: 100%;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar-title {
|
||||||
|
font-family: 'Alimama ShuHeiTi-Bold';
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 32rpx;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.top-container {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #fff;
|
||||||
|
gap: 20rpx;
|
||||||
|
padding-left: 30rpx;
|
||||||
|
padding-right: 20rpx;
|
||||||
|
}
|
||||||
|
.top-container image {
|
||||||
|
width: 45rpx;
|
||||||
|
height: 45rpx;
|
||||||
|
}
|
||||||
|
.search-container {
|
||||||
|
padding: 20rpx;
|
||||||
|
flex: 1;
|
||||||
|
position: relative;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-input {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-results {
|
||||||
|
position: absolute;
|
||||||
|
top: 100%;
|
||||||
|
left: 20rpx;
|
||||||
|
width: calc(100% - 40rpx);
|
||||||
|
max-height: 300px;
|
||||||
|
overflow-y: auto;
|
||||||
|
background-color: white;
|
||||||
|
border: 1px solid #ebeef5;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
box-shadow: 0 4rpx 24rpx 0 rgba(0, 0, 0, 0.1);
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item {
|
||||||
|
padding: 20rpx 30rpx;
|
||||||
|
cursor: pointer;
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-item:hover {
|
||||||
|
background-color: #f5f7fa;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name {
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-address {
|
||||||
|
color: #909399;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.map-container {
|
||||||
|
width: 100%;
|
||||||
|
height: 800rpx;
|
||||||
|
background-color: #e6e6e6;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-container {
|
||||||
|
padding: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin-top: 20rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected-location {
|
||||||
|
padding: 20rpx;
|
||||||
|
background-color: #fff;
|
||||||
|
margin: 20rpx;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.location-item {
|
||||||
|
margin-bottom: 15rpx;
|
||||||
|
font-size: 28rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.back-btn {
|
||||||
|
background-color: #f8f8f8;
|
||||||
|
color: #333;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* .back-btn::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
right: -10rpx;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
height: 60%;
|
||||||
|
width: 1rpx;
|
||||||
|
background-color: #ddd;
|
||||||
|
} */
|
||||||
|
|
||||||
|
button[type='primary'] {
|
||||||
|
margin-left: 20rpx;
|
||||||
|
}
|
||||||
|
.label {
|
||||||
|
font-weight: bold;
|
||||||
|
width: 120rpx;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
.form-container {
|
||||||
|
height: 100%;
|
||||||
|
padding: 5rpx 20rpx;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
</style>
|
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in new issue