Commit bad29cb9 authored by daniel's avatar daniel

feat(markNoSelect): 自助选号

parent acc3ba60
......@@ -19,4 +19,6 @@ public class SettingTemplate {
private int seq;
private int needTime;
}
......@@ -265,8 +265,8 @@
</update>
<insert id="initCmptSettings">
insert into gk_cmptsetting (id,cmptid,name,name_web, type,visibility,status,style,seq,create_date)
select MD5(UUID()),#{cmptId},name,name, type,visibility,status,style,seq,now() from gk_cmptsetting_template
insert into gk_cmptsetting (id,cmptid,name,name_web, type,visibility,status,style,seq,create_date,need_time)
select MD5(UUID()),#{cmptId},name,name, type,visibility,status,style,seq,now(),need_time from gk_cmptsetting_template
</insert>
<select id="getCommonEnrollCmptId" resultType="java.lang.Integer">
......
package com.dlbridge.jadp.plugins.cmpt.web;
import com.dlbridge.jadp.common.interceptor.PageView;
import com.dlbridge.jadp.plugins.cmpt.dao.model.Cmpt;
import com.dlbridge.jadp.plugins.cmpt.service.CmptService;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import springfox.documentation.annotations.ApiIgnore;
import javax.annotation.Resource;
@RequestMapping(value = "/gk/markNoSelect/")
@RestController
@ApiIgnore
@Log4j2
public class MarkNoSelectController {
@Resource
private CmptService cmptService;
@RequestMapping("index/{cmptId}")
@PageView
public ModelAndView index(@PathVariable("cmptId") Integer cmptId, ModelAndView mv) {
Cmpt cmpt = cmptService.queryCmptBycmptId(cmptId);
mv.setViewName("cmpt/markNoSelect");
mv.addObject("cmpt", cmpt);
return mv;
}
}
......@@ -245,7 +245,8 @@
<div class="sort" id="sortable" style="clear: both;">
<div class="tip">
<span class="tip-one">注</span>
<span class="tip-txt">下列功能可通过拖拽进行排序,直接影响本赛事小程序的功能列表顺序</span>
<span
class="tip-txt">下列功能可通过拖拽进行排序,直接影响本赛事小程序的功能列表顺序,对于可设时间的模块双击即可设置</span>
</div>
<c:forEach var="func" items="${funcs}">
<div class="wzm-content-item ${func.style}" data-id="${func.id}">
......@@ -263,11 +264,14 @@
</div>
</div>
<div data-status="${func.status}"
class="public ${func.status == 2 ? 'disabled':''} ${func.type == 11 ? 'disabled':''}">
class="public ${func.status == 2 ? 'disabled':''} ${func.type == 11 ? 'disabled':''}"
style="width:auto;">
<input class="check-box" type="checkbox" ${func.status==1
? 'checked' :func.status==2?'disabled':''}
${func.type==11 ? 'disabled' :''}>
<span class="public-text">公开</span>
<span class="public-text">公开${func.needTime == 1 ?
'-可设时间':''}</span>
</div>
<div class="b">
<div class="radio ${func.visibility == 1 ? 'checked':'unchecked'} status"
......@@ -300,7 +304,7 @@
<script type="text/javascript">
// 将Java对象转换为JSON字符串
let cmptFuncs = JSON.parse('${fns:toJson(funcs)}');
// console.log({ cmptFuncs })
console.log({ cmptFuncs })
</script>
</html>
\ No newline at end of file
This diff is collapsed.
......@@ -362,6 +362,13 @@
<span class="menu-txt">发票管理</span>
</a>
</li>
<li class="markNoSelect menu-sub-item">
<a
href="/gk/markNoSelect/index/${cmpt.cmptId}?uId=${uId}&cId=${cId}&timestamp=${timestamp}&sign=${sign}">
<span class="left-arrow"></span>
<span class="menu-txt">自助选号</span>
</a>
</li>
</ul>
</li>
</ul>
......@@ -424,7 +431,7 @@
var classes = ['cmptSetting', 'nameList', 'manual', 'contact', 'manage',
'route', 'road', 'equip', 'photo', 'news', 'cert', 'data',
'banner', 'score', 'auto', 'scan', 'review', 'customer', 'rule',
'outter-link', 'sure-letter', 'rankSetting', 'service', "module", "swiper", "bag", "invoice"];
'outter-link', 'sure-letter', 'rankSetting', 'service', "module", "swiper", "bag", "invoice", "markNoSelect"];
let url = document.location.href;
var done = false;
for (var i in classes) {
......
......@@ -1046,4 +1046,112 @@
border-bottom-left-radius: 0;
}
/* ... 现有代码 ... */
\ No newline at end of file
/* ... 现有代码 ... */
/* 文本颜色 */
.text-main {
color: #CE3939;
}
.text-white {
color: #fff;
}
.text-black {
color: #000;
}
.text-gray {
color: #9ca3af;
}
.text-red {
color: #ef4444;
}
.text-blue {
color: #3b82f6;
}
.text-green {
color: #10b981;
}
.text-yellow {
color: #f59e0b;
}
.text-indigo {
color: #6366f1;
}
.text-purple {
color: #8b5cf6;
}
.text-pink {
color: #ec4899;
}
/* 背景颜色 */
.bg-main {
background-color: #CE3939;
}
.bg-white {
background-color: #fff;
}
.bg-black {
background-color: #000;
}
.bg-gray {
background-color: #9ca3af;
}
.bg-red {
background-color: #ef4444;
}
.bg-blue {
background-color: #3b82f6;
}
.bg-green {
background-color: #10b981;
}
.bg-yellow {
background-color: #f59e0b;
}
.bg-indigo {
background-color: #6366f1;
}
.bg-purple {
background-color: #8b5cf6;
}
.bg-pink {
background-color: #ec4899;
}
/* 透明背景 */
.bg-transparent {
background-color: transparent;
}
/* 背景透明度 */
.bg-opacity-50 {
opacity: 0.5;
}
.bg-opacity-75 {
opacity: 0.75;
}
.bg-opacity-90 {
opacity: 0.9;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment