From 413a57e2524cb0b839d5d83d961de3b59814eb6e Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 24 Oct 2025 16:53:11 +0800
Subject: [PATCH] feat(ai): 实现产品依赖解锁功能 - 在AiMemberAnswerServiceImpl中注入AiProductDependencyService和AiMemberProductUnlockService - 修改insure方法,根据答题分数解锁符合条件的产品 - 新增selectListByProductIds和insertList方法到AiMemberProductUnlockService - 实现产品依赖关系查询方法selectListByProductId到AiProductDependencyService- 在AiProductServiceImpl中增加产品状态判断逻辑,支持锁定和解锁状态显示 - 添加memberId字段到ApiProductPageDto用于查询用户已解锁产品 - 在ApiProductVo中新增state字段表示产品锁定/解锁状态
---
src/main/resources/templates/febs/views/modules/vip/vipBenefits-add.html | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/main/resources/templates/febs/views/modules/vip/vipBenefits-add.html b/src/main/resources/templates/febs/views/modules/vip/vipBenefits-add.html
index acbf76e..08a7f5e 100644
--- a/src/main/resources/templates/febs/views/modules/vip/vipBenefits-add.html
+++ b/src/main/resources/templates/febs/views/modules/vip/vipBenefits-add.html
@@ -22,6 +22,7 @@
<select name="gainType" class="gain-type" lay-filter="gain-type-select">
<option value="1">会员日</option>
<option value="2">会员生日</option>
+ <option value="3">其他</option>
</select>
</div>
</div>
@@ -286,6 +287,7 @@
$(".linkContent").each(function(index, elem) {
var dataIndex = $(this).attr('data-index');
var $this = $(this);
+ $(this).off('blur')
$(this).on('blur', function() {
var data = $this.val();
hasData[dataIndex - 1].content = data;
@@ -300,6 +302,7 @@
$(".goodsSelect").each(function(index, elem) {
var dataIndex = $(this).attr('data-index');
+ $(this).off('click')
$(this).on('click', function() {
febs.modal.open('选择商品', 'modules/vip/config/goodsSelect/' + dataIndex, {
btn: ['提交', '取消'],
@@ -317,6 +320,8 @@
function listenerCouponSelect() {
$(".couponSelect").each(function(index, elem) {
var dataIndex = $(this).attr('data-index');
+
+ $(this).off('click')
$(this).on('click', function() {
febs.modal.open('选择优惠券', 'modules/vip/config/couponSelect/' + dataIndex, {
btn: ['提交', '取消'],
@@ -341,7 +346,10 @@
var data = {};
- data.linkType = linkTypeVal;
+
+ if (isClickVal == 1) {
+ data.linkType = linkTypeVal;
+ }
data.isClick = isClickVal;
addTableDate(data);
@@ -400,7 +408,7 @@
form.on('submit(vipBenefits-add-form-submit)', function (data) {
data.field.details = tableBenefitsItemsData;
$.ajax({
- 'url':ctx + 'admin/vip/benefits/addBenefits',
+ 'url':ctx + 'admin/vip/benefits/addOrEditBenefits',
'type':'post',
'dataType':'json',
'headers' : {'Content-Type' : 'application/json;charset=utf-8'}, //接口json格式
--
Gitblit v1.9.1