feat: 牛牛单独限红 - 新增limit_low_nn/limit_high_nn字段,代理端添加/编辑代理和会员支持牛牛限红设置,语言包三语支持
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -129,6 +129,16 @@
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_pair}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_nn}">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_nn}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user_info['agent_type'] == 2) : ?>
|
||||
@@ -242,6 +252,8 @@
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.type_xima = $('#xima_type').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
@@ -320,6 +332,18 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.type_xima == ''){
|
||||
layer.alert(lang.empty_wash_type,{
|
||||
title:lang.message,
|
||||
|
||||
@@ -81,6 +81,16 @@
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" value="{$user.limit_high_pair}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" value="{$user.limit_low_nn}" class="layui-input">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" value="{$user.limit_high_nn}" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<!-- 信用线展示码率 -->
|
||||
<?php if($user['agent_type'] == 2) : ?>
|
||||
<div class="layui-form-item">
|
||||
@@ -152,6 +162,8 @@
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
@@ -209,6 +221,20 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
ayer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
|
||||
@@ -547,6 +547,16 @@
|
||||
<input type="text" id="limit_high_pair" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_pair}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_low_nn}">
|
||||
</div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$agentParent.limit_high_nn}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="win_limit" class="layui-form-label">{$lang['daily_win_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
@@ -695,6 +705,8 @@
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.win_limit = $('#win_limit').val();
|
||||
query.agent_commission = $('#agent_commission').val();
|
||||
query.agent_commission_dt = $('#agent_commission_dt').val();
|
||||
@@ -787,6 +799,18 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.win_limit.length == 0 || query.win_limit == undefined){
|
||||
layer.alert(lang.empty_day_win_limit,{
|
||||
title:lang.message,
|
||||
|
||||
@@ -134,6 +134,18 @@
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_high_pair"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="limit_low_nn" class="layui-form-label">{$lang['min_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_low_nn" autocomplete="off" class="layui-input" value="{$user.limit_low_nn}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_low_nn"></div>
|
||||
<label for="limit_high_nn" class="layui-form-label">{$lang['max_nn_limit']}</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" id="limit_high_nn" autocomplete="off" class="layui-input" value="{$user.limit_high_nn}">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux limit_high_nn"></div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<label for="price_banker" class="layui-form-label">{$lang['banker_odds']}</label>
|
||||
<div class="layui-input-inline">
|
||||
@@ -616,6 +628,8 @@
|
||||
<input type="hidden" id="hidden_limit_high_tie" value="{$agent_parent.limit_high_tie}">
|
||||
<input type="hidden" id="hidden_limit_low_pair" value="{$agent_parent.limit_low_pair}">
|
||||
<input type="hidden" id="hidden_limit_high_pair" value="{$agent_parent.limit_high_pair}">
|
||||
<input type="hidden" id="hidden_limit_low_nn" value="{$agent_parent.limit_low_nn}">
|
||||
<input type="hidden" id="hidden_limit_high_nn" value="{$agent_parent.limit_high_nn}">
|
||||
</div>
|
||||
<script>
|
||||
$(function(){
|
||||
@@ -643,6 +657,8 @@
|
||||
query.limit_high_tie = $('#limit_high_tie').val();
|
||||
query.limit_low_pair = $('#limit_low_pair').val();
|
||||
query.limit_high_pair = $('#limit_high_pair').val();
|
||||
query.limit_low_nn = $('#limit_low_nn').val();
|
||||
query.limit_high_nn = $('#limit_high_nn').val();
|
||||
query.agent_ximalv = $('#agent_ximalv').val() || 0;
|
||||
query.agent_ximalv_dt = $('#agent_ximalv_dt').val() || 0;
|
||||
query.agent_ximalv_nn = $('#agent_ximalv_nn').val() || 0;
|
||||
@@ -730,6 +746,18 @@
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_low_nn.length == 0 || query.limit_low_nn == undefined){
|
||||
layer.alert(lang.empty_min_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.limit_high_nn.length == 0 || query.limit_high_nn == undefined){
|
||||
layer.alert(lang.empty_max_nn_limit,{
|
||||
title:lang.message,
|
||||
});
|
||||
return false;
|
||||
}
|
||||
if(query.agent_ximalv.length == 0 || query.agent_ximalv == undefined){
|
||||
layer.alert(lang.empty_baccacat_rate,{
|
||||
title:lang.message,
|
||||
|
||||
@@ -180,17 +180,31 @@
|
||||
}else{
|
||||
dateLang = 'cn';
|
||||
}
|
||||
// 计算默认时间:今天07:00:00 ~ 明天06:59:59
|
||||
var now = new Date();
|
||||
var y = now.getFullYear();
|
||||
var m = ('0' + (now.getMonth() + 1)).slice(-2);
|
||||
var d = ('0' + now.getDate()).slice(-2);
|
||||
var tomorrow = new Date(now.getTime() + 86400000);
|
||||
var ty = tomorrow.getFullYear();
|
||||
var tm = ('0' + (tomorrow.getMonth() + 1)).slice(-2);
|
||||
var td = ('0' + tomorrow.getDate()).slice(-2);
|
||||
var defaultStart = y + '-' + m + '-' + d + ' 07:00:00';
|
||||
var defaultEnd = ty + '-' + tm + '-' + td + ' 06:59:59';
|
||||
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#start' //指定元素
|
||||
elem: '#start'
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
lang: dateLang,
|
||||
value: defaultStart
|
||||
});
|
||||
//执行一个laydate实例
|
||||
laydate.render({
|
||||
elem: '#end' //指定元素
|
||||
elem: '#end'
|
||||
,type:'datetime',
|
||||
lang: dateLang
|
||||
lang: dateLang,
|
||||
value: defaultEnd
|
||||
});
|
||||
});
|
||||
|
||||
@@ -292,11 +306,11 @@
|
||||
break;
|
||||
}
|
||||
if(format == 1){
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 00:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 23:59:59';
|
||||
startDate = startYear + '-' + startMonth + '-' + startDay + ' 07:00:00';
|
||||
endDate = endYear + '-' + endMonth + '-' + endDay + ' 06:59:59';
|
||||
}else{
|
||||
startDate = startDay + ' 00:00:00';
|
||||
endDate = endDay + ' 23:59:59';
|
||||
startDate = startDay + ' 07:00:00';
|
||||
endDate = endDay + ' 06:59:59';
|
||||
}
|
||||
|
||||
query.startDate = startDate;
|
||||
|
||||
Reference in New Issue
Block a user