From 6dc5156074de848417965644e31fbe31b30848a6 Mon Sep 17 00:00:00 2001 From: hant Date: Sat, 7 Jun 2025 19:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=BD=95=E5=85=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/Order.php | 1 + public/assets/js/cascader.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/admin/controller/Order.php b/application/admin/controller/Order.php index 8fe58ad..e81ec9e 100644 --- a/application/admin/controller/Order.php +++ b/application/admin/controller/Order.php @@ -204,6 +204,7 @@ class Order extends Backend public function add() { + if (false === $this->request->isPost()) { return $this->view->fetch(); } diff --git a/public/assets/js/cascader.js b/public/assets/js/cascader.js index 3f9a47a..3b82dc2 100644 --- a/public/assets/js/cascader.js +++ b/public/assets/js/cascader.js @@ -278,14 +278,14 @@ datas.push({ label: `${prov.label} / ${city.label} / ${area.label}`, labels: [prov.label, city.label, area.label], - value: [prov.value, city.value, area.value], + value: [area.value], }) }) } else { datas.push({ label: `${prov.label} / ${city.label}`, labels: [prov.label, city.label], - value: [prov.value, city.value], + value: [ city.value], }) } }) @@ -318,6 +318,7 @@ }).sort(function(a, b) { return b.num - a.num }).slice(0, 10) + console.log(data); this.reload(data, true) } //关键词筛选数据(暂不用)