From b369afd0e204585cccc9d1203b2b3f333b1bbb12 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Mon, 12 Apr 2021 14:35:25 +0800 Subject: [PATCH 01/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=93=8D=E4=BD=9C=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/ActPageConfigUserinfo.java | 1 + .../mapper/activity/ActConfigMapper.xml | 2 +- .../activity/ActPageConfigGuideMapper.xml | 2 +- .../activity/ActPageConfigSubscribeMapper.xml | 2 +- .../activity/ActPageConfigUserinfoMapper.xml | 2 +- .../templates/activity/info/edit1.html | 28 +++++++------------ 6 files changed, 15 insertions(+), 22 deletions(-) diff --git a/sino-activity/src/main/java/com/sinosoft/activity/domain/ActPageConfigUserinfo.java b/sino-activity/src/main/java/com/sinosoft/activity/domain/ActPageConfigUserinfo.java index 8d6476e41..3a8967fd8 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/domain/ActPageConfigUserinfo.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/domain/ActPageConfigUserinfo.java @@ -246,4 +246,5 @@ public class ActPageConfigUserinfo extends BaseEntity .append("updateTime", getUpdateTime()) .toString(); } + } diff --git a/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml index 000343a8a..398aafdfc 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml @@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - where act_code = #{drawCode} diff --git a/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml index 0ca0e7386..112f0fd23 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml @@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - where act_code = #{drawCode} diff --git a/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml index 27c0ed19e..0b4753c3d 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml @@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - where act_code = #{drawCode} diff --git a/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml index dbc078e1e..940ce03ff 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml @@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where id = #{id} - where act_code = #{drawCode} diff --git a/sino-activity/src/main/resources/templates/activity/info/edit1.html b/sino-activity/src/main/resources/templates/activity/info/edit1.html index 06450c258..b0fdbff3d 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit1.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit1.html @@ -209,7 +209,6 @@
-
@@ -488,7 +487,7 @@ class="form-control" th:with="type=${@dict.getType('is_boolean')}"> + th:value="${dict.dictValue}" th:field="*{drawRule.DAILYFLAG}">
@@ -498,7 +497,7 @@
+ class="form-control" type="text" maxlength="30" disabled th:field="*{drawRule.DAILYNUMBER}">
@@ -509,7 +508,7 @@
- @@ -522,7 +521,7 @@
-
@@ -538,7 +537,7 @@
@@ -548,7 +547,7 @@
@@ -659,22 +658,19 @@
@@ -688,22 +684,18 @@
From 376a461ec05fe958fc575bba5786d7bf5d489a59 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Mon, 12 Apr 2021 16:15:31 +0800 Subject: [PATCH 02/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DrawInfoController.java | 26 +++++---- .../activity/mapper/DrawRuleMapper.java | 2 +- .../activity/service/IDrawInfoService.java | 2 + .../service/impl/DrawInfoServiceImpl.java | 53 +++++++++++++++++-- .../mapper/activity/ActConfigMapper.xml | 3 +- .../activity/ActPageConfigGuideMapper.xml | 3 +- .../activity/ActPageConfigSubscribeMapper.xml | 3 +- .../activity/ActPageConfigUserinfoMapper.xml | 3 +- .../mapper/activity/DrawRuleMapper.xml | 3 +- 9 files changed, 74 insertions(+), 24 deletions(-) diff --git a/sino-activity/src/main/java/com/sinosoft/activity/controller/DrawInfoController.java b/sino-activity/src/main/java/com/sinosoft/activity/controller/DrawInfoController.java index bfd8bb05d..19d4df37b 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/controller/DrawInfoController.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/controller/DrawInfoController.java @@ -188,16 +188,20 @@ public class DrawInfoController extends BaseController @Log(title = "抽奖活动管理", businessType = BusinessType.UPDATE) @PostMapping("/edit") @ResponseBody - public AjaxResult editSave(DrawInfo drawInfo) - { - logger.info("修改存储抽奖特殊规则对象传参:"+JSON.toJSONString(drawInfo)); - drawInfo.setLASTUPDATETIMESTAMP(new Date()); - drawInfoService.updateDrawInfo(drawInfo); - DrawRule drawRule = new DrawRule(); - BeanUtils.copyProperties(drawInfo,drawRule); - logger.info("修改存储抽奖特殊规则对象入参:"+JSON.toJSONString(drawRule)); - int i = iDrawRuleService.updateDrawRule(drawRule); - return toAjax(i); + public AjaxResult editSave(ActVO vo) + { + try{ + logger.info("前台传参"+ JSON.toJSONString(vo)); + Date date = new Date(); + + int i = drawInfoService.updateActVO(vo); + return toAjax(i); + } + catch (Exception e) { + e.printStackTrace(); + return AjaxResult.error("系统繁忙"); + } + } /** @@ -209,6 +213,8 @@ public class DrawInfoController extends BaseController @ResponseBody public AjaxResult remove(String ids) { + + return toAjax(drawInfoService.deleteDrawInfoByIds(ids)); } diff --git a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawRuleMapper.java b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawRuleMapper.java index b2c8bee51..65a8e6ac8 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawRuleMapper.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/mapper/DrawRuleMapper.java @@ -70,5 +70,5 @@ public interface DrawRuleMapper * 根据活动代码删除抽奖活动管理信息 * @param toStrArray */ - public void deleteDrawRuleByIdCode(String[] toStrArray); + public int deleteDrawRuleByIdCode(String[] toStrArray); } diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java index 206d1656b..1e2029118 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java @@ -2,6 +2,7 @@ package com.sinosoft.activity.service; import com.sinosoft.activity.domain.DrawInfo; +import com.sinosoft.activity.vo.ActVO; import java.util.List; @@ -68,4 +69,5 @@ public interface IDrawInfoService public int deleteDrawInfoById(String DRAWID); + public int updateActVO(ActVO vo); } diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java index 1401908e1..e4ca30f39 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java @@ -1,12 +1,14 @@ package com.sinosoft.activity.service.impl; import java.util.Arrays; +import java.util.Date; import java.util.List; import java.util.stream.Collectors; -import com.sinosoft.activity.domain.DrawInfo; +import com.sinosoft.activity.domain.*; import com.sinosoft.activity.mapper.*; import com.sinosoft.activity.service.IDrawInfoService; +import com.sinosoft.activity.vo.ActVO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -85,6 +87,7 @@ public class DrawInfoServiceImpl implements IDrawInfoService @Override public int updateDrawInfo(DrawInfo drawInfo) { + return drawInfoMapper.updateDrawInfo(drawInfo); } @@ -104,7 +107,7 @@ public class DrawInfoServiceImpl implements IDrawInfoService //根据ID查询抽奖活动信息 List drawInfos = drawInfoMapper.selectDrawInfoList(drawInfo); //删除活动管理信息 - int i = drawInfoMapper.deleteDrawInfoByIds(Convert.toStrArray(ids)); + drawInfoMapper.deleteDrawInfoByIds(Convert.toStrArray(ids)); List collect = drawInfos.stream().map(DrawInfo::getDRAWCODE).collect(Collectors.toList()); String policyEndorseNos = String.join(",",collect); @@ -117,7 +120,7 @@ public class DrawInfoServiceImpl implements IDrawInfoService //根据活动代码删除活动收集配置信息 actPageConfigUserinfoMapper.deleteActPageConfigUserinfoByCode(Convert.toStrArray(policyEndorseNos)); //根据活动代码删除抽奖活动管理信息 - drawRuleMapper.deleteDrawRuleByIdCode(Convert.toStrArray(policyEndorseNos)); + int i = drawRuleMapper.deleteDrawRuleByIdCode(Convert.toStrArray(policyEndorseNos)); return i; } @@ -132,4 +135,48 @@ public class DrawInfoServiceImpl implements IDrawInfoService { return drawInfoMapper.deleteDrawInfoById(DRAWID); } + + @Override + public int updateActVO(ActVO vo) { + Date date = new Date(); + + DrawInfo drawInfo = vo.getDrawInfo(); + drawInfo.setLASTUPDATETIMESTAMP(date); + + //修改抽奖活动管理对象 + String drawcode = drawInfo.getDRAWCODE(); + drawInfoMapper.updateDrawInfo(drawInfo); + + //修改活动配置 + ActConfig actConfig = vo.getActConfig(); + actConfig.setUpdateTime(date); + actConfig.setActCode(drawcode); + actConfigMapper.updateActConfig(actConfig); + + //修改活动展示内容配置 + ActPageConfigGuide actPageConfigGuide = vo.getActPageConfigGuide(); + actPageConfigGuide.setUpdateTime(date); + actPageConfigGuide.setActCode(drawcode); + actPageConfigGuideMapper.updateActPageConfigGuide(actPageConfigGuide); + + + //修改活动收集配置 + ActPageConfigSubscribe actPageConfigSubscribe = vo.getActPageConfigSubscribe(); + actPageConfigSubscribe.setUpdateTime(date); + actPageConfigSubscribe.setActCode(drawcode); + actPageConfigSubscribeMapper.updateActPageConfigSubscribe(actPageConfigSubscribe); + + //修改活动用户信息 + ActPageConfigUserinfo actPageConfigUserinfo = vo.getActPageConfigUserinfo(); + actPageConfigUserinfo.setUpdateTime(date); + actPageConfigUserinfo.setActCode(drawcode); + actPageConfigUserinfoMapper.updateActPageConfigUserinfo(actPageConfigUserinfo); + + //修改查询抽奖活动管理对象 + DrawRule drawRule = vo.getDrawRule(); + drawRule.setDRAWCODE(drawcode); + drawRule.setLASTUPDATETIMESTAMP(date); + int i = drawRuleMapper.updateDrawRule(drawRule); + return i; + } } diff --git a/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml index 3e0face9f..0b311ab89 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActConfigMapper.xml @@ -78,7 +78,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" page_style = #{pageStyle}, act_type = #{actType}, - act_code = #{actCode}, act_name = #{actName}, share_title = #{shareTitle}, share_desc = #{shareDesc}, @@ -87,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_time = #{createTime}, update_time = #{updateTime}, - where id = #{id} + where act_code = #{actCode} diff --git a/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml index 67e3f8947..477e9ec77 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActPageConfigGuideMapper.xml @@ -76,7 +76,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update act_page_config_guide - act_code = #{actCode}, act_title = #{actTitle}, act_desc = #{actDesc}, bg_img = #{bgImg}, @@ -87,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_time = #{createTime}, update_time = #{updateTime}, - where id = #{id} + where act_code = #{actCode} diff --git a/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml index 3c7f1e1eb..4740574fd 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActPageConfigSubscribeMapper.xml @@ -60,14 +60,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update act_page_config_subscribe - act_code = #{actCode}, description = #{description}, bg_img = #{bgImg}, qr_code = #{qrCode}, create_time = #{createTime}, update_time = #{updateTime}, - where id = #{id} + where act_code = #{actCode} diff --git a/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml b/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml index 70b0a1a51..d088c24dd 100644 --- a/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/ActPageConfigUserinfoMapper.xml @@ -104,7 +104,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update act_page_config_userinfo - act_code = #{actCode}, title = #{title}, description = #{description}, bg_img = #{bgImg}, @@ -122,7 +121,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" create_time = #{createTime}, update_time = #{updateTime}, - where id = #{id} + where act_code = #{actCode} diff --git a/sino-activity/src/main/resources/mapper/activity/DrawRuleMapper.xml b/sino-activity/src/main/resources/mapper/activity/DrawRuleMapper.xml index d06ff8e6b..dc97d0a9a 100644 --- a/sino-activity/src/main/resources/mapper/activity/DrawRuleMapper.xml +++ b/sino-activity/src/main/resources/mapper/activity/DrawRuleMapper.xml @@ -89,7 +89,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update draw_rule - DRAWCODE = #{DRAWCODE}, FIRSTFLAG = #{FIRSTFLAG}, FIRSTAWARDPRIZE = #{FIRSTAWARDPRIZE}, DAILYFLAG = #{DAILYFLAG}, @@ -102,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" LASTUPDATETIMESTAMP = #{LASTUPDATETIMESTAMP}, WILLDRAWAWARDNUMBER = #{WILLDRAWAWARDNUMBER}, - where DRAWRULEID = #{DRAWRULEID} + where DRAWCODE = #{DRAWCODE} From 67ec8a8870c90acedce348cddff1d163583553c0 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Mon, 12 Apr 2021 16:21:21 +0800 Subject: [PATCH 03/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=93=8D=E4=BD=9C=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/edit1.html | 68 ++++++++++++++++--- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/edit1.html b/sino-activity/src/main/resources/templates/activity/info/edit1.html index b0fdbff3d..de8eb53ad 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit1.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit1.html @@ -208,7 +208,8 @@
- + +
- +
@@ -384,7 +384,7 @@ + maxlength="30" onkeyup="updatePic(this)" th:value="*{actPageConfigGuide.btnText}">
@@ -397,7 +397,7 @@ + maxlength="30" th:value="*{actPageConfigGuide.btnLink}"> @@ -409,7 +409,7 @@
+ maxlength="30" onkeyup="updatePic(this)" th:value="*{actPageConfigGuide.btnText2}">
@@ -422,7 +422,7 @@ + maxlength="30" th:value="*{actPageConfigGuide.btnLink2}"> @@ -453,7 +453,7 @@ - +

