对接访客邀请接口
This commit is contained in:
@@ -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) : [];
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}`
|
||||
})
|
||||
|
||||
// 返回上一页
|
||||
|
||||
Reference in New Issue
Block a user