Pro/application/admin/view/agent/agent-add.html
li 1ce6c3d780 feat: 牛牛新增四条(炸弹)赔率配置 price_bomb
- 后台管理: Player/Agent 控制器新增接收、验证、保存
- 后台页面: player/agent 添加/编辑/列表页新增赔率字段
- 代理端: 继承/展示 price_bomb
- 预测赔率: jk/Pcapi/onlinechip 新增 bomb_forecast
- Betinfo: 新增 result==12 赔率查询

数据库需执行:
ALTER TABLE cg_user ADD COLUMN price_bomb float(5,2) NOT NULL DEFAULT 4.85 COMMENT '四条赔率' AFTER price_5n;
2026-02-11 17:32:41 +08:00

815 lines
34 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file="public/header"}
<style type="text/css">
textarea, input[type="text"], input[type="password"],
.uneditable-input{border: 1px solid #ccc;background-color: #fff; }
.change_box a{font-size: 14px;padding: 10.5px 10px;}
.change_box .actived{border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative; color: #3daae9; }
.change_box .actived:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; }
.x-nav{overflow: inherit; }
.x-nav .refresh{margin-right: 20px; }
.control-group{overflow: hidden; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px dotted #dddddd; }
.control-label{float: left; padding-top: 3px; width: 160px; text-align: right; font-size: 14px; }
.controls{text-align: left; overflow-x: auto; overflow-y: hidden; margin-left: 180px; }
.controls input{width: 300px; height: 24px; font-size: 14px; border-radius: 4px; padding-left:6px; }
.controls select{width: 300px; height: 24px; font-size: 14px; border-radius: 4px; padding-left:6px; }
.controls textarea{width: 400px; height: 90px; border-radius: 4px; } .form-horizontal{margin: 0 10px; }
.bottom-buttom{border-top: 1px solid #e5e5e5; margin-top: 20px; background-color: #f5f5f5; padding: 30px 0; }
.submit{width: 50px; text-align: center; background-color:#3daae9; color: #fff; padding: 5px 10px; font-size: 16px; border-radius: 4px; cursor:pointer; }
</style>
<body>
<div class="x-nav" style="padding: 0px;">
<span class="change_box">
<a href="javascript:;" class="list-one" data-id="1">代理列表</a>
<a href="javascript:;" class="list-two actived" data-id="2">代理添加</a>
</span>
<a class="layui-btn layui-btn-small refresh" style="line-height:1.6em;margin-top:3px;float:right"
href="javascript:location.replace(location.href);" title="刷新">
<i class="layui-icon" style="line-height:30px"></i></a>
</div>
<br>
<div class="info_from form-horizontal">
<div class="control-group">
<label class="control-label">账号:</label>
<div class="controls">
<input id="L_username" name="L_username" type="text" value maxlength="50" minlength="3" class="required">
<span class="help-inline">
<font color="red"> * 将会成为您唯一的登入名</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">昵称:</label>
<div class="controls">
<input id="L_nickname" name="L_nickname" type="text" value maxlength="50" minlength="3" class="required">
<span class="help-inline">
<font color="red"> * </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">密码:</label>
<div class="controls">
<input id="L_pass" name="L_pass" type="text" value maxlength="50" minlength="3" class="required">
<span class="help-inline">
<font color="red"> * 6到16个字符</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">确认密码:</label>
<div class="controls">
<input id="L_repass" name="L_repass" type="text" value maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 与密码保持一致</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">手机号码:</label>
<div class="controls">
<input id="L_mobile" name="L_mobile" type="text" value maxlength="50" minlength="3" class="required"><span class="help-inline">
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">邮箱:</label>
<div class="controls">
<input id="L_email" name="L_email" type="text" value maxlength="50" minlength="3" class="required">
</div>
</div>
<div class="control-group">
<label class="control-label">总代性质:</label>
<div class="controls">
<input name="agent_type" class="required agent_type" type="radio" value="1" maxlength="20" style="color:#999;width:35px;" checked>
<span style="position:relative;top:-7px;">现金线</span>
<input name="agent_type" class="required agent_type" type="radio" value="2" maxlength="20" style="color:#999;width:35px;">
<span style="position:relative;top:-7px;">信用线</span>
</div>
</div>
<div class="control-group">
<label class="control-label">支付渠道:</label>
<div class="controls">
{foreach name="$pay_channel_list" item="vo"}
<span>
<input name="pay_channel" class="required pay_channel" type="radio" value="{$vo.key}" maxlength="20" style="color:#999;width:35px;">
<span style="position:relative;top:-7px;">{$vo.name}</span>
</span>
{/foreach}
</div>
</div>
<div class="control-group">
<label class="control-label">码量分担方式:</label>
<div class="controls">
<select id="share_xima">
<option value="1">不分担</option>
<option value="2">按代理占成比例分担</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">洗码方式:</label>
<div class="controls">
<input name="type_xima" class="required type_xima" type="radio" value="1" maxlength="20" style="color:#999;width:35px;" checked>
<span style="position:relative;top:-7px;">双边洗码</span>
<input name="type_xima" class="required type_xima" type="radio" value="2" maxlength="20" style="color:#999;width:35px;">
<span style="position:relative;top:-7px;">单边洗码</span>
</div>
</div>
<div class="control-group rebate-box">
<label class="control-label">返水率(%):</label>
<div class="controls">
<input id="rebate_rate" name="rebate_rate" type="text" value="" maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 返水率取0-100之间</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">百家乐码率(%):</label>
<div class="controls">
<input id="L_ximalv" name="L_ximalv" type="text" value="" maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 码率取0-100之间</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">龙虎码率(%):</label>
<div class="controls">
<input id="L_ximalv_dt" name="L_ximalv_dt" type="text" value="" maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 码率取0-100之间</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">牛牛码率(%):</label>
<div class="controls">
<input id="L_ximalv_nn" name="L_ximalv_nn" type="text" value="" maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 码率取0-100之间</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">三卡牛牛码率(%):</label>
<div class="controls">
<input id="L_ximalv_tc" name="L_ximalv_tc" type="text" value="" maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 码率取0-100之间</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">占股(%):</label>
<div class="controls">
<input id="L_cs" name="L_cs" type="text" value maxlength="50" minlength="3" class="required"><span class="help-inline">
<font color="red"> * 占股不能超过100%</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">最低限红:</label>
<div class="controls">
<input id="limit_low" name="limit_low" type="text" value maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 必填项</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">最高限红:</label>
<div class="controls">
<input id="limit_high" name="limit_high" type="text" value maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 必填项</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">最低和限红:</label>
<div class="controls">
<input id="limit_low_tie" name="limit_low" type="text" value maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 必填项</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">最高和限红:</label>
<div class="controls">
<input id="limit_high_tie" name="limit_high" type="text" value maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 必填项</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">最低对子限红:</label>
<div class="controls">
<input id="limit_low_pair" name="limit_low" type="text" value maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 必填项</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">最高对子限红:</label>
<div class="controls">
<input id="limit_high_pair" name="limit_high" type="text" value maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 必填项</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">投注方式:</label>
<div class="controls">
<select id="L_bet_type" name="L_bet_type" type="text" maxlength="20" min-length="3" class="required">
<option value="0">请选择投注方式</option>
<option value="1">网络投注</option>
<option value="2">电话投注</option>
</select>
<span class="help-inline">
<font color="red"> * 请选择投注方式</font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押庄赔率:</label>
<div class="controls">
<input id="price_banker" name="price_banker" type="text" value="0.95" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押闲赔率:</label>
<div class="controls">
<input id="price_player" name="price_player" type="text" value="1" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押和赔率:</label>
<div class="controls">
<input id="price_tie_baccarat" name="price_tie_baccarat" type="text" value="8" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押对子赔率:</label>
<div class="controls">
<input id="price_pair" name="price_pair" type="text" value="11" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">两张牌幸运6赔率:</label>
<div class="controls">
<input id="price_luck_six_2" name="price_luck_six_2" type="text" value="12" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">三张牌幸运6赔率:</label>
<div class="controls">
<input id="price_luck_six_3" name="price_luck_six_3" type="text" value="20" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押大赔率:</label>
<div class="controls">
<input id="price_big" name="price_big" type="text" value="0.5" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押小赔率:</label>
<div class="controls">
<input id="price_small" name="price_small" type="text" value="1.5" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 百家乐 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押龙赔率:</label>
<div class="controls">
<input id="price_dragon" name="price_dragon" type="text" value="0.97" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 龙虎斗 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押虎赔率:</label>
<div class="controls">
<input id="price_tiger" name="price_tiger" type="text" value="0.97" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 龙虎斗 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押和赔率:</label>
<div class="controls">
<input id="price_tie_dt" name="price_tie_dt" type="text" value="8" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 龙虎斗 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押无牛-牛6赔率:</label>
<div class="controls">
<input id="price_n0_n6" name="price_n0_n6" type="text" value="0.96" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛7-牛9赔率:</label>
<div class="controls">
<input id="price_n7_n9" name="price_n7_n9" type="text" value="1.92" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛牛赔率:</label>
<div class="controls">
<input id="price_nn" name="price_nn" type="text" value="2.88" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押五公赔率:</label>
<div class="controls">
<input id="price_5n" name="price_5n" type="text" value="4.80" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押四条赔率:</label>
<div class="controls">
<input id="price_bomb" name="price_bomb" type="text" value="4.85" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛一赔率:</label>
<div class="controls">
<input id="price_tc_n1" name="price_tc_n1" type="text" value="0.96" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛二赔率:</label>
<div class="controls">
<input id="price_tc_n2" name="price_tc_n2" type="text" value="1.92" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛三赔率:</label>
<div class="controls">
<input id="price_tc_n3" name="price_tc_n3" type="text" value="2.88" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛四赔率:</label>
<div class="controls">
<input id="price_tc_n4" name="price_tc_n4" type="text" value="3.84" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛五赔率:</label>
<div class="controls">
<input id="price_tc_n5" name="price_tc_n5" type="text" value="4.80" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛六赔率:</label>
<div class="controls">
<input id="price_tc_n6" name="price_tc_n6" type="text" value="5.76" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛七赔率:</label>
<div class="controls">
<input id="price_tc_n7" name="price_tc_n7" type="text" value="6.72" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛八赔率:</label>
<div class="controls">
<input id="price_tc_n8" name="price_tc_n8" type="text" value="7.68" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛九赔率:</label>
<div class="controls">
<input id="price_tc_n9" name="price_tc_n9" type="text" value="8.64" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押牛牛赔率:</label>
<div class="controls">
<input id="price_tc_nn" name="price_tc_nn" type="text" value="9.60" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押豹子赔率:</label>
<div class="controls">
<input id="price_tc_bz" name="price_tc_bz" type="text" value="11.52" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押同花顺赔率:</label>
<div class="controls">
<input id="price_tc_ths" name="price_tc_ths" type="text" value="14.40" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">押皇家同花顺赔率:</label>
<div class="controls">
<input id="price_tc_hjths" name="price_tc_hjths" type="text" value="19.20" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<!-- <div class="control-group">
<label class="control-label">三卡牛牛系统抽水:</label>
<div class="controls">
<input id="agent_commission_tc" name="agent_commission_tc" type="text" value="0.03" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">三卡牛牛庄家抽佣:</label>
<div class="controls">
<input id="agent_commission_tc_banker" name="agent_commission_tc_banker" type="text" value="0.05" maxlength="10" class="required"><span class="help-inline">
<font color="red"> * 三卡牛牛 </font>
</span>
</div>
</div> -->
<div class="control-group">
<label class="control-label">日赢上限:</label>
<div class="controls">
<input id="win_limit" name="win_limit" type="text" value="0" maxlength="10" class="required" onkeyup="value=value.replace(/[^\d]/g,'')"><span class="help-inline">
<font color="red"> * 默认0则为没有限制</font>
</span>
</div>
</div>
<div class="bottom-buttom">
<label class="control-label"></label>
<div class="controls">
<div class='submit'>保存</div>
</div>
</div>
</div>
<script>
// 代理列表和添加代理切换
$('.x-nav .change_box a').click(function(){
// 样式切换
$('.x-nav .change_box a').removeClass('actived');
$(this).addClass('actived');
// 页面切换
var id = $(this).attr('data-id');
if(id == "1") location.href = '/agent/index';
if(id == "2") location.href = '/agent/agent_add';
});
// 切换总代性质
$('.agent_type').change(function(){
var agentType = $('.agent_type:checked').val();
if(agentType == 1){
$('.rebate-box').show();
}else{
$('.rebate-box').hide();
}
});
$('.agent_type').change();
//监听提交
$('.submit').click(function (data) {
// 获取和拼装添加代理的数据
var limit_checkout = new Array();
var query = new Object();
query.username = $('#L_username').val();
query.nickname = $('#L_nickname').val();
query.pass = $('#L_pass').val();
query.repass = $('#L_repass').val();
query.mobile = $('#L_mobile').val();
query.email = $('#L_email').val();
query.agent_type = $('.agent_type:checked').val();
query.pay_channel = $('.pay_channel:checked').val();
query.type_xima = $('.type_xima:checked').val();
query.share_xima = $('#share_xima').val();
query.rebate_rate = $('#rebate_rate').val();
query.ximalv = $('#L_ximalv').val();
query.ximalv_dt = $('#L_ximalv_dt').val();
query.ximalv_nn = $('#L_ximalv_nn').val();
query.ximalv_tc = $('#L_ximalv_tc').val();
query.cs = $('#L_cs').val();
query.bet_type = $('#L_bet_type').val();
query.limit_low = $('#limit_low').val();
query.limit_high = $('#limit_high').val();
query.limit_low_tie = $('#limit_low_tie').val();
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.price_banker = $('#price_banker').val();
query.price_player = $('#price_player').val();
query.price_tie_baccarat = $('#price_tie_baccarat').val();
query.price_pair = $('#price_pair').val();
query.price_luck_six_2 = $('#price_luck_six_2').val();
query.price_luck_six_3 = $('#price_luck_six_3').val();
query.price_big = $('#price_big').val();
query.price_small = $('#price_small').val();
query.price_dragon = $('#price_dragon').val();
query.price_tiger = $('#price_tiger').val();
query.price_tie_dt = $('#price_tie_dt').val();
query.price_n0_n6 = $('#price_n0_n6').val();
query.price_n7_n9 = $('#price_n7_n9').val();
query.price_nn = $('#price_nn').val();
query.price_5n = $('#price_5n').val();
query.price_bomb = $('#price_bomb').val();
query.win_limit = $('#win_limit').val();
query.price_tc_n1 = $('#price_tc_n1').val();
query.price_tc_n2 = $('#price_tc_n2').val();
query.price_tc_n3 = $('#price_tc_n3').val();
query.price_tc_n4 = $('#price_tc_n4').val();
query.price_tc_n5 = $('#price_tc_n5').val();
query.price_tc_n6 = $('#price_tc_n6').val();
query.price_tc_n7 = $('#price_tc_n7').val();
query.price_tc_n8 = $('#price_tc_n8').val();
query.price_tc_n9 = $('#price_tc_n9').val();
query.price_tc_nn = $('#price_tc_nn').val();
query.price_tc_bz = $('#price_tc_bz').val();
query.price_tc_ths = $('#price_tc_ths').val();
query.price_tc_hjths = $('#price_tc_hjths').val();
// query.agent_commission_tc = $('#agent_commission_tc').val();
// query.agent_commission_tc_banker = $('#agent_commission_tc_banker').val();
// 验证数据
if(query.username.length == 0){
layer.alert("请填写账号!");
return false;
}
if(query.nickname.length == 0){
layer.alert("请填写昵称!");
return false;
}
if(query.pass.length <= 0){
layer.alert("请填写密码!");
return false;
}
if(query.pass.length > 0 && query.pass.length < 6){
layer.alert("密码长度为6到16个字符!");
return false;
}
if(query.pass != query.repass){
layer.alert("两次密码不一致!");
return false;
}
if(query.ximalv.length == 0){
layer.alert("请填写百家乐码率");
return false;
}
if(query.ximalv_dt.length == 0){
layer.alert("请填写龙虎码率");
return false;
}
if(query.ximalv_nn.length == 0){
layer.alert("请填写牛牛码率");
return false;
}
if(query.ximalv_tc.length == 0){
layer.alert("请填写三卡牛牛码率");
return false;
}
if(parseFloat(query.cs) > 100){
layer.alert("占股不能超过100%");
return false;
}
if(query.bet_type <= 0){
layer.alert("请选择投注方式");
return false;
}
if(query.limit_low <= 0){
layer.alert("最低限红必须大于0");
return false;
}
if(query.limit_high <= 0){
layer.alert("最高限红必须大于0");
return false;
}
if(parseFloat(query.limit_low) > parseFloat(query.limit_high)){
layer.alert("最高限红必须大于最低限红");
return false;
}
if(query.limit_low_tie <= 0){
layer.alert("最低限红必须大于0");
return false;
}
if(query.limit_high_tie <= 0){
layer.alert("最高限红必须大于0");
return false;
}
if(parseFloat(query.limit_low_tie) > parseFloat(query.limit_high_tie)){
layer.alert("最高和限红必须大于最低和限红");
return false;
}
if(query.limit_low_pair <= 0){
layer.alert("最低限红必须大于0");
return false;
}
if(query.limit_high_pair <= 0){
layer.alert("最高限红必须大于0");
return false;
}
if(parseFloat(query.limit_low_pair) > parseFloat(query.limit_high_pair)){
layer.alert("最高对子限红必须大于最低对子限红");
return false;
}
if(query.price_banker <= 0){
layer.alert("押庄赔率必须大于0");
return false;
}
if(query.price_player <= 0){
layer.alert("押闲赔率必须大于0");
return false;
}
if(query.price_tie_baccarat <= 0){
layer.alert("押和百家乐赔率必须大于0");
return false;
}
if(query.price_pair <= 0){
layer.alert("押对子赔率必须大于0");
return false;
}
if(query.price_luck_six_2 <= 0){
layer.alert("两张牌幸运6赔率必须大于0");
return false;
}
if(query.price_luck_six_3 <= 0){
layer.alert("三张牌幸运6赔率必须大于0");
return false;
}
if(query.price_big <= 0){
layer.alert("押大赔率必须大于0");
return false;
}
if(query.price_small <= 0){
layer.alert("押小赔率必须大于0");
return false;
}
if(query.price_dragon <= 0){
layer.alert("押龙赔率必须大于0");
return false;
}
if(query.price_tiger <= 0){
layer.alert("押虎赔率必须大于0");
return false;
}
if(query.price_tie_dt <= 0){
layer.alert("押和龙虎斗赔率必须大于0");
return false;
}
if(query.price_n0_n6 <= 0){
layer.alert("押牛1-牛6赔率必须大于0");
return false;
}
if(query.price_n7_n9 <= 0){
layer.alert("押牛7-牛9赔率必须大于0");
return false;
}
if(query.price_nn <= 0){
layer.alert("押牛牛赔率必须大于0");
return false;
}
if(query.price_5n <= 0){
layer.alert("押五公赔率必须大于0");
return false;
}
if(query.price_bomb <= 0){
layer.alert("押四条赔率必须大于0");
return false;
}
if(query.win_limit.length <= 0){
layer.alert("日赢上限不能为空");
return false;
}
if(query.price_tc_n1 <= 0){
layer.alert("押牛一三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n2 <= 0){
layer.alert("押牛二三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n3 <= 0){
layer.alert("押牛三三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n4 <= 0){
layer.alert("押牛四三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n5 <= 0){
layer.alert("押牛五三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n6 <= 0){
layer.alert("押牛六三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n7 <= 0){
layer.alert("押牛七三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n8 <= 0){
layer.alert("押牛八三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_n9 <= 0){
layer.alert("押牛九三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_nn <= 0){
layer.alert("押牛牛三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_bz <= 0){
layer.alert("押豹子三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_ths <= 0){
layer.alert("押同花顺三卡牛牛赔率必须大于0");
return false;
}
if(query.price_tc_hjths <= 0){
layer.alert("押皇家同花顺三卡牛牛赔率必须大于0");
return false;
}
// if(query.agent_commission_tc.length <= 0){
// layer.alert("三卡牛牛系统抽水不能为空");
// return false;
// }
// if(query.agent_commission_tc_banker.length <= 0){
// layer.alert("三卡牛牛庄家抽佣不能为空");
// return false;
// }
// 发送数据到后台添加会员
var result = ajax('/agent/do_agent_add',query);
if(result.code == 1){
layer.alert(result.msg, {icon: 6}, function () {
location.href = "/agent/index";
});
}else{
layer.alert(result.msg,{icon:2});
}
return false;
});
// AJAX函数封装
function ajax(url,query){
var returnData = 0;
$.ajax({
url:url,
data:query,
type:'POST',
dataType:'JSON',
async:false,
success:function(data){
returnData = data;
}
});
return returnData;
}
</script>
</body>
</html>