对接访客邀请接口

This commit is contained in:
zhouyanli
2026-05-06 17:48:39 +08:00
parent e030bb7cb9
commit 231de9cde8
13 changed files with 1028 additions and 1037 deletions

View File

@@ -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) : [];

View File

@@ -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()

View File

@@ -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;

View File

@@ -12,7 +12,7 @@
<image src="http://47.104.199.163:9090/images/repair/house.png" style="width: 48rpx;height: 48rpx;"></image>
<view class="house-name">
{{ item.villageName }}
<view class="house-detail">{{ item.houseType }}</view>
<view class="house-detail">{{item.unitNo}}-{{item.floorNo}}-{{item.houseNo}}</view>
</view>
<uni-icons type="checkbox-filled" size="20" color="#007aff" v-if="selectedHouse.id === item.id"></uni-icons>
@@ -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}`
})
// 返回上一页