From 38d547d91d7eee81ed56ca6ceba7fd393952a082 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 12 May 2025 16:12:15 +0800
Subject: [PATCH] feat(sign): 增加签到获得会员经验或积分的功能 - 在 ApiSignVo 中添加 mostSignIn 字段,用于区分签到获得的类型 - 在 ScoreFlowTypeEnum 中新增 SIGN_EXPERIENCE 和 SIGN_SCORE 类型 - 修改 ScoreServiceImpl 中的签到逻辑,支持获得会员经验和积分 - 更新 ScoreSettingDto,添加 mostSignIn 字段用于配置签到获得类型 - 在前端设置页面添加签到获得类型的选项
---
src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html b/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html
index c8ce3c3..7281f70 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsCouponAdd.html
@@ -34,6 +34,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" >
@@ -131,6 +138,12 @@
form.on('submit(coupon-rule-add-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 = couponRule.getValue();
if (couponRuleList.length > 0) {
var couponIds = [];
--
Gitblit v1.9.1