From c14c817698079029bd2d7edca075d8f6ebb8b03f Mon Sep 17 00:00:00 2001
From: ztt <835303992@qq.com>
Date: Thu, 28 Mar 2024 08:53:16 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E7=AD=89=E7=BA=A7=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../controller/shopro/commission/Level.php | 7 +++++++
.../view/shopro/commission/level/add.html | 8 ++++----
.../view/shopro/commission/level/index.html | 16 ++++++++--------
.../js/backend/shopro/commission/level.js | 19 +++++++++++++++++--
4 files changed, 36 insertions(+), 14 deletions(-)
diff --git a/application/admin/controller/shopro/commission/Level.php b/application/admin/controller/shopro/commission/Level.php
index 07cad25..f780a73 100755
--- a/application/admin/controller/shopro/commission/Level.php
+++ b/application/admin/controller/shopro/commission/Level.php
@@ -78,6 +78,13 @@ class Level extends Common
$params = $this->request->only(['level', 'name', 'image', 'commission_rules', 'upgrade_type', 'upgrade_rules', 'coupon_rules', 'total_consume']);
+// dd($params);
+ if ($params['level'] != 1) {
+ if (empty($params['coupon_rules']['programme_1'])) $this->error('请选择方案一');
+ if (empty($params['coupon_rules']['programme_2'])) $this->error('请选择方案二');
+ }
+
+
$result = Db::transaction(function () use ($id, $params) {
$this->svalidate($params);
diff --git a/application/admin/view/shopro/commission/level/add.html b/application/admin/view/shopro/commission/level/add.html
index 23cb8d0..6888c74 100755
--- a/application/admin/view/shopro/commission/level/add.html
+++ b/application/admin/view/shopro/commission/level/add.html
@@ -95,12 +95,12 @@
-
+
选择商品券
-
+