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