791 lines
35 KiB
HTML
791 lines
35 KiB
HTML
{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="{$agent.username}" maxlength="50" minlength="3" class="required" readonly>
|
||
<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="{$agent.nickname}" 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="password" 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_repass" name="L_repass" type="password" 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="{$agent.mobile}" 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="{$agent.email}" 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;" <?php if($agent['agent_type'] == 1) echo '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;" <?php if($agent['agent_type'] == 2) echo 'checked'; ?>>
|
||
<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;" <?php if($agent['pay_channel'] == $vo['key']) echo 'checked'; ?>>
|
||
<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">
|
||
<input name="type_xima" class="required type_xima" type="radio" value="1" maxlength="20" style="color:#999;width:35px;" <?php if($agent['type_xima'] == 1) echo '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;" <?php if($agent['type_xima'] == 2) echo 'checked'; ?>>
|
||
<span style="position:relative;top:-7px;">单边洗码</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">码量分担方式:</label>
|
||
<div class="controls">
|
||
<select id="share_xima" name="share_xima">
|
||
<option value="1" <?php if($agent['share_xima'] == 1) echo 'selected="selected"' ?>>不分担</option>
|
||
<option value="2" <?php if($agent['share_xima'] == 2) echo 'selected="selected"' ?>>按代理占成比例分担</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">返水率(%):</label>
|
||
<div class="controls">
|
||
<input id="rebate_rate" name="rebate_rate" type="text" value="{$agent.rebate_rate}" 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="{$agent.agent_ximalv}" 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="{$agent.agent_ximalv_dt}" 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="{$agent.agent_ximalv_nn}" 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="{$agent.agent_ximalv_tc}" 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="{$agent.agent_cs}" 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" maxlength="10" class="required" value="{$agent.limit_low}"><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" maxlength="10" class="required" value="{$agent.limit_high}"><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_tie" type="text" maxlength="10" class="required" value="{$agent.limit_low_tie}"><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_tie" type="text" maxlength="10" class="required" value="{$agent.limit_high_tie}"><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_pair" type="text" maxlength="10" class="required" value="{$agent.limit_low_pair}"><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_pair" type="text" maxlength="10" class="required" value="{$agent.limit_high_pair}"><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" <?php if($agent['bet_type'] == 1) {echo 'selected';} ?>>网络投注</option>
|
||
<option value="2" <?php if($agent['bet_type'] == 2) {echo 'selected';} ?>>电话投注</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="{$agent.price_banker}" 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="{$agent.price_player}" 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="{$agent.price_tie_baccarat}" 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="{$agent.price_pair}" 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="{$agent.price_luck_six_2}" 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="{$agent.price_luck_six_3}" 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="{$agent.price_big}" 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="{$agent.price_small}" 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="{$agent.price_dragon}" 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="{$agent.price_tiger}" 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="{$agent.price_tie_dt}" 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="{$agent.price_n0_n6}" 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="{$agent.price_n7_n9}" 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="{$agent.price_nn}" 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="{$agent.price_5n}" 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="{$agent.price_tc_n1}" 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="{$agent.price_tc_n2}" 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="{$agent.price_tc_n3}" 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="{$agent.price_tc_n4}" 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="{$agent.price_tc_n5}" 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="{$agent.price_tc_n6}" 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="{$agent.price_tc_n7}" 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="{$agent.price_tc_n8}" 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="{$agent.price_tc_n9}" 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="{$agent.price_tc_nn}" 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="{$agent.price_tc_bz}" 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="{$agent.price_tc_ths}" 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="{$agent.price_tc_hjths}" 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="{$agent.agent_commission_tc}" 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="{$agent.agent_commission_tc_banker}" 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="{$agent.win_limit}" 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>
|
||
<!-- 隐藏参数 -->
|
||
<input type="hidden" id="agent-id" value="{$agent.id}">
|
||
<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_edit';
|
||
});
|
||
|
||
// 切换总代性质
|
||
$('.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.agent_id = $('#agent-id').val();
|
||
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.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.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.pass.length > 0){
|
||
if(query.pass.length >= 6){
|
||
if(query.pass != query.repass){
|
||
layer.msg("两次密码不一致!");
|
||
return false;
|
||
}
|
||
}else{
|
||
layer.msg("密码不能少于6位字符!");
|
||
return false;
|
||
}
|
||
}
|
||
if(query.ximalv.length == 0){
|
||
layer.msg("请填写百家乐码率");
|
||
return false;
|
||
}
|
||
if(query.ximalv_dt.length == 0){
|
||
layer.msg("请填写龙虎码率");
|
||
return false;
|
||
}
|
||
if(query.ximalv_nn.length == 0){
|
||
layer.msg("请填写牛牛码率");
|
||
return false;
|
||
}
|
||
if(query.ximalv_tc.length == 0){
|
||
layer.msg("请填写三卡牛牛码率");
|
||
return false;
|
||
}
|
||
if(parseFloat(query.cs) > 100){
|
||
layer.msg("占股不能超过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("押无牛-牛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.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_edit',query);
|
||
if(result.code == 1){
|
||
layer.alert(result.msg, {icon: 6}, function () {
|
||
location.href = '/agent/index';
|
||
});
|
||
}else{
|
||
layer.msg(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> |