Merge remote-tracking branch 'origin/activity' into activity
This commit is contained in:
commit
10829b77bf
|
|
@ -34,12 +34,10 @@ public class DrawRule extends BaseEntity
|
||||||
private String DAILYFLAG;
|
private String DAILYFLAG;
|
||||||
|
|
||||||
/** 日抽奖限制开始时间 */
|
/** 日抽奖限制开始时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
private String DAILYSTARTTIME;
|
||||||
private Date DAILYSTARTTIME;
|
|
||||||
|
|
||||||
/** 日抽奖限制结束时间 */
|
/** 日抽奖限制结束时间 */
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
private String DAILYENDTIME;
|
||||||
private Date DAILYENDTIME;
|
|
||||||
|
|
||||||
/** 日抽奖限制次数 */
|
/** 日抽奖限制次数 */
|
||||||
private Long DAILYNUMBER;
|
private Long DAILYNUMBER;
|
||||||
|
|
@ -90,19 +88,19 @@ public class DrawRule extends BaseEntity
|
||||||
this.DRAWRULEID = DRAWRULEID;
|
this.DRAWRULEID = DRAWRULEID;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getDAILYSTARTTIME() {
|
public String getDAILYSTARTTIME() {
|
||||||
return DAILYSTARTTIME;
|
return DAILYSTARTTIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDAILYSTARTTIME(Date DAILYSTARTTIME) {
|
public void setDAILYSTARTTIME(String DAILYSTARTTIME) {
|
||||||
this.DAILYSTARTTIME = DAILYSTARTTIME;
|
this.DAILYSTARTTIME = DAILYSTARTTIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Date getDAILYENDTIME() {
|
public String getDAILYENDTIME() {
|
||||||
return DAILYENDTIME;
|
return DAILYENDTIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDAILYENDTIME(Date DAILYENDTIME) {
|
public void setDAILYENDTIME(String DAILYENDTIME) {
|
||||||
this.DAILYENDTIME = DAILYENDTIME;
|
this.DAILYENDTIME = DAILYENDTIME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
SELECT
|
SELECT
|
||||||
i.DRAWID,
|
i.DRAWID,
|
||||||
i.DRAWNAME,
|
i.DRAWNAME,
|
||||||
i. STATUS,
|
i.STATUS,
|
||||||
i.EXPENO,
|
i.EXPENO,
|
||||||
i.EXPENOVALUE,
|
i.EXPENOVALUE,
|
||||||
i.STARTTIME,
|
i.STARTTIME,
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">首次中奖配置:</label>
|
<label class="col-sm-4 control-label is-required">首次中奖配置:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="FIRSTFLAG" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
<select name="FIRSTFLAG" id="FIRSTFLAG" onchange="firstflag()" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -242,7 +242,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">首次中奖奖品:</label>
|
<label class="col-sm-4 control-label is-required">首次中奖奖品:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="FIRSTAWARDPRIZE" class="form-control" id="firstawardprize">
|
<select name="FIRSTAWARDPRIZE" class="form-control" id="firstawardprize" disabled >
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -254,7 +254,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">时间段抽奖配置:</label>
|
<label class="col-sm-4 control-label is-required">时间段抽奖配置:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="DAILYFLAG" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
<select name="DAILYFLAG" id="DAILYFLAG" onchange="dailyflag()" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -264,7 +264,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">时间段限制次数:</label>
|
<label class="col-sm-4 control-label is-required">时间段限制次数:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="DAILYNUMBER" placeholder="时间段限制次数" class="form-control" type="text" maxlength="30">
|
<input name="DAILYNUMBER" id="dailynumber" placeholder="时间段限制次数" class="form-control" type="text" maxlength="30" disabled>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -275,7 +275,7 @@ $('#smartwizard').smartWizard({
|
||||||
<label class="col-sm-4 control-label is-required">抽奖限制开始时间:</label>
|
<label class="col-sm-4 control-label is-required">抽奖限制开始时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<input name="DAILYSTARTTIME" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
<input name="DAILYSTARTTIME" id="dailystarttime" class="form-control" placeholder="HH:mm:ss" type="text" disabled>
|
||||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -286,7 +286,7 @@ $('#smartwizard').smartWizard({
|
||||||
<label class="col-sm-4 control-label is-required">抽奖限制结束时间:</label>
|
<label class="col-sm-4 control-label is-required">抽奖限制结束时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<input name="DAILYENDTIME" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
<input name="DAILYENDTIME" id="dailyendtime" class="form-control" placeholder="HH:mm:ss" type="text" disabled>
|
||||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -301,7 +301,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">抽奖必中配置:</label>
|
<label class="col-sm-4 control-label is-required">抽奖必中配置:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="WILLDRAWFLAG" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
<select name="WILLDRAWFLAG" id="WILLDRAWFLAG" onchange="willdrawflag()" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -311,7 +311,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">抽奖必中计数:</label>
|
<label class="col-sm-4 control-label is-required">抽奖必中计数:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="WILLDRAWAWARDNUMBER" placeholder="抽奖必中计数" class="form-control" type="text" maxlength="30">
|
<input name="WILLDRAWAWARDNUMBER" id="willdrawawardnumber" placeholder="抽奖必中计数" class="form-control" type="text" maxlength="30" disabled>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -322,7 +322,7 @@ $('#smartwizard').smartWizard({
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">抽奖必中奖品:</label>
|
<label class="col-sm-4 control-label is-required">抽奖必中奖品:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="WILLDRAWAWARDPRIZE" class="form-control" id="willdrawawardprize">
|
<select name="WILLDRAWAWARDPRIZE" class="form-control" id="willdrawawardprize" disabled>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -374,6 +374,42 @@ $('#smartwizard').smartWizard({
|
||||||
$.operate.saveModal(prefix+"/add", data);
|
$.operate.saveModal(prefix+"/add", data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//时间段抽奖配置
|
||||||
|
function dailyflag(){
|
||||||
|
var DAILYFLAG = $("#DAILYFLAG").val();
|
||||||
|
if (DAILYFLAG==1){
|
||||||
|
$('#dailynumber').removeAttr('disabled');
|
||||||
|
$('#dailystarttime').removeAttr('disabled');
|
||||||
|
$('#dailyendtime').removeAttr('disabled');
|
||||||
|
}else if(DAILYFLAG==0){
|
||||||
|
$("#dailynumber").attr('disabled','true');
|
||||||
|
$("#dailystarttime").attr('disabled','true');
|
||||||
|
$("#dailyendtime").attr('disabled','true');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//抽奖必中配置
|
||||||
|
function willdrawflag(){
|
||||||
|
var WILLDRAWFLAG = $("#WILLDRAWFLAG").val();
|
||||||
|
if (WILLDRAWFLAG==1){
|
||||||
|
$('#willdrawawardnumber').removeAttr('disabled');
|
||||||
|
$('#willdrawawardprize').removeAttr('disabled');
|
||||||
|
}else if(WILLDRAWFLAG==0){
|
||||||
|
$("#willdrawawardnumber").attr('disabled','true');
|
||||||
|
$("#willdrawawardprize").attr('disabled','true');
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//首次中奖配置
|
||||||
|
function firstflag(){
|
||||||
|
var FIRSTFLAG = $("#FIRSTFLAG").val();
|
||||||
|
if (FIRSTFLAG==1){
|
||||||
|
$('#firstawardprize').removeAttr('disabled');
|
||||||
|
}else if(FIRSTFLAG==0){
|
||||||
|
$("#firstawardprize").attr('disabled','true');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$("input[name='STARTTIME']").datetimepicker({
|
$("input[name='STARTTIME']").datetimepicker({
|
||||||
weekStart: 1,
|
weekStart: 1,
|
||||||
|
|
@ -405,7 +441,7 @@ $('#smartwizard').smartWizard({
|
||||||
startView: 2,
|
startView: 2,
|
||||||
forceParse: 0,
|
forceParse: 0,
|
||||||
showMeridian: 1,
|
showMeridian: 1,
|
||||||
format: 'yyyy-mm-dd hh:ii:ss'
|
format: 'hh:ii:ss'
|
||||||
});
|
});
|
||||||
|
|
||||||
$("input[name='DAILYENDTIME']").datetimepicker({
|
$("input[name='DAILYENDTIME']").datetimepicker({
|
||||||
|
|
@ -416,7 +452,7 @@ $('#smartwizard').smartWizard({
|
||||||
startView: 2,
|
startView: 2,
|
||||||
forceParse: 0,
|
forceParse: 0,
|
||||||
showMeridian: 1,
|
showMeridian: 1,
|
||||||
format: 'yyyy-mm-dd hh:ii:ss'
|
format: 'hh:ii:ss'
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script th:inline="javascript">
|
<script th:inline="javascript">
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
<label class="col-sm-4 control-label is-required">开始时间:</label>
|
<label class="col-sm-4 control-label is-required">开始时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<input name="STARTTIME" th:value="${#dates.format(drawInfo.STARTTIME, 'yyyy-MM-dd HH:mm:ss HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
<input name="STARTTIME" th:value="${#dates.format(drawInfo.STARTTIME, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
||||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -67,7 +67,7 @@
|
||||||
<label class="col-sm-4 control-label is-required">结束时间:</label>
|
<label class="col-sm-4 control-label is-required">结束时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<input name="ENDTIME" th:value="${#dates.format(drawInfo.ENDTIME, 'yyyy-MM-dd HH:mm:ss HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
<input name="ENDTIME" th:value="${#dates.format(drawInfo.ENDTIME, 'yyyy-MM-dd HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
||||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">首次中奖配置:</label>
|
<label class="col-sm-4 control-label is-required">首次中奖配置:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="FIRSTFLAG" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
<select name="FIRSTFLAG" id="FIRSTFLAG" onchange="firstflag()" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{FIRSTFLAG}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{FIRSTFLAG}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">时间段抽奖配置:</label>
|
<label class="col-sm-4 control-label is-required">时间段抽奖配置:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="DAILYFLAG" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
<select name="DAILYFLAG" id="DAILYFLAG" onchange="dailyflag()" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{DAILYFLAG}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{DAILYFLAG}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -112,7 +112,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">时间段限制次数:</label>
|
<label class="col-sm-4 control-label is-required">时间段限制次数:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="DAILYNUMBER" th:field="*{DAILYNUMBER}" placeholder="时间段限制次数" class="form-control" type="text" maxlength="30">
|
<input name="DAILYNUMBER" id="dailynumber" th:field="*{DAILYNUMBER}" placeholder="时间段限制次数" class="form-control" type="text" maxlength="30" >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -123,7 +123,7 @@
|
||||||
<label class="col-sm-4 control-label is-required">抽奖限制开始时间:</label>
|
<label class="col-sm-4 control-label is-required">抽奖限制开始时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<input name="DAILYSTARTTIME" th:value="${#dates.format(drawInfo.DAILYSTARTTIME, 'yyyy-MM-dd HH:mm:ss HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
<input name="DAILYSTARTTIME" id="dailystarttime" th:field="*{DAILYSTARTTIME}" class="form-control" placeholder="HH:mm:ss" type="text">
|
||||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -134,7 +134,7 @@
|
||||||
<label class="col-sm-4 control-label is-required">抽奖限制结束时间:</label>
|
<label class="col-sm-4 control-label is-required">抽奖限制结束时间:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<div class="input-group date">
|
<div class="input-group date">
|
||||||
<input name="DAILYENDTIME" th:value="${#dates.format(drawInfo.DAILYENDTIME, 'yyyy-MM-dd HH:mm:ss HH:mm:ss')}" class="form-control" placeholder="yyyy-MM-dd HH:mm:ss" type="text">
|
<input name="DAILYENDTIME" id="dailyendtime" th:field="*{DAILYENDTIME}" class="form-control" placeholder="HH:mm:ss" type="text">
|
||||||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -149,7 +149,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">抽奖必中配置:</label>
|
<label class="col-sm-4 control-label is-required">抽奖必中配置:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<select name="WILLDRAWFLAG" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
<select name="WILLDRAWFLAG" id="WILLDRAWFLAG" onchange="willdrawflag()" class="form-control" th:with="type=${@dict.getType('is_boolean')}">
|
||||||
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{WILLDRAWFLAG}"></option>
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{WILLDRAWFLAG}"></option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -159,7 +159,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="col-sm-4 control-label is-required">抽奖必中计数:</label>
|
<label class="col-sm-4 control-label is-required">抽奖必中计数:</label>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<input name="WILLDRAWAWARDNUMBER" th:field="*{WILLDRAWAWARDNUMBER}" placeholder="抽奖必中计数" class="form-control" type="text" maxlength="30">
|
<input name="WILLDRAWAWARDNUMBER" id="willdrawawardnumber" th:field="*{WILLDRAWAWARDNUMBER}" placeholder="抽奖必中计数" class="form-control" type="text" maxlength="30" >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -193,9 +193,24 @@
|
||||||
}
|
}
|
||||||
/**获取奖品及信息列表*/
|
/**获取奖品及信息列表*/
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
var DAILYFLAG = $("#DAILYFLAG").val();
|
||||||
|
if(DAILYFLAG==0){
|
||||||
|
$("#dailynumber").attr('disabled','true');
|
||||||
|
$("#dailystarttime").attr('disabled','true');
|
||||||
|
$("#dailyendtime").attr('disabled','true');
|
||||||
|
}
|
||||||
|
var WILLDRAWFLAG = $("#WILLDRAWFLAG").val();
|
||||||
|
if(WILLDRAWFLAG==0){
|
||||||
|
$("#willdrawawardnumber").attr('disabled','true');
|
||||||
|
$("#willdrawawardprize").attr('disabled','true');
|
||||||
|
}
|
||||||
|
var FIRSTFLAG = $("#FIRSTFLAG").val();
|
||||||
|
if(FIRSTFLAG==0){
|
||||||
|
$("#firstawardprize").attr('disabled','true');
|
||||||
|
}
|
||||||
|
|
||||||
var WILLDRAWAWARDPRIZE = [[${drawInfo.WILLDRAWAWARDPRIZE}]];
|
var WILLDRAWAWARDPRIZE = [[${drawInfo.WILLDRAWAWARDPRIZE}]];
|
||||||
var FIRSTAWARDPRIZE = [[${drawInfo.FIRSTAWARDPRIZE}]];
|
var FIRSTAWARDPRIZE = [[${drawInfo.FIRSTAWARDPRIZE}]];
|
||||||
|
|
||||||
var job= "";
|
var job= "";
|
||||||
var jobj= "";
|
var jobj= "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
@ -246,6 +261,45 @@
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//时间段抽奖配置
|
||||||
|
function dailyflag(){
|
||||||
|
var DAILYFLAG = $("#DAILYFLAG").val();
|
||||||
|
if (DAILYFLAG==1){
|
||||||
|
$('#dailynumber').removeAttr('disabled');
|
||||||
|
$('#dailystarttime').removeAttr('disabled');
|
||||||
|
$('#dailyendtime').removeAttr('disabled');
|
||||||
|
}else if(DAILYFLAG==0){
|
||||||
|
$("#dailynumber").attr('disabled','true');
|
||||||
|
$("#dailystarttime").attr('disabled','true');
|
||||||
|
$("#dailyendtime").attr('disabled','true');
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//抽奖必中配置
|
||||||
|
function willdrawflag(){
|
||||||
|
var WILLDRAWFLAG = $("#WILLDRAWFLAG").val();
|
||||||
|
if (WILLDRAWFLAG==1){
|
||||||
|
$('#willdrawawardnumber').removeAttr('disabled');
|
||||||
|
$('#willdrawawardprize').removeAttr('disabled');
|
||||||
|
}else if(WILLDRAWFLAG==0){
|
||||||
|
$("#willdrawawardnumber").attr('disabled','true');
|
||||||
|
$("#willdrawawardprize").attr('disabled','true');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//首次中奖配置
|
||||||
|
function firstflag(){
|
||||||
|
var FIRSTFLAG = $("#FIRSTFLAG").val();
|
||||||
|
if (FIRSTFLAG==1){
|
||||||
|
$('#firstawardprize').removeAttr('disabled');
|
||||||
|
}else if(FIRSTFLAG==0){
|
||||||
|
$("#firstawardprize").attr('disabled','true');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("input[name='STARTTIME']").datetimepicker({
|
$("input[name='STARTTIME']").datetimepicker({
|
||||||
weekStart: 1,
|
weekStart: 1,
|
||||||
todayBtn: 1,
|
todayBtn: 1,
|
||||||
|
|
@ -276,7 +330,7 @@
|
||||||
startView: 2,
|
startView: 2,
|
||||||
forceParse: 0,
|
forceParse: 0,
|
||||||
showMeridian: 1,
|
showMeridian: 1,
|
||||||
format: 'yyyy-mm-dd hh:ii:ss'
|
format: 'hh:ii:ss'
|
||||||
});
|
});
|
||||||
|
|
||||||
$("input[name='DAILYENDTIME']").datetimepicker({
|
$("input[name='DAILYENDTIME']").datetimepicker({
|
||||||
|
|
@ -287,7 +341,7 @@
|
||||||
startView: 2,
|
startView: 2,
|
||||||
forceParse: 0,
|
forceParse: 0,
|
||||||
showMeridian: 1,
|
showMeridian: 1,
|
||||||
format: 'yyyy-mm-dd hh:ii:ss'
|
format: 'hh:ii:ss'
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue