From a4a1fd8ce456d78d5541e04fdcfde4f2e60e1cb1 Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Thu, 21 Mar 2024 22:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E9=94=80=E7=AD=89=E7=BA=A7=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=95=86=E5=93=81=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/shopro/commission/Level.php | 4 +- .../view/shopro/commission/level/add.html | 210 +++++++++++------- .../view/shopro/commission/level/index.html | 31 ++- .../js/backend/shopro/commission/level.js | 43 +++- 4 files changed, 192 insertions(+), 96 deletions(-) diff --git a/application/admin/controller/shopro/commission/Level.php b/application/admin/controller/shopro/commission/Level.php index 9be5a42..21d4518 100755 --- a/application/admin/controller/shopro/commission/Level.php +++ b/application/admin/controller/shopro/commission/Level.php @@ -54,7 +54,7 @@ class Level extends Common return $this->view->fetch(); } - $params = $this->request->only(['name', 'level', 'image', 'commission_rules', 'upgrade_type', 'upgrade_rules']); + $params = $this->request->only(['name', 'level', 'image', 'commission_rules', 'upgrade_type', 'upgrade_rules', 'coupon_rules', 'total_consume']); $this->model->save($params); @@ -72,7 +72,7 @@ class Level extends Common return $this->view->fetch('add'); } - $params = $this->request->only(['level', 'name', 'image', 'commission_rules', 'upgrade_type', 'upgrade_rules']); + $params = $this->request->only(['level', 'name', 'image', 'commission_rules', 'upgrade_type', 'upgrade_rules', 'coupon_rules', 'total_consume']); $result = Db::transaction(function () use ($id, $params) { diff --git a/application/admin/view/shopro/commission/level/add.html b/application/admin/view/shopro/commission/level/add.html index 8cf5029..77bae24 100755 --- a/application/admin/view/shopro/commission/level/add.html +++ b/application/admin/view/shopro/commission/level/add.html @@ -89,94 +89,138 @@ - - + + + + + - - - - - - - - - - - - - - + + 选择商品券 + + - - + - - - - - - - - + + + + + + + + + + + + + + + + +