From b0f5961a3571413a1a5a4cd9694a05186fa9c0a1 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 20 八月 2024 16:19:52 +0800 Subject: [PATCH] fix bug --- pages/order/order-detail.vue | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/pages/order/order-detail.vue b/pages/order/order-detail.vue index 8167276..9cac196 100644 --- a/pages/order/order-detail.vue +++ b/pages/order/order-detail.vue @@ -316,6 +316,14 @@ this.$message.showToast('未选择需要售后的商品') return } + if (!this.submitForm.reason) { + this.$message.showToast('未填写理由') + return + } + if (!this.submitForm.imageList || this.submitForm.imageList.length < 1) { + this.$message.showToast('未上传图片') + return + } await this.$message.confirm('确定申请售后吗') this.$message.showLoading() const { @@ -331,7 +339,9 @@ this.$message.showToast('提交成功') this.showSales = false this.$forceUpdate() - uni.navigateBack() + setTimeout(() => { + uni.navigateBack() + }, 1200) } }, }, -- Gitblit v1.9.3