From 37280c9a896332ccd21b5fbbd8fc08333191b925 Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 17 May 2023 16:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/pidu/AppPointsApply/addPoints.vue | 4 +++- src/project/pingchang/AppPointsApply/addPoints.vue | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/project/pidu/AppPointsApply/addPoints.vue b/src/project/pidu/AppPointsApply/addPoints.vue index e5e680d3..99839bff 100644 --- a/src/project/pidu/AppPointsApply/addPoints.vue +++ b/src/project/pidu/AppPointsApply/addPoints.vue @@ -80,7 +80,9 @@ export default { if(!this.form.applyIntegral) { return this.$u.toast('请输入积分数量') } - + if(!this.form.files.length) { + return this.$u.toast('请上传图片') + } if(this.form.files.length) { this.form.voucherImageUrl = this.form.files[0].url } diff --git a/src/project/pingchang/AppPointsApply/addPoints.vue b/src/project/pingchang/AppPointsApply/addPoints.vue index e5e680d3..4dc18323 100644 --- a/src/project/pingchang/AppPointsApply/addPoints.vue +++ b/src/project/pingchang/AppPointsApply/addPoints.vue @@ -80,6 +80,9 @@ export default { if(!this.form.applyIntegral) { return this.$u.toast('请输入积分数量') } + if(!this.form.files.length) { + return this.$u.toast('请上传图片') + } if(this.form.files.length) { this.form.voucherImageUrl = this.form.files[0].url