From 231de9cde8f83577528975f9d068eb05fc321ad9 Mon Sep 17 00:00:00 2001
From: zhouyanli <593579392@qq.com>
Date: Wed, 6 May 2026 17:48:39 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E8=AE=BF=E5=AE=A2=E9=82=80?=
=?UTF-8?q?=E8=AF=B7=E6=8E=A5=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/uqrcode/uqrcode.vue | 113 --
.../pageSubPack/api/api.js | 8 +
.../pageSubPack/api/request.js | 2 +-
.../loginSub/register-new-user.vue | 718 ++++++------
.../pageSubPack/notice-list/selectHome.vue | 2 +-
.../online-repair/onlineRepair.vue | 2 +-
.../online-repair/personalRepair.vue | 4 +-
.../online-repair/repairSelect.vue | 12 +-
.../pageSubPack/online-repair/selectHouse.vue | 4 +-
.../pageSubPack/visitor/qrcode-page.vue | 87 +-
.../pageSubPack/visitor/visitor-add.vue | 1000 +++++++++--------
.../pageSubPack/visitor/visitor-detail.vue | 80 +-
.../pageSubPack/visitor/visitor-list.vue | 33 +-
13 files changed, 1028 insertions(+), 1037 deletions(-)
delete mode 100644 property-uniapp-project/components/uqrcode/uqrcode.vue
diff --git a/property-uniapp-project/components/uqrcode/uqrcode.vue b/property-uniapp-project/components/uqrcode/uqrcode.vue
deleted file mode 100644
index 4c8cd88..0000000
--- a/property-uniapp-project/components/uqrcode/uqrcode.vue
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/api/api.js b/property-uniapp-project/pageSubPack/api/api.js
index ef21a19..cdb9446 100644
--- a/property-uniapp-project/pageSubPack/api/api.js
+++ b/property-uniapp-project/pageSubPack/api/api.js
@@ -122,6 +122,14 @@ export const getRepairDetail = (data) =>{
export const getVisitorList = (data) =>{
return get('/api/visitor/list',data)
}
+// 获取详情信息
+export const getVisitorDetail = (id) =>{
+ return get(`/api/visitor/${id}`)
+}
+// 新增访客
+export const addVisitorData = (data) =>{
+ return post("/api/visitor", data)
+}
// 通用文件上传
export const uploadImage = () => {
diff --git a/property-uniapp-project/pageSubPack/api/request.js b/property-uniapp-project/pageSubPack/api/request.js
index 4ed9735..fc22abb 100644
--- a/property-uniapp-project/pageSubPack/api/request.js
+++ b/property-uniapp-project/pageSubPack/api/request.js
@@ -2,7 +2,7 @@ let baseUrl = '';
if (process.env.NODE_ENV === 'development') {
// http://192.168.1.215
// http://192.168.0.224
- baseUrl = 'http://192.168.1.215:8080'; // 开发环境
+ baseUrl = 'http://192.168.0.239:8080'; // 开发环境
} else {
baseUrl = 'http://192.168.0.224:8080'; // 生产环境
}
diff --git a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue
index 0d4c9c7..21060b0 100644
--- a/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue
+++ b/property-uniapp-project/pageSubPack/loginSub/register-new-user.vue
@@ -1,397 +1,401 @@
-
-
-
-
-
- 注册
-
+
+
+
+
+
+ 注册
+
-
- 注册用户
+
+ 注册用户
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
- 我已阅读并同意《用户隐私政策》
-
-
+
+
+
-
-
+
+
+
+
+
+
+
+
+
-
-
- 已有账号,去登录
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 我已阅读并同意《用户隐私政策》
+
+
+
+
+
+
+
+
+ 已有账号,去登录
+
+
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/notice-list/selectHome.vue b/property-uniapp-project/pageSubPack/notice-list/selectHome.vue
index e47c017..f58cf54 100644
--- a/property-uniapp-project/pageSubPack/notice-list/selectHome.vue
+++ b/property-uniapp-project/pageSubPack/notice-list/selectHome.vue
@@ -128,7 +128,7 @@ const getCommunityList = async (pageNum = 1, keyword = '') => {
const res = await getVillageList(params)
if (res.code === 200) {
- const listData = res.data?.rows || res.data?.list || res.data || []
+ const listData = res.data || []
const total = res.data?.total || listData.length
if (pageNum === 1) {
diff --git a/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue b/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue
index 943e6d4..09dc957 100644
--- a/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue
+++ b/property-uniapp-project/pageSubPack/online-repair/onlineRepair.vue
@@ -155,7 +155,7 @@ const fetchRepairList = async () => {
const res = await getQueryRepair(params);
// console.log('接口返回:', res);
if (res.code === 200) {
- const list = res.data || [];
+ const list = res.rows || [];
repairList.value = list.map(item => {
const statusInfo = getStatusInfo(item.problemStatus);
const images = item.problemImageUrl ? item.problemImageUrl.split(',').filter(Boolean) : [];
diff --git a/property-uniapp-project/pageSubPack/online-repair/personalRepair.vue b/property-uniapp-project/pageSubPack/online-repair/personalRepair.vue
index ec3abaa..c28413c 100644
--- a/property-uniapp-project/pageSubPack/online-repair/personalRepair.vue
+++ b/property-uniapp-project/pageSubPack/online-repair/personalRepair.vue
@@ -349,7 +349,7 @@ const uploadImages = async () => {
return urls
}
-// ========== 表单提交 ✅ 修复:所有错误都解决 ==========
+// ========== 表单提交 ==========
const submitForm = async () => {
if (!houseName.value) return uni.showToast({ title: '请选择报修房屋', icon: 'none' })
if (!projectName.value) return uni.showToast({ title: '请选择维修项目', icon: 'none' })
@@ -406,7 +406,7 @@ const submitForm = async () => {
uni.showToast({ title: res.msg || '提交失败', icon: 'none' })
}
} catch (e) {
- console.error('提交异常:', e) // 看控制台真实错误
+ // console.error('提交异常:', e)
uni.showToast({ title: '提交失败,请检查网络或重试', icon: 'none' })
} finally {
uni.hideLoading()
diff --git a/property-uniapp-project/pageSubPack/online-repair/repairSelect.vue b/property-uniapp-project/pageSubPack/online-repair/repairSelect.vue
index a863b5c..253ee31 100644
--- a/property-uniapp-project/pageSubPack/online-repair/repairSelect.vue
+++ b/property-uniapp-project/pageSubPack/online-repair/repairSelect.vue
@@ -108,11 +108,12 @@ const selectProject = (item) => {
padding: 10px;
height: 100vh;
box-sizing: border-box;
+ background-color: #f9f9f9;
}
.search-bar {
display: flex;
align-items: center;
- padding: 8px 10px;
+ padding: 15px 10px;
background: #f5f5f5;
border-radius: 6px;
margin-bottom: 10px;
@@ -128,8 +129,10 @@ const selectProject = (item) => {
.category-left {
width: 120px;
height: 100%;
- background: #f8f8f8;
+ background: #fff;
border-radius: 6px 0 0 6px;
+ margin-right: 20rpx;
+ color: #666;
}
.category-item {
padding: 15px 10px;
@@ -138,8 +141,8 @@ const selectProject = (item) => {
border-bottom: 1px solid #eee;
}
.category-item.active {
- background: #fff;
- color: #007aff;
+ background: #f9f9f9;
+ color: #222;
font-weight: bold;
}
.category-right {
@@ -148,6 +151,7 @@ const selectProject = (item) => {
background: #fff;
border-radius: 0 6px 6px 0;
padding: 10px;
+ text-align: center;
}
.project-item {
padding: 12px 10px;
diff --git a/property-uniapp-project/pageSubPack/online-repair/selectHouse.vue b/property-uniapp-project/pageSubPack/online-repair/selectHouse.vue
index 50c3acf..0e13a10 100644
--- a/property-uniapp-project/pageSubPack/online-repair/selectHouse.vue
+++ b/property-uniapp-project/pageSubPack/online-repair/selectHouse.vue
@@ -12,7 +12,7 @@
{{ item.villageName }}
- {{ item.houseType }}
+ {{item.unitNo}}-{{item.floorNo}}-{{item.houseNo}}
@@ -93,7 +93,7 @@ const confirmSelect = () => {
// 把选中的房屋信息传给表单页(通过uni.$emit)
uni.$emit('selectHouse', {
id: selectedHouse.value.id,
- name: `${selectedHouse.value.villageName} ${selectedHouse.value.houseType}`
+ name: `${selectedHouse.value.villageName} ${selectedHouse.value.unitNo}-${selectedHouse.value.floorNo}-${selectedHouse.value.houseNo}`
})
// 返回上一页
diff --git a/property-uniapp-project/pageSubPack/visitor/qrcode-page.vue b/property-uniapp-project/pageSubPack/visitor/qrcode-page.vue
index d113b4e..ccf3013 100644
--- a/property-uniapp-project/pageSubPack/visitor/qrcode-page.vue
+++ b/property-uniapp-project/pageSubPack/visitor/qrcode-page.vue
@@ -1,72 +1,66 @@
-
+
-
-
-
+
+
+
- 桂花园(别墅)东门通行二维码
+ {{houseName}}通行二维码
分享此二维码给访客,可扫码开门,单次有效
-
+
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/visitor/visitor-add.vue b/property-uniapp-project/pageSubPack/visitor/visitor-add.vue
index cbfbd28..c4decfe 100644
--- a/property-uniapp-project/pageSubPack/visitor/visitor-add.vue
+++ b/property-uniapp-project/pageSubPack/visitor/visitor-add.vue
@@ -1,514 +1,572 @@
-
-
-
-
- 车辆来访
-
-
- 人员来访
-
-
+
+
+
+
+ 车辆来访
+
+
+ 人员来访
+
+
-
-
-
- 房屋信息
-
-
-
- *来访地址
-
-
- {{ form.address }}
-
-
-
-
+
+
+
+ 房屋信息
+
+
+
+ *来访地址
+
+
+ {{ form.address }}
+
+
+
+
-
- 访客信息
-
-
-
- 访客姓名
-
-
-
-
- *访客性别
-
-
- {{ form.gender }}
-
-
-
-
-
- *访客联系方式
-
-
-
+
+ 访客信息
+
-
-
-
- *车牌号
-
-
-
-
-
+
+ 访客姓名
+
+
+
+
+ *访客性别
+
+
+ {{ form.gender }}
+
+
+
+
+
+ *访客联系方式
+
+
+
-
-
- *随行人数
-
-
-
-
+
+
+
+ *车牌号
+
+
+ onCarInput(index, e)"
+ type="text" />
+
+
-
- 有效期
-
-
-
-
- *来访时间
-
-
-
-
-
-
-
- *离开时间
-
-
-
-
-
- 预计来访时间和预计离开时间间隔不能超过24小时
- 车辆停留请勿超出有效期,需及时驶出小区
-
-
+
+
+ *随行人数
+
+
+
+
-
-
-
-
+
+ 有效期
+
-
-
-
- 选择来访地址
-
-
- {{ item }}
-
-
-
-
-
+
+
+ *来访时间
+
+
+
+
+
+
+
+ *离开时间
+
+
+
+
+
+ 预计来访时间和预计离开时间间隔不能超过24小时
+ 车辆停留请勿超出有效期,需及时驶出小区
+
+
-
-
-
-
-
- {{ item }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 选择来访地址
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ item }}
+
+
+
+
+
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/visitor/visitor-detail.vue b/property-uniapp-project/pageSubPack/visitor/visitor-detail.vue
index c62b529..9b6d35b 100644
--- a/property-uniapp-project/pageSubPack/visitor/visitor-detail.vue
+++ b/property-uniapp-project/pageSubPack/visitor/visitor-detail.vue
@@ -20,8 +20,7 @@
联系方式:
{{ visitorInfo.phone }}
-
-
+
车牌号:
{{ visitorInfo.carNumber }}
@@ -52,35 +51,68 @@
-
+