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) } //关键词筛选数据(暂不用)