From d9361b75e7072b29535c571a76e0b9e7860d6805 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 06 Jan 2025 14:38:53 +0800
Subject: [PATCH] feat(mall): 后台活动列表添加分页和搜索功能 - 在 ActivityServiceImpl 中实现 getAdminListInPage 方法,支持分页和搜索 - 在 AdminActivityController 中添加 list 接口,返回分页数据 - 在 IActivityService 中定义 getAdminListInPage 接口 - 更新前端模板,根据活动状态控制按钮显示

---
 src/main/resources/templates/febs/views/modules/goods/goodsCouponUpdate.html |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsCouponUpdate.html b/src/main/resources/templates/febs/views/modules/goods/goodsCouponUpdate.html
index 5f29717..705a4ae 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsCouponUpdate.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsCouponUpdate.html
@@ -33,6 +33,13 @@
 
                                 <blockquote class="layui-elem-quote blue-border">规则</blockquote>
                                 <div class="layui-form-item">
+                                    <label class="layui-form-label">满减规则:</label>
+                                    <div class="layui-input-block">
+                                        <input type="radio" name="type" value="1" title="满减卷。满100只减10"  checked/>
+                                        <input type="radio" name="type" value="2" title="累计满减卷。每满100减10" />
+                                    </div>
+                                </div>
+                                <div class="layui-form-item">
                                     <label class="layui-form-label febs-form-item-require">满足:</label>
                                     <div class="layui-input-inline" style="width: 80px">
                                         <input type="text" name="costAmount" lay-verify="required" autocomplete="off" class="layui-input" >
@@ -135,6 +142,7 @@
             form.val("coupon-rule-update-form", {
                 "id": couponRule.id,
                 "name": couponRule.name,
+                "type": couponRule.type,
                 "expireDay": couponRule.expireDay,
                 "costAmount": couponRule.costAmount,
                 "realAmount": couponRule.realAmount
@@ -143,6 +151,12 @@
         }
 
         form.on('submit(coupon-rule-update-form-submit)', function (data) {
+            let type = data.field.type;
+            let costAmount = data.field.costAmount;
+            if(type == 2 && costAmount <= 0){
+                febs.alert.warn("累计满减卷,满足金额不能为0");
+                return false;
+            }
             let couponRuleList = couponRuleGoodsIds.getValue();
             if (couponRuleList.length > 0) {
                 var couponIds = [];

--
Gitblit v1.9.1