From 0dc09928583b0d693456e82720212b5887605a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=81=E6=9D=B0?= <727475508@qq.com> Date: Thu, 9 Apr 2026 17:23:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=81=E6=8F=90=E7=A4=BA=E6=A1=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/shop/photoAlbum/addPhoto.vue | 25 +++++++++++++++++++++++-- pages/shop/photoAlbum/photoManage.vue | 2 +- pages/shop/photoAlbum/videoList.vue | 14 ++++++++++++-- utils/albumUploadImage.js | 2 +- 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/pages/shop/photoAlbum/addPhoto.vue b/pages/shop/photoAlbum/addPhoto.vue index 5e0c9f8..07c5c77 100644 --- a/pages/shop/photoAlbum/addPhoto.vue +++ b/pages/shop/photoAlbum/addPhoto.vue @@ -232,11 +232,32 @@ async submitPhoto() { // 1. 防连点核心逻辑:如果正在提交中,直接return阻止后续执行 if (this.isSubmitting) return; - + console.log(this.formData,'this.formData'); // 2. 表单必填项校验:校验图片和名称是否填写 if (!this.formData.url) { + if(this.formData.type==1){ + if(this.formData.class_type==1){ + uni.showToast({ + title: '请先上传店铺主图', + icon: 'none', + duration: 2000 + }); + }else if(this.formData.class_type==2){ + uni.showToast({ + title: '请先上传环境图片', + icon: 'none', + duration: 2000 + }); + }else if(this.formData.class_type==3){ + uni.showToast({ + title: '请先上传作品图片', + icon: 'none', + duration: 2000 + }); + } + } uni.showToast({ - title: '请先上传店铺主图', + title: '请先上传图片/视频', icon: 'none', duration: 2000 }); diff --git a/pages/shop/photoAlbum/photoManage.vue b/pages/shop/photoAlbum/photoManage.vue index cb871a2..b8ca90d 100644 --- a/pages/shop/photoAlbum/photoManage.vue +++ b/pages/shop/photoAlbum/photoManage.vue @@ -1,6 +1,6 @@