From 4c8e79ebba99d688704de39285fc13d4fd7514c8 Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 5 Jul 2024 20:48:53 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E5=BA=97=E9=93=BA):=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=80=BC=E4=B8=BAnull=E6=97=B6=EF=BC=8C=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C=E4=BC=9A=E6=8A=A5=E9=94=99=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=8F=90=E4=BA=A4=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesInn/inn/innProfileEdit.vue | 24 ++++++++++++------------ pkg_join/views/shop.vue | 2 +- pkg_join/views/supplier.vue | 2 +- pkg_join/views/wholesaler.vue | 2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pagesInn/inn/innProfileEdit.vue b/pagesInn/inn/innProfileEdit.vue index dda4b3d..e5e126b 100644 --- a/pagesInn/inn/innProfileEdit.vue +++ b/pagesInn/inn/innProfileEdit.vue @@ -330,36 +330,36 @@ export default { }) }, submit() { - if (this.innApplyInfo.logo.length === 0) { - this.$dialog.error('请上传店铺LOGO图片') + if (!this.innApplyInfo.logo) { + this.$dialog.error('请上传店铺LOGO') return } - if (this.innApplyInfo.cover.length === 0 && this.innApplyInfo.coverType === 1) { + if (!this.innApplyInfo.cover && this.innApplyInfo.coverType === 1) { this.$dialog.error('请上传店铺封面图片') return } - if (this.innApplyInfo.coverVideo.length === 0 && this.innApplyInfo.coverType === 2) { + if (!this.innApplyInfo.coverVideo && this.innApplyInfo.coverType === 2) { this.$dialog.error('请上传店铺封面视频') return } - if (this.innApplyInfo.ownerName.length === 0) { + if (!this.innApplyInfo.ownerName) { this.$dialog.error('请输入店主名字') return } - if (this.innApplyInfo.content.length === 0) { + if (!this.innApplyInfo.content) { this.$dialog.error('请输入一句话介绍') return } - if (this.innApplyInfo.desc.length === 0) { - this.$dialog.error('请输入店铺简介') - return - } + // if (!this.innApplyInfo.desc) { + // this.$dialog.error('请输入店铺简介') + // return + // } if (this.uploadedFilesArray.length === 0) { - this.$dialog.error('请上传至少一张店铺图片') + this.$dialog.error('请上传店铺图片') return } if (this.uploadedQualificationFilesArray.length === 0) { - this.$dialog.error('请上传至少一张店铺资质图片') + this.$dialog.error('请上传资质图片') return } // 深拷贝 diff --git a/pkg_join/views/shop.vue b/pkg_join/views/shop.vue index 804076f..835da90 100644 --- a/pkg_join/views/shop.vue +++ b/pkg_join/views/shop.vue @@ -538,7 +538,7 @@ export default { }, getCode() { if (this.reviewing) return - if (this.form.phone.length === 0) { + if (!this.form.phone) { uni.$u.toast('请输入手机号') return } diff --git a/pkg_join/views/supplier.vue b/pkg_join/views/supplier.vue index eed675e..9798c0d 100644 --- a/pkg_join/views/supplier.vue +++ b/pkg_join/views/supplier.vue @@ -719,7 +719,7 @@ export default { }, getCode() { if (this.reviewing) return - if (this.formSupplier.phone.length === 0) { + if (!this.formSupplier.phone) { uni.$u.toast('请输入手机号') return } diff --git a/pkg_join/views/wholesaler.vue b/pkg_join/views/wholesaler.vue index 0e9fb13..a5f49aa 100644 --- a/pkg_join/views/wholesaler.vue +++ b/pkg_join/views/wholesaler.vue @@ -328,7 +328,7 @@ export default { }, getCode() { if (this.reviewing) return - if (this.form.phone.length === 0) { + if (!this.form.phone) { uni.$u.toast('请输入手机号') return }