You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

367 lines
24 KiB
HTML

5 years ago
<extend name="Public/base"/>
<block name="body">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
charset="UTF-8"></script>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">支付限额规则配置</h3>
<p class="description_text">说明:配置支付规则,控制支付渠道</p>
</div>
<div class="tab-content tabcon1711 tabcon17112">
<form action="{:U('addLimitPay')}" method="post" class="form-horizontal form_info_ml">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l noticeinfo">限制支付渠道</td>
<td class="r table_radio">
<span class="form_select">
<select name="pay_type">
<option value="alipay" selected>支付宝</option>
<option value="wxpay">微信</option>
<option value="yeepay">易宝支付</option>
<option value="sqpay">双乾支付</option>
</select>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">限制规则</td>
<td class="r table_radio">
5 years ago
<span class="form_select-text">说明:设置限制条件和限制额度</span>
5 years ago
</td>
</tr>
<tr>
<td class="l noticeinfo">全渠道总流水限制</td>
<td class="r table_radio">
<input type="text" class="" name="total_limit" value="{$info.title|default=''}" placeholder="请输入额度">
</td>
</tr>
<tr>
<td class="l noticeinfo">玩家全渠道总流水限制</td>
<td class="r table_radio">
<input type="text" class="" name="user_total_limit" value="{$info.title|default=''}" placeholder="请输入额度">
</td>
</tr>
<tr>
<td class="l noticeinfo">玩家单笔限制</td>
<td class="r table_radio">
<input type="text" class="" name="user_one_limit" value="{$info.title|default=''}" placeholder="请输入额度">
</td>
</tr>
<tr>
<td class="l noticeinfo">限制方式 </td>
<td class="r table_radio">
<span class="form_select">
<select name="limit_type">
<option value="force" selected>强制限制</option>
<option value="obstacles">支付体验障碍</option>
</select>
</span>
<span class="notice-text">说明:强制限制和支付体验障碍</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">限制时间</td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="daily" checked="checked"/> 每日</label>
<div class="input-list" style="margin-left:20px">
5 years ago
<input type="text" class="" style="width:10px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start1" value="{$info.title|default='0'}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start2" value="{$info.title|default='0'}" placeholder="">
5 years ago
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
5 years ago
<input type="text" class="" style="width:10px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start3" value="{$info.title|default='0'}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start4" value="{$info.title|default='0'}" placeholder="">
5 years ago
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
5 years ago
<input type="text" class="" style="width:10px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start5" value="{$info.title|default='0'}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start6" value="{$info.title|default='0'}" placeholder="">
5 years ago
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
5 years ago
<input type="text" class="" style="width:10px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start7" value="{$info.title|default='2'}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start8" value="{$info.title|default='3'}" placeholder="">
5 years ago
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
5 years ago
<input type="text" class="" style="width:10px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start9" value="{$info.title|default='5'}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start10" value="{$info.title|default='9'}" placeholder="">
5 years ago
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
5 years ago
<input type="text" class="" style="width:10px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start11" value="{$info.title|default='5'}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px;border:none;border-radius:0px;border-bottom:1px solid #ccc;-webkit-box-shadow:inset 0 0px 0px rgba(0,0,0,0.075);box-shadow: inset 0 0px 0px rgba(0,0,0,0.075);" maxlength="1" name="daily_start12" value="{$info.title|default='9'}" placeholder="">
5 years ago
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
</span>
5 years ago
<span class="notice-text">说明:时间格式(24小时制,时间设置范围00:00:00 23:59:59)</span>
5 years ago
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="week" /> 每周</label>
<span class="form_select" style="margin-left:5px">
<select name="week_remark">
<option value="周一" selected>周一</option>
<option value="周二">周二</option>
<option value="周三">周三</option>
<option value="周四">周四</option>
<option value="周五">周五</option>
<option value="周六">周六</option>
<option value="周天">周天</option>
</select>
</span>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:10px;" maxlength="1" name="week_start1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="week_start2" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="week_start3" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="week_start4" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="week_start5" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="week_start6" value="{$info.title|default=''}" placeholder="">
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:10px;" name="week_start7" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="week_start8" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="week_start9" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="week_start10" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" name="week_start11" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" name="week_start12" maxlength="1" value="{$info.title|default=''}" placeholder="">
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="month"/> 每月</label>
<span class="form_select" style="margin-left:5px">
<select name="month_remark">
<volist name="monthday" id="vo" key='k'>
<option value="{$vo}" selected>{$vo}</option>
</if>
</volist>
</select>
</span>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:10px;" name="month_start1" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="month_start2" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" name="month_start3" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="month_start4" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="month_start5" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="month_start6" value="{$info.title|default=''}" placeholder="">
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:10px;" name="month_start7" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="month_start8" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" name="month_start9" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="month_start10" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="month_start11" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="month_start12" value="{$info.title|default=''}" placeholder="">
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
</span>
</td>
</tr>
<tr>
<td class="l noticeinfo"></td>
<td class="r table_radio">
<span class="form_radio">
<label><input type="radio" name="status" value="day" /> 特殊</label>
<div class="input-list" >
<input type="text" readonly id="time-start" name="day_remark" class="" value="{$startDate}"
placeholder="充值开始时间"/>
</div>
</span>
<div class="input-list" style="margin-left:17px">
<input type="text" class="" style="width:10px;" maxlength="1" name="day_start1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="day_start2" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" name="day_start3" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="day_start4" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" name="day_start5" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="day_start6" value="{$info.title|default=''}" placeholder="">
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
<div class="input-list" style="margin-left:20px">
<input type="text" class="" style="width:10px;" name="day_start7" maxlength="1" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="day_start8" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="day_start9" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="day_start10" value="{$info.title|default=''}" placeholder="">
<span style="margin-left:10px">:</span>
<div class="input-append date" id="datetimepicker" style="display:inline-block;margin-left:5px">
<input type="text" class="" style="width:10px;" maxlength="1" name="day_start11" value="{$info.title|default=''}" placeholder="">
<input type="text" class="" style="width:10px;margin-left:5px" maxlength="1" name="day_start12" value="{$info.title|default=''}" placeholder="">
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="form-item">
<input type="hidden" name="id" value="{$info.id|default=''}">
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">确 定</button>
<button class="submit_btn " onclick="javascript:history.back(-1);return false;">返 回</button>
</div>
</form>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="{$m_url}">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Tool/limitPay')}');
$(function () {
Think.setValue("type", {$info.type|default=0});
Think.setValue("category", {$info.category|default=0});
$("#category").change();
Think.setValue("group", {$info.group|default=0});
})
$("#category").change(function(){
$.ajax({
type:"POST",
dataType:"json",
async:false,
data:{category:$("#category").val()},
url:"{:U('Ajax/getConfigCategory')}",
success:function (data) {
$("#group").empty();
var str = "<option value='0'>不分类</option>";
for(var i in data){
str += "<option value="+i+">"+data[i]+"</option>";
}
$("#group").append(str);
}
})
})
</script>
<script>
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
showMeridian:true,
pickDate:true,
minView: 2,
autoclose: true,
pickTime:true,
todayBtn:true,
minuteStep: 1,//分钟间隔1分钟
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var end = new Date($.trim($('#time-end').val())).getTime();
if (val>end) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$("#time-end").datetimepicker({
format:"hh:ii:ss",
language: "zh-CN",
showMeridian:true,
minView:0,
autoclose:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var start = new Date($.trim($('#time-start').val())).getTime();
if (val<start) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
</script>
</block>