更新 pages/sys/msg/index.vue

This commit is contained in:
bichangxiong 2025-08-21 14:22:30 +08:00
parent d927f79768
commit f1c1e9d905

View File

@ -53,7 +53,6 @@
</view> </view>
<!-- 被访人信息 --> <!-- 被访人信息 -->
<view class="section-title">被访人信息</view> <view class="section-title">被访人信息</view>
<view class="form-item"> <view class="form-item">
@ -372,12 +371,7 @@
this.formData.visitingBeginTime = `${this.formData.visitingBeginDate} ${this.formData.visitingBeginTime}`; this.formData.visitingBeginTime = `${this.formData.visitingBeginDate} ${this.formData.visitingBeginTime}`;
this.formData.visitingEndTime = `${this.formData.visitingEndDate} ${this.formData.visitingEndTime}`; this.formData.visitingEndTime = `${this.formData.visitingEndDate} ${this.formData.visitingEndTime}`;
//
const submitData = {
...this.formData,
bookingParkingSpace: this.formData.bookingParkingSpace ? 0 : 1
};
console.log(submitData)
// //
uni.showLoading({ uni.showLoading({
@ -410,19 +404,44 @@
formData: { formData: {
'code': this.formData.qrCodeId // 'code': this.formData.qrCodeId //
}, },
// // //
onProgressUpdate: (res) => { // onProgressUpdate: (res) => {
this.progress = res.progress; // this.progress = res.progress;
console.log('上传进度:' + res.progress); // console.log(':' + res.progress);
}, // },
// //
success: (res) => { success: (res) => {
console.log('上传成功', res); console.log('上传成功', res);
this.uploadResult = res.data;
// this.formData.facePictures = res.data.ossId;
//
const submitData = {
...this.formData,
bookingParkingSpace: this.formData.bookingParkingSpace ? 0 : 1
};
const parsedData = JSON.parse(res.data);
// ossId
const ossId = parsedData.data.ossId;
console.log("ossId",ossId)
submitData.facePictures=ossId;
console.log(submitData)
this.$u.api.fksub(submitData).then(res => {
console.log(res)
if (res.code == 200) {
uni.showToast({ uni.showToast({
title: '上传成功', title: "提交成功,请等待审核!",
icon: 'success' icon: "success"
}); })
}
})
// uni.showToast({
// title: '',
// icon: 'success'
// });
}, },
// //
fail: (err) => { fail: (err) => {
@ -454,20 +473,7 @@
}); });
this.$u.api.fksub(submitData).then(res => {
console.log(res)
if (res.code == 200) {
uni.showToast({
title: "提交成功,请等待审核!",
icon: "success"
})
} else {
uni.showToast({
title: "提交失败!",
icon: "error"
})
}
})
uni.hideLoading(); uni.hideLoading();
// //