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 @@ \ 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 @@ \ 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 @@ - +