活动规则

@@ -510,7 +510,7 @@
- @@ -523,7 +523,7 @@
-
@@ -549,7 +549,7 @@
@@ -580,7 +580,7 @@
@@ -592,7 +592,7 @@
@@ -604,7 +604,7 @@
@@ -628,7 +628,7 @@ - @@ -638,7 +638,7 @@
@@ -650,7 +650,7 @@
@@ -767,7 +767,7 @@
@@ -780,7 +780,7 @@
@@ -793,7 +793,7 @@
@@ -816,7 +816,7 @@ data-dismiss="fileinput">清除 - + @@ -849,7 +849,7 @@
@@ -874,7 +874,7 @@
@@ -896,7 +896,7 @@
From e9984d43b20b7c7fe3a1f519d46a84cf9710cdaa Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Tue, 13 Apr 2021 09:17:41 +0800 Subject: [PATCH 07/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8B=E6=8B=89=E6=A1=86=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/add.html | 37 +++++-------------- .../templates/activity/info/edit1.html | 8 ++++ 2 files changed, 18 insertions(+), 27 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index c9f48c98a..7da3325d9 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -471,7 +471,11 @@
@@ -546,7 +550,12 @@
+ class="form-control" type="text" maxlength="30" + th:with="drawPrize=${@drawPrize.findDrawPrizeInfoList()}" + disabled> + +
@@ -906,32 +915,6 @@ + + + \ No newline at end of file diff --git a/sino-activity/src/main/resources/templates/activity/info/edit1.html b/sino-activity/src/main/resources/templates/activity/info/edit1.html deleted file mode 100644 index bb0854d4e..000000000 --- a/sino-activity/src/main/resources/templates/activity/info/edit1.html +++ /dev/null @@ -1,1321 +0,0 @@ - - - - - - - - - - -
- - - -
- -
-
-
- -

第1步-基本信息

-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
-
- - -
-
-
-
-
-
- -
-
- - -
-
-
-
-
- -
-
-
-
-

第2步-选择UI模板

-
- - -
- -

暂不选择

- -
-
-
-
-
-

第3步-配置展现内容

-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- - -
-
- -
-
- 选择图片更改 - - 清除 -
-
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
- -
-
-

效果图

-
- - 活动标题 - 活动描述 - - 自定义按钮1 - - - 自定义按钮2 - -
-
-
-
-
-

第4步-选择玩法

-
- - -
- - -

活动规则

- -
-
-
-
-

第五步-配置收集信息

-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- - -
-
-
-
-
-
- - -
-
- -
-
- 选择图片更改 - - 清除 - -
-
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
- -
- - - - -
-
-
-
-
- - -
-

效果图

-
- - 标题 - 描述 - 请填写您的基本信息 -
- - 信息页文本协议提示 -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - - 自定义按钮 - -
-
- -
-
-
-
-
-

第六步-配置分享信息

-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
- - -
-
- -
-
- 选择图片更改 - - 清除 -
-
- -
-
-
-
-

效果图

-
-
- -
-
- -
-
- 中国人寿举办活动 -
- 分享必得奖品 - -
-
-
-
-
-
-
-

第七步-关注二维码

-
-
-
- -
- -
-
-
-
-
-
- -
-
- -
-
- 选择图片更改 - - 清除 -
-
-
- -
-
-
- -
-
- -
-
- 选择图片更改 - - 清除 -
-
-
- -
-
-
-

效果图

-
- -
- -
- - 关注二维码 - -
-
-
-
- -
-
- -
- - - - - - - - - \ No newline at end of file From a6b04cf91fcea408a6d0af229094fe42c4bb5880 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 10:38:45 +0800 Subject: [PATCH 13/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/edit.html | 1312 ----------------- 1 file changed, 1312 deletions(-) delete mode 100644 sino-activity/src/main/resources/templates/activity/info/edit.html diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html deleted file mode 100644 index 4c9ebc64e..000000000 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ /dev/null @@ -1,1312 +0,0 @@ - - - - - - - - - - -
-
- - -
- -
-
-
- -

第1步-基本信息

-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
-
- - -
-
-
-
-
-
- -
-
- - -
-
-
-
-
- -
-
-
-
-

第2步-选择UI模板

-
- - -
- -

暂不选择

- -
-
-
-
-
-

第3步-配置展现内容

-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
- -
- - -
-
- -
-
- 选择图片更改 - - 清除 -
-
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
- -
-
-

效果图

-
- - 活动标题 - 活动描述 - - 自定义按钮1 - - - 自定义按钮2 - -
-
-
-
-
-

第4步-选择玩法

-
- - -
- - -

活动规则

- -
-
-
-
-

第五步-配置收集信息

-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- - -
-
-
-
-
-
- - -
-
- -
-
- 选择图片更改 - - 清除 - -
-
- -
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- - - - -
-
-
-
-
-
-
- -
- - - - -
-
-
-
-
- - -
-

效果图

-
- - 标题 - 描述 - 请填写您的基本信息 -
- - 信息页文本协议提示 -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- - - 自定义按钮 - -
-
- -
-
-
-
-
-

第六步-配置分享信息

-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
-
- -
- -
-
-
-
-
-
- - -
-
- -
-
- 选择图片更改 - - 清除 -
-
- -
-
-
-
-

效果图

-
-
- -
-
- -
-
- 中国人寿举办活动 -
- 分享必得奖品 - -
-
-
-
-
-
-
-

第七步-关注二维码

-
-
-
- -
- -
-
-
-
-
-
- -
-
- -
-
- 选择图片更改 - - 清除 -
-
-
- -
-
-
- -
-
- -
-
- 选择图片更改 - - 清除 -
-
-
- -
-
-
-

效果图

-
- -
- -
- - 关注二维码 - -
-
-
-
- -
-
- -
- - - - - - - - - \ No newline at end of file From f29b950cec7205e11660b63f0620743d2dddfab6 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 10:39:08 +0800 Subject: [PATCH 14/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/edit.html | 1312 +++++++++++++++++ 1 file changed, 1312 insertions(+) create mode 100644 sino-activity/src/main/resources/templates/activity/info/edit.html diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html new file mode 100644 index 000000000..4c9ebc64e --- /dev/null +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -0,0 +1,1312 @@ + + + + + + + + + + +
+
+ + +
+ +
+
+
+ +

第1步-基本信息

+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+
+ + +
+
+
+
+
+
+ +
+
+ + +
+
+
+
+
+ +
+
+
+
+

第2步-选择UI模板

+
+ + +
+ +

暂不选择

+ +
+
+
+
+
+

第3步-配置展现内容

+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+ +
+ + +
+
+ +
+
+ 选择图片更改 + + 清除 +
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+ +
+
+

效果图

+
+ + 活动标题 + 活动描述 + + 自定义按钮1 + + + 自定义按钮2 + +
+
+
+
+
+

第4步-选择玩法

+
+ + +
+ + +

活动规则

+ +
+
+
+
+

第五步-配置收集信息

+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ + +
+
+
+
+
+
+ + +
+
+ +
+
+ 选择图片更改 + + 清除 + +
+
+ +
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ + + + +
+
+
+
+
+
+
+ +
+ + + + +
+
+
+
+
+ + +
+

效果图

+
+ + 标题 + 描述 + 请填写您的基本信息 +
+ + 信息页文本协议提示 +
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ + + 自定义按钮 + +
+
+ +
+
+
+
+
+

第六步-配置分享信息

+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+
+ +
+ +
+
+
+
+
+
+ + +
+
+ +
+
+ 选择图片更改 + + 清除 +
+
+ +
+
+
+
+

效果图

+
+
+ +
+
+ +
+
+ 中国人寿举办活动 +
+ 分享必得奖品 + +
+
+
+
+
+
+
+

第七步-关注二维码

+
+
+
+ +
+ +
+
+
+
+
+
+ +
+
+ +
+
+ 选择图片更改 + + 清除 +
+
+
+ +
+
+
+ +
+
+ +
+
+ 选择图片更改 + + 清除 +
+
+
+ +
+
+
+

效果图

+
+ +
+ +
+ + 关注二维码 + +
+
+
+
+ +
+
+ +
+ + + + + + + + + \ No newline at end of file From 0bbbb3615253246fd86ba39c2faa30a8adfd86c4 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 10:40:05 +0800 Subject: [PATCH 15/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/activity/info/edit.html | 1 - 1 file changed, 1 deletion(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 4c9ebc64e..ac6ed2618 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -933,7 +933,6 @@ /**获取奖品及信息列表*/ $(document).ready(function () { var DAILYFLAG = $("#DAILYFLAG").val(); - alert(DAILYFLAG); if(DAILYFLAG==0){ $("#dailynumber").attr('disabled','true'); $("#dailystarttime").attr('disabled','true'); From 01d592a093ee368c705d33ad0e599a5cc8f8b8b5 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 10:45:40 +0800 Subject: [PATCH 16/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/activity/info/edit.html | 1 + 1 file changed, 1 insertion(+) diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index ac6ed2618..28f151048 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -1059,6 +1059,7 @@ } $.operate.successTabCallback(result); } + }) }); var btnCancel = $('').text('取消') .addClass('btn btn-danger') From 4b21e1a86916225ab69e4f5881566a0429e05677 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Tue, 13 Apr 2021 11:24:42 +0800 Subject: [PATCH 17/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B8=BA=E7=A9=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/edit.html | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 28f151048..36d22dae6 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -947,8 +947,6 @@ if(FIRSTFLAG==0){ $("#firstawardprize").attr('disabled','true'); } - - }); $("#form-info-add").validate({ @@ -1109,9 +1107,17 @@ var picval = $("#picval").val(); $("#picimg").attr("src", picval); var btn1 = $("#btn1").val(); - $("#btn1Pic").text(btn1); + if (btn1!= null && btn1 != ''){ + $("#btn1Pic").text(btn1); + }else{ + $("#btn1Pic").text("自定义按钮1"); + } var btn2 = $("#btn2").val(); - $("#btn2Pic").text(btn2); + if (btn2!= null && btn2 != ''){ + $("#btn2Pic").text(btn2); + }else{ + $("#btn2Pic").text("自定义按钮2"); + } //加载步骤4数据 var val = $("#activityPlayval").val(); $("a[id = 'activityPlay']").each(function (){ @@ -1134,7 +1140,11 @@ var agreement = $("#agreement").val(); $("#agreementPri").text(agreement); var btn = $("#btn").val(); - $("#btnPri").text(btn); + if (btn!= null && btn != ''){ + $("#btnPri").text(btn); + }else{ + $("#btnPri").text("自定义按钮"); + } var pictureval = $("#pictureval").val(); $("#pictureimg").attr("src", picval); $("input[type='checkbox'][name ^='actPageConfigUserinfo']").each(function (){ @@ -1292,7 +1302,7 @@ } function activityTemplate(val) { - var path = "../../img/act/"; + var path = "../../../img/act/"; $(val).addClass('btn-success').siblings().removeClass('btn-success'); var id = val.id; var valus = $("#"+id+".btn-success").attr("value"); From fde75a9b3629723253d3ec377f0245c2e8c5293c Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 14:20:17 +0800 Subject: [PATCH 18/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/activity/info/add.html | 12 +++++------- .../resources/templates/activity/info/edit.html | 17 ++++++----------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index 91bcc5059..856266eca 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -605,10 +605,9 @@
- -
- + +
+
@@ -789,9 +788,8 @@
-
- +
+
diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 36d22dae6..b8db8ab4c 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -606,11 +606,8 @@
-
- - +
+
@@ -795,10 +792,8 @@
-
- +
+
@@ -828,7 +823,7 @@

效果图

- +
@@ -1116,7 +1111,7 @@ if (btn2!= null && btn2 != ''){ $("#btn2Pic").text(btn2); }else{ - $("#btn2Pic").text("自定义按钮2"); + $("#btn2Pic").text("自定义按钮2"); } //加载步骤4数据 var val = $("#activityPlayval").val(); From a184dad08a18d08ae2b7af408cd209a1c6e03b3b Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 15:13:21 +0800 Subject: [PATCH 19/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/activity/info/add.html | 14 +------------- .../resources/templates/activity/info/edit.html | 12 ------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index 856266eca..f973f9d89 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -644,18 +644,6 @@
-
-
-
- -
- -
-
-
-
@@ -817,7 +805,7 @@

效果图

- +
diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index b8db8ab4c..d266ed9db 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -646,18 +646,6 @@
-
-
-
- -
- -
-
-
-
From b04807c0c59e58a796699118d6cf4abdc6e4dc28 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Tue, 13 Apr 2021 16:23:21 +0800 Subject: [PATCH 20/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/add.html | 76 ++++++++++++------- .../templates/activity/info/edit.html | 70 +++++++++++------ 2 files changed, 94 insertions(+), 52 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index 856266eca..a091f26da 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -7,6 +7,18 @@ -
+
- +
+
+
+
-
+
@@ -322,7 +337,7 @@

暂不选择

- +
@@ -377,7 +392,7 @@
- @@ -385,25 +400,25 @@
-
-
-
- -
- -
-
-
-
+ + + + + + + + + + + + +
-
@@ -413,13 +428,14 @@
- -
- -
+ + + + + +
+ +
@@ -575,7 +591,7 @@
-
+

第五步-配置收集信息

@@ -900,9 +916,12 @@
-
+
+
+
+
@@ -1193,6 +1212,7 @@ $("#activityPlaydiv").css('display','block');//显示 }else{ $("#activityPlaydiv").css('display','none');//隐藏 + $('#smartwizard').smartWizard(); } } diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index b8db8ab4c..b77d34bf6 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -7,6 +7,17 @@ -
+
+
+
+
+

暂不选择

- +
@@ -379,7 +394,7 @@
- @@ -387,25 +402,25 @@
-
-
-
- -
- -
-
-
-
+ + + + + + + + + + + + +
-
@@ -415,12 +430,13 @@
- -
- + + + + + +
+
@@ -444,6 +460,7 @@
+

第4步-选择玩法

+
-
+

第五步-配置收集信息

@@ -915,6 +933,10 @@
+
+
+
+
From 8f1b28da10c7b40490282804874e860a007781f9 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Tue, 13 Apr 2021 16:30:27 +0800 Subject: [PATCH 21/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/add.html | 76 ++++++++++++------- .../templates/activity/info/edit.html | 70 +++++++++++------ 2 files changed, 94 insertions(+), 52 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index f973f9d89..798dd061b 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -7,6 +7,18 @@ -
+
- +
+
+ @@ -1181,6 +1200,7 @@ $("#activityPlaydiv").css('display','block');//显示 }else{ $("#activityPlaydiv").css('display','none');//隐藏 + $('#smartwizard').smartWizard(); } } diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index d266ed9db..7c2f10fa1 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -7,6 +7,17 @@ -
+
+
+ From fbecd5c611712428b000ad2fde88717670adebf8 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 17:06:10 +0800 Subject: [PATCH 22/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity/service/IDrawInfoService.java | 6 ++++- .../service/impl/DrawInfoServiceImpl.java | 5 ++++ .../templates/activity/info/add.html | 27 +++++++------------ .../templates/activity/info/edit.html | 26 ++++++------------ 4 files changed, 27 insertions(+), 37 deletions(-) diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java index 1e2029118..10572ff94 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/IDrawInfoService.java @@ -68,6 +68,10 @@ public interface IDrawInfoService */ public int deleteDrawInfoById(String DRAWID); - + /** + * 新增抽奖活动信息 + * @param vo + * @return + */ public int updateActVO(ActVO vo); } diff --git a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java index e4ca30f39..d2010bf00 100644 --- a/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java +++ b/sino-activity/src/main/java/com/sinosoft/activity/service/impl/DrawInfoServiceImpl.java @@ -136,6 +136,11 @@ public class DrawInfoServiceImpl implements IDrawInfoService return drawInfoMapper.deleteDrawInfoById(DRAWID); } + /** + * 新增抽奖活动信息 + * @param vo + * @return + */ @Override public int updateActVO(ActVO vo) { Date date = new Date(); diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index 798dd061b..d8221cf1f 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -152,19 +152,21 @@ /* 配置分享信息*/ .drawShareTitlePri { + text-align: center; position: absolute; - top: 45%; + top: 20%; font-size: 20px; - left: 73%; + right : 5%; color: #F00; width: 100%; } .drawShareDescribePri { + text-align: center; position: absolute; top: 50%; font-size: 10px; - left: 73%; + right : 8%; color: #F00; width: 100%; } @@ -172,22 +174,13 @@ .drawShareImgPic { text-align: center; position: absolute; - top: 52%; + top: 50%; font-size: 37px; - left: 38%; + left: 25%; color: #F00; width: 100%; } - .drawShareImg2Pic { - text-align: center; - position: absolute; - top: 40%; - font-size: 37px; - left: 30%; - color: #F00; - width: 100%; - } /* 关注二维码*/ @@ -819,10 +812,8 @@

效果图

-
-
- -
+
+
diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 7c2f10fa1..2702013bc 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -151,19 +151,21 @@ /* 配置分享信息*/ .drawShareTitlePri { + text-align: center; position: absolute; - top: 45%; + top: 20%; font-size: 20px; - left: 73%; + right : 5%; color: #F00; width: 100%; } .drawShareDescribePri { + text-align: center; position: absolute; top: 50%; font-size: 10px; - left: 73%; + right : 8%; color: #F00; width: 100%; } @@ -171,19 +173,9 @@ .drawShareImgPic { text-align: center; position: absolute; - top: 52%; + top: 50%; font-size: 37px; - left: 38%; - color: #F00; - width: 100%; - } - - .drawShareImg2Pic { - text-align: center; - position: absolute; - top: 40%; - font-size: 37px; - left: 30%; + left: 25%; color: #F00; width: 100%; } @@ -827,10 +819,8 @@

效果图

-
-
+
-
From 5a2f2edbde2dac0cab92df416c6b35b14d9bdd70 Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Tue, 13 Apr 2021 17:50:54 +0800 Subject: [PATCH 23/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/activity/info/add.html | 11 +++++------ .../main/resources/templates/activity/info/edit.html | 10 ++++------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index d8221cf1f..e24a5c833 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -156,7 +156,7 @@ position: absolute; top: 20%; font-size: 20px; - right : 5%; + left: 0%; color: #F00; width: 100%; } @@ -166,7 +166,7 @@ position: absolute; top: 50%; font-size: 10px; - right : 8%; + left: 0%; color: #F00; width: 100%; } @@ -814,13 +814,12 @@

效果图

+ 中国人寿举办活动 + 分享必得奖品 +
-
- 中国人寿举办活动 -
- 分享必得奖品
diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 2702013bc..cd6fcd81a 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -155,7 +155,7 @@ position: absolute; top: 20%; font-size: 20px; - right : 5%; + left: 0%; color: #F00; width: 100%; } @@ -165,7 +165,7 @@ position: absolute; top: 50%; font-size: 10px; - right : 8%; + left: 0%; color: #F00; width: 100%; } @@ -821,13 +821,11 @@

效果图

+ 中国人寿举办活动 + 分享必得奖品
-
- 中国人寿举办活动 -
- 分享必得奖品
From ba61bfe793a217f08b3a4d28f5df1f98652cde83 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Wed, 14 Apr 2021 09:07:01 +0800 Subject: [PATCH 24/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/add.html | 18 ++++++++--------- .../templates/activity/info/edit.html | 20 +++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index d8221cf1f..6f7380d1b 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -333,8 +333,8 @@
-
-
+
+

第3步-配置展现内容

@@ -450,7 +450,7 @@
-
+ -
-
+
+

第五步-配置收集信息

@@ -753,8 +753,8 @@
-
-
+
+

第六步-配置分享信息

@@ -826,8 +826,8 @@
-
-
+
+

第七步-关注二维码

diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 2702013bc..13c2d842a 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -332,8 +332,8 @@
-
-
+
+

第3步-配置展现内容

@@ -451,8 +451,8 @@
-
-
+
+

第4步-选择玩法

-
-
+
+

第五步-配置收集信息

@@ -756,8 +756,8 @@
-
-
+
+

第六步-配置分享信息

@@ -833,8 +833,8 @@
-
-
+
+

第七步-关注二维码

From 5234676de514271f7c89c536e2fb53243fae55d2 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Wed, 14 Apr 2021 10:58:28 +0800 Subject: [PATCH 25/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/activity/info/add.html | 13 +++++++++---- .../resources/templates/activity/info/edit.html | 8 ++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index 987c6d912..57c1a9b89 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -320,7 +320,7 @@
-
+

第2步-选择UI模板

- +
+ +

活动规则

-
+

第2步-选择UI模板

@@ -452,7 +452,7 @@
-
+

第4步-选择玩法

Date: Wed, 14 Apr 2021 10:59:37 +0800 Subject: [PATCH 26/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/activity/info/edit.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sino-activity/src/main/resources/templates/activity/info/edit.html b/sino-activity/src/main/resources/templates/activity/info/edit.html index 3de324615..debeb3d18 100644 --- a/sino-activity/src/main/resources/templates/activity/info/edit.html +++ b/sino-activity/src/main/resources/templates/activity/info/edit.html @@ -1308,8 +1308,12 @@ $("#"+id+"img").attr("src",path+valus+".jpg"); if (valus != "0"){ $("#activityPlaydiv").css('display','block');//显示 + $("#activityTemplateimg").css('display','block');//显示 + $("#activityPlayimg").css('display','block');//显示 }else{ $("#activityPlaydiv").css('display','none');//隐藏 + $("#activityTemplateimg").css('display','none'); + $("#activityPlayimg").css('display','none'); } } From 1ffa1410556af86c37eebd94dd0d56c5de20591e Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Wed, 14 Apr 2021 13:46:54 +0800 Subject: [PATCH 27/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/activity/info/add.html | 36 +++++++++---------- .../templates/activity/info/edit.html | 36 +++++++++---------- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/sino-activity/src/main/resources/templates/activity/info/add.html b/sino-activity/src/main/resources/templates/activity/info/add.html index 57c1a9b89..451d8d305 100644 --- a/sino-activity/src/main/resources/templates/activity/info/add.html +++ b/sino-activity/src/main/resources/templates/activity/info/add.html @@ -8,17 +8,17 @@ -
+
@@ -333,7 +334,7 @@
-
+

第3步-配置展现内容

@@ -418,19 +419,18 @@
-
-
-
+
+
+
- - - - -
- +
+
+
+ 例如:http://xx
+
+
-
@@ -908,6 +908,7 @@ + + + + + + + + + + + +
+

+

+ +

+

+ +
+ + + + + + + + \ No newline at end of file From 3746c7d3dee9e96d8cdc75dd197d176c06b72851 Mon Sep 17 00:00:00 2001 From: dy <1197793912@qq.com> Date: Thu, 15 Apr 2021 15:32:28 +0800 Subject: [PATCH 32/33] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E7=AE=A1=E7=90=86-?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sino-act-web/src/main/resources/public/draw/actGuide.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sino-act-web/src/main/resources/public/draw/actGuide.html b/sino-act-web/src/main/resources/public/draw/actGuide.html index a2052961e..204474061 100644 --- a/sino-act-web/src/main/resources/public/draw/actGuide.html +++ b/sino-act-web/src/main/resources/public/draw/actGuide.html @@ -78,9 +78,6 @@ From 87ada3cbe7d8a7defd68dba928f65286d59a6d6a Mon Sep 17 00:00:00 2001 From: xu0625 <1212> Date: Thu, 15 Apr 2021 16:59:29 +0800 Subject: [PATCH 33/33] =?UTF-8?q?=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=89=8D=E7=AB=AF=E5=BC=80?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 + .../web/controller/draw/DrawController.java | 58 ++++++++- .../vo/draw/ActPageConfigSubscribeResult.java | 18 +++ .../vo/draw/ActPageConfigUserinfoResult.java | 21 ++++ .../main/resources/public/draw/qrCode.html | 111 ++++++++++++++++++ 5 files changed, 206 insertions(+), 4 deletions(-) create mode 100644 sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigSubscribeResult.java create mode 100644 sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigUserinfoResult.java create mode 100644 sino-act-web/src/main/resources/public/draw/qrCode.html diff --git a/pom.xml b/pom.xml index d29292ca4..bb389d57d 100644 --- a/pom.xml +++ b/pom.xml @@ -238,6 +238,8 @@ ruoyi-generator sino-activity ruoyi-common + sino-act-web + pom diff --git a/sino-act-web/src/main/java/com/ruoyi/web/controller/draw/DrawController.java b/sino-act-web/src/main/java/com/ruoyi/web/controller/draw/DrawController.java index eb539034f..9620aef26 100644 --- a/sino-act-web/src/main/java/com/ruoyi/web/controller/draw/DrawController.java +++ b/sino-act-web/src/main/java/com/ruoyi/web/controller/draw/DrawController.java @@ -3,10 +3,11 @@ package com.ruoyi.web.controller.draw; import com.ruoyi.web.vo.Const; import com.ruoyi.web.vo.Result; import com.ruoyi.web.vo.draw.*; -import com.sinosoft.activity.domain.ActConfig; -import com.sinosoft.activity.domain.ActPageConfigGuide; -import com.sinosoft.activity.domain.DrawConfig; -import com.sinosoft.activity.domain.DrawInfo; +import com.sinosoft.activity.domain.*; +import com.sinosoft.activity.service.IActPageConfigUserinfoService; +import com.sinosoft.activity.service.IDrawConfigService; +import com.sinosoft.activity.service.IDrawInfoService; +import com.sinosoft.activity.service.IDrawTaskNotifyService; import com.sinosoft.activity.service.*; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; @@ -53,6 +54,11 @@ public class DrawController { private IActPageConfigGuideService actPageConfigGuideService; @Autowired private IActConfigService actConfigService; + @Autowired + private IActPageConfigSubscribeService iActPageConfigSubscribeService; + + @Autowired + private IActPageConfigUserinfoService iActPageConfigUserinfoService; private WxOAuth2UserInfo getUserInfo(HttpServletRequest request, String code) throws Exception { // if (!this.wxService.switchover(appid)) { @@ -204,6 +210,23 @@ public class DrawController { return result; } + @RequestMapping(value="/info.action", method = RequestMethod.POST) + @ResponseBody + public ActPageConfigUserinfoResult info(HttpServletRequest request, String drawCode) { + ActPageConfigUserinfoResult result = new ActPageConfigUserinfoResult(); + logger.info("活动编码"+drawCode); + try{ + List prizes = new ArrayList(); + ActPageConfigUserinfo actPageConfigUserinfo = iActPageConfigUserinfoService.selectActPageConfigUserinfoByCode(drawCode); + prizes.add(actPageConfigUserinfo); + result.setActPageConfigUserinfo(prizes); + }catch (Exception e){ + result.setRespCode("-1"); + result.setRespMsg("系统异常,请稍后再试"); + logger.error("DrawController.prizes ex: ", e); + } + return result; + } @RequestMapping(value="/prizes.action", method = RequestMethod.POST) @ResponseBody public PrizeResult prizes(HttpServletRequest request, String drawCode, String isAll) { @@ -383,5 +406,32 @@ public class DrawController { return result; } + /** + * 获取活动配置展示信息,根据活动编码 + * + * @param request + * @param actCode + * @return + */ + @ApiOperation("获取二维码信息") + @ApiImplicitParam(name = "actCode", value = "活动编码", required = true, dataType = "string", paramType = "path") + @RequestMapping(value="/qrCode", method = RequestMethod.POST) + @ResponseBody + public ActPageConfigSubscribeResult qrcode(HttpServletRequest request, String actCode) { + ActPageConfigSubscribeResult result = new ActPageConfigSubscribeResult (); + try { + List list = new ArrayList<>(); + + ActPageConfigSubscribe subscribe = iActPageConfigSubscribeService.selectActPageConfigSubscribeByCode(actCode); + list.add(subscribe); + result.setActPageConfigSubscribe(list); + }catch (Exception e){ + result.setRespCode("-1"); + result.setRespMsg("系统异常,请稍后再试"); + logger.error("DrawController.saveAddress ex: ", e); + } + return result; + } + } diff --git a/sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigSubscribeResult.java b/sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigSubscribeResult.java new file mode 100644 index 000000000..beadd88c2 --- /dev/null +++ b/sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigSubscribeResult.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.vo.draw; + +import com.ruoyi.web.vo.Result; +import com.sinosoft.activity.domain.ActPageConfigSubscribe; + +import java.util.List; + +public class ActPageConfigSubscribeResult extends Result { + private List actPageConfigSubscribe; + + public List getActPageConfigSubscribe() { + return actPageConfigSubscribe; + } + + public void setActPageConfigSubscribe(List actPageConfigSubscribe) { + this.actPageConfigSubscribe = actPageConfigSubscribe; + } +} diff --git a/sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigUserinfoResult.java b/sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigUserinfoResult.java new file mode 100644 index 000000000..2e06b5161 --- /dev/null +++ b/sino-act-web/src/main/java/com/ruoyi/web/vo/draw/ActPageConfigUserinfoResult.java @@ -0,0 +1,21 @@ +package com.ruoyi.web.vo.draw; + +import com.ruoyi.web.vo.Result; +import com.sinosoft.activity.domain.ActPageConfigUserinfo; + +import java.util.List; + + +public class ActPageConfigUserinfoResult extends Result +{ + + private List actPageConfigUserinfo; + + public List getActPageConfigUserinfo() { + return actPageConfigUserinfo; + } + + public void setActPageConfigUserinfo(List actPageConfigUserinfo) { + this.actPageConfigUserinfo = actPageConfigUserinfo; + } +} diff --git a/sino-act-web/src/main/resources/public/draw/qrCode.html b/sino-act-web/src/main/resources/public/draw/qrCode.html new file mode 100644 index 000000000..a09ceda19 --- /dev/null +++ b/sino-act-web/src/main/resources/public/draw/qrCode.html @@ -0,0 +1,111 @@ + + + + + + + 活动 + + + + + + + + + + + + + + + + + + + +
+

+ +

+

+ +
+ + + + + + + + \ No newline at end of file