From 65125a6465914ff35691dd6901bc9b6cd3a4ad46 Mon Sep 17 00:00:00 2001
From: huliyong <2783385703@qq.com>
Date: Sat, 1 Nov 2025 21:13:42 +0800
Subject: [PATCH] =?UTF-8?q?feat(=E5=9C=B0=E5=9B=BE=E7=BB=84=E4=BB=B6):=20?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9C=B0=E5=9B=BE=E5=8D=A1=E7=89=87=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E5=B9=B6=E9=9B=86=E6=88=90=E5=88=B0=E8=AF=A6=E6=83=85?=
=?UTF-8?q?=E9=A1=B5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
添加可交互的地图卡片组件,支持显示位置标记和地址信息
在工作和租房详情页中集成地图组件,当有经纬度时显示地图
优化callPhone组件,增加悬浮窗模式并添加动画效果
将createBrowseRecordParams参数从orderId改为formId以保持一致性
---
components/base/mapCard.vue | 168 ++++++++++++++++++++++++++++++++++
components/user/callPhone.vue | 121 +++++++++++++++++++++++-
config/browseConfig.js | 4 +-
pages_order/renting/rentingDetail.vue | 74 +++++++++------
pages_order/work/workDetail.vue | 37 ++++++--
static/image/location-marker.svg | 4 +
6 files changed, 362 insertions(+), 46 deletions(-)
create mode 100644 components/base/mapCard.vue
create mode 100644 static/image/location-marker.svg
diff --git a/components/base/mapCard.vue b/components/base/mapCard.vue
new file mode 100644
index 0000000..6fe5029
--- /dev/null
+++ b/components/base/mapCard.vue
@@ -0,0 +1,168 @@
+
+
+
+
+
+
+
+
+
+ {{ addressName }}
+ {{ addressDetail }}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/components/user/callPhone.vue b/components/user/callPhone.vue
index 8dd2f96..92e4c80 100644
--- a/components/user/callPhone.vue
+++ b/components/user/callPhone.vue
@@ -1,8 +1,19 @@
-
-
- {{ title || '联系' + ta[sexName] }}
-
+
+
+
+
+ {{ title || '联系' + ta[sexName] }}
+
+
+
+
+
+
+ {{ title || '联系' + ta[sexName] }}
+
+
+
\ No newline at end of file
diff --git a/config/browseConfig.js b/config/browseConfig.js
index b50c4db..59a44ef 100644
--- a/config/browseConfig.js
+++ b/config/browseConfig.js
@@ -117,11 +117,11 @@ export function getBrowseRecordConfig(itemType) {
}
// 创建浏览记录参数的工具函数
-export function createBrowseRecordParams(orderId, itemType = 'dynamic') {
+export function createBrowseRecordParams(formId, itemType = 'dynamic') {
const config = getBrowseRecordConfig(itemType)
return {
- orderId: orderId,
+ formId: formId,
type: config.type,
category: config.category
}
diff --git a/pages_order/renting/rentingDetail.vue b/pages_order/renting/rentingDetail.vue
index f36ff5b..9b8ce9c 100644
--- a/pages_order/renting/rentingDetail.vue
+++ b/pages_order/renting/rentingDetail.vue
@@ -83,38 +83,48 @@
-->
-
-
- 小区:
-
-
- {{ detail.address }}
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 工作地址
+
+
+
+
+
+
工作地址
-
{{ detail.address }}
@@ -66,12 +78,6 @@
name="arrow-right"
>
-
-
@@ -117,10 +123,12 @@
@@ -236,6 +249,10 @@
}
}
+ .address-section{
+ padding: 30rpx 0;
+ }
+
.info{
margin: 20rpx 0;
.text{
diff --git a/static/image/location-marker.svg b/static/image/location-marker.svg
new file mode 100644
index 0000000..530493e
--- /dev/null
+++ b/static/image/location-marker.svg
@@ -0,0 +1,4 @@
+
\ No newline at end of file