董国庆
2025-02-25 3be5d65ebf9cea9ae223a5defa3ea7a7100af8d7
修改必填判断
1个文件已修改
28 ■■■■ 已修改文件
H5/pages/work-detail/postpone-apply.vue 28 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
H5/pages/work-detail/postpone-apply.vue
@@ -128,18 +128,18 @@
                        title: '请输入办理进度描述'
                    })
                }
                if (this.imgUrls.length == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '请上传图片'
                    })
                }
                if (this.video.length == 0) {
                    return uni.showToast({
                        icon: 'none',
                        title: '请上传视频'
                    })
                }
                // if (this.imgUrls.length == 0) {
                //     return uni.showToast({
                //         icon: 'none',
                //         title: '请上传图片'
                //     })
                // }
                // if (this.video.length == 0) {
                //     return uni.showToast({
                //         icon: 'none',
                //         title: '请上传视频'
                //     })
                // }
                this.showPop = true
            },
@@ -147,8 +147,8 @@
                let obj = {
                    complaintId: this.complaintId,
                    comment: this.describe,
                    images: this.imgUrls.join(','),
                    videos: this.video.join(',')
                    images: this.imgUrls.length > 0 ? this.imgUrls.join(',') : '',
                    videos: this.video.length > 0 ? this.video.join(',') : ''
                }
                saveProcess(obj).then(res => {
                    if (res.code == 200) {