对接在线报修的新增报修和报修详情接口
This commit is contained in:
@@ -33,7 +33,15 @@
|
||||
{{ item.projectName }}
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
</view>
|
||||
<!-- 空状态 -->
|
||||
<view v-if="categoryList.length === 0 || currentProjectList.length === 0" class="empty-state">
|
||||
<uni-icons type="info" size="30" color="#ccc"></uni-icons>
|
||||
<text class="empty-text">
|
||||
暂无维修项目
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<!-- 确认按钮 -->
|
||||
<button class="confirm-btn" @click="confirmSelect">确认</button>
|
||||
@@ -112,7 +120,8 @@ const confirmSelect = () => {
|
||||
const categoryName = categoryList.value.find(c => c.id === activeCategory.value).projectName
|
||||
// 传递给表单页
|
||||
uni.$emit('selectProject', {
|
||||
name: `${categoryName}-${selectedProject.value.projectName}`
|
||||
name: `${categoryName}-${selectedProject.value.projectName}`,
|
||||
id: selectedProject.value.id
|
||||
})
|
||||
|
||||
uni.navigateBack({ delta: 1 })
|
||||
@@ -187,4 +196,20 @@ const confirmSelect = () => {
|
||||
border-radius: 8px;
|
||||
font-size: 16px;
|
||||
}
|
||||
/* 空状态 */
|
||||
.empty-state {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 100rpx 0;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
.empty-text {
|
||||
font-size: 32rpx;
|
||||
color: #999;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user