From a590c056b188c7d2735768b690e6e641734782f3 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 11 Mar 2024 17:27:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=88=E5=B9=B6=E5=9F=8E=E5=B8=82?= =?UTF-8?q?=E4=B9=8B=E5=90=8E,=20=E5=8F=AA=E8=A6=81=E6=9C=89=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=9F=8E=E5=B8=82=E6=9C=89=E6=95=B0=E6=8D=AE=E5=B0=B1?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5b88c34..efb9e60 100644 --- a/index.html +++ b/index.html @@ -389,6 +389,15 @@ for (const iterator of selectedCity.cii_sn_arr) { this.getData(Object.assign({}, _param, { CITY_SN: iterator }), true); } + if (this.feedbackItem.guide.length === 0 + && this.feedbackItem.driver.length === 0 + && this.feedbackItem.experience.length === 0 + && this.feedbackItem.hotel.length === 0 + ) { + this.error = true; + this.errorMsg = 'Data error.'; + return false; + } } else { this.getData(Object.assign({}, _param, { CITY_SN: selectedCity.cii_sn })); } @@ -419,8 +428,10 @@ ).then((res) => { that.loading = false; if (res.errcode !== 0) { - that.error = true; - that.errorMsg = 'Data error.'; + if (continually === false) { + that.error = true; + that.errorMsg = 'Data error.'; + } return false; } that.feedbackCity[`city_${res.feedbackEvaluation[0].feedback_cii_sn}`] = res;