From df864d1d636751424fd642d3bdd33c53cf63500d Mon Sep 17 00:00:00 2001 From: Administrator <15274802129@163.com> Date: Mon, 07 Jul 2025 17:51:09 +0800 Subject: [PATCH] feat(mall): 为活动订单项添加积分和成长值奖 - 在活动添加和编辑页面增加积分和成长值输入字段 - 更新活动实体类,添加 scoreCnt 和 growthCnt 字段 - 修改活动订单项处理逻辑,增加积分和成长值奖励的计算和发放 - 优化活动订单项状态检查逻辑,移除冗余代码 --- src/main/resources/templates/febs/views/modules/socialCircle/add.html | 40 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/socialCircle/add.html b/src/main/resources/templates/febs/views/modules/socialCircle/add.html index 72ae791..7e2e417 100644 --- a/src/main/resources/templates/febs/views/modules/socialCircle/add.html +++ b/src/main/resources/templates/febs/views/modules/socialCircle/add.html @@ -9,6 +9,34 @@ </ul> <div class="layui-tab-content"> <div class="layui-tab-item layui-show"> + <div class="layui-row layui-col-space10 layui-form-item"> + <div class="layui-col-lg6"> + <label class="layui-form-label febs-form-item-require">来源:</label> + <div class="layui-input-block"> + <select name="isNormal" class="goods-type" lay-filter="goods-type-select"> + <option value="1">普通社区内容</option> + <option value="2">视频号内容</option> + </select> + </div> + </div> + </div> + <blockquote class="layui-elem-quote blue-border febs-hide tc-set">视频号信息</blockquote> + <div class="layui-form-item febs-hide tc-set"> + <div class="layui-col-lg6"> + <label class="layui-form-label">视频号 id:</label> + <div class="layui-input-block"> + <input type="text" name="finderUserName" placeholder="请输入" autocomplete="off" class="layui-input"> + <div class="layui-form-mid layui-word-aux">视频号 id,以“sph”开头的id,可在视频号助手获取。</div> + </div> + </div> + <div class="layui-col-lg6"> + <label class="layui-form-label">视频 feedId:</label> + <div class="layui-input-block"> + <input type="text" name="feedId" placeholder="请输入" autocomplete="off" class="layui-input"> + </div> + </div> + </div> + <blockquote class="layui-elem-quote blue-border">基础信息</blockquote> <div class="layui-row layui-col-space10 layui-form-item"> <div class="layui-col-lg6"> @@ -25,6 +53,8 @@ </div> </div> </div> + + <div class="layui-row layui-col-space10 layui-form-item"> <div class="layui-col-lg6"> <label class="layui-form-label febs-form-item-require">封面:</label> @@ -245,5 +275,15 @@ return false; }); + form.on('select(goods-type-select)', function(data){ + $('.tc-set').each(function() { + if (data.value == 2) { + $(this).show(); + } else { + $(this).hide(); + } + }) + }); + }); </script> -- Gitblit v1.9.1