修改报事报修

This commit is contained in:
2025-09-06 17:15:19 +08:00
parent 026ab919e7
commit a42559a936
8 changed files with 383 additions and 47 deletions

View File

@@ -134,10 +134,9 @@
async realSubmit() {
let res = await this.$u.api.addOrder2(this.repairInfo);
if (res.code == '200') {
// 关闭页面前发送事件通知前页面刷新
uni.$emit('refreshData', '');
// 返回上一页
uni.navigateBack();
uni.navigateTo({
url: '/pages/sys/user/myRepair/repaired'
});
}
},

View File

@@ -245,34 +245,27 @@
position: relative;
}
.repair-empty-img-box {
border: 2rpx dashed #BDBDBD;
border-radius: 8rpx;
background: #fafbfc;
width: 100%;
min-height: 220rpx;
height: 500rpx;
display: flex;
align-items: center;
justify-content: center;
}
.repair-empty-img {
width: 90%;
max-width: 400rpx;
height: 180rpx;
width: 100%;
height: 100%;
object-fit: contain;
margin: 24rpx auto;
}
.repair-add-btn-box {
position: absolute;
right: 24rpx;
top: 500rpx;
right: -20rpx;
bottom: -40rpx;
}
.repair-add-btn {
width: 80rpx;
height: 80rpx;
border: 2rpx dashed #BDBDBD;
width: 100rpx;
height: 100rpx;
border-radius: 50%;
background: #fff;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.08);
}
.repair-list-box {
margin: 32rpx 0 0 0;
@@ -341,12 +334,13 @@
}
.repair-add-btn-fixed {
position: fixed;
right: 40rpx;
right: 5rpx;
bottom: 80rpx;
width: 100rpx;
height: 100rpx;
z-index: 100;
transition: transform 0.3s ease;
top: 50%;
transform: translateX(0);
}
.repair-add-btn-fixed.hide { transform: translateX(200%); }

View File

@@ -44,16 +44,16 @@
detailItem: null // 接收传递的详情项
}
},
onLoad(options) {
// 接收传递的detailItem参数
if (options.detailItem) {
try {
this.detailItem = JSON.parse(decodeURIComponent(options.detailItem));
} catch (e) {
console.error('解析detailItem参数失败', e);
}
}
},
// onLoad(options) {
// // 接收传递的detailItem参数
// if (options.detailItem) {
// try {
// this.detailItem = JSON.parse(decodeURIComponent(options.detailItem));
// } catch (e) {
// console.error('解析detailItem参数失败', e);
// }
// }
// },
methods: {
// 删除图片
deletePic(event) {

View File

@@ -3,7 +3,6 @@
<!-- 顶部栏 -->
<view class="repaired-navbar">
<image src="/static/ic_back.png" class="repaired-back" @click="goBack" />
<text class="repaired-progress" @click="goProgress">查看进度</text>
</view>
<!-- 成功图标 -->
<view class="repaired-icon-box">
@@ -13,7 +12,7 @@
<view class="repaired-title">提交成功</view>
<view class="repaired-desc">提交成功后我们将及时为您服务</view>
<!-- 返回首页按钮 -->
<button class="repaired-btn" @click="goHome">返回首页</button>
<button class="repaired-btn" @click="goMyREpair">返回报事报修管理</button>
</view>
</template>
@@ -23,12 +22,10 @@ export default {
goBack() {
uni.navigateBack();
},
goProgress() {
// 跳转到进度页面
uni.showToast({ title: '查看进度', icon: 'none' });
},
goHome() {
uni.switchTab({ url: '/pages/home/home' });
goMyREpair() {
uni.navigateTo({
url: '/pages/sys/user/myRepair/myRepair'
});
}
}
}