init: 从宝塔同步到 Gitea
This commit is contained in:
Executable
+815
@@ -0,0 +1,815 @@
|
||||
{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>
|
||||
Executable
+804
@@ -0,0 +1,804 @@
|
||||
{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_bomb" name="price_bomb" type="text" value="{$agent.price_bomb}" 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.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.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.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_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>
|
||||
@@ -0,0 +1,180 @@
|
||||
{include file="public/header"}
|
||||
<body>
|
||||
<div class="x-nav">
|
||||
<span class="layui-breadcrumb">
|
||||
<a href="javascript:;">首页</a>
|
||||
<a href="javascript:;">代理管理</a>
|
||||
<a><cite>已删除代理</cite></a>
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-small" 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>
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so" action="/agent/agent_delete" method="get">
|
||||
<input class="layui-input" placeholder="开始日" name="start" id="start" value="<?php if(isset($get['start'])) {echo $get['start'];} ?>">
|
||||
<input class="layui-input" placeholder="截止日" name="end" id="end" value="<?php if(isset($get['end'])) {echo $get['end'];} ?>">
|
||||
<input type="text" name="nickname" placeholder="请输入用户名" autocomplete="off" class="layui-input" value="<?php if(isset($get['nickname'])) {echo $get['nickname'];} ?>">
|
||||
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
||||
</form>
|
||||
</div>
|
||||
<xblock>
|
||||
<button class="layui-btn layui-btn-danger" onclick="recoverAll()"><i class="layui-icon"></i>批量恢复</button>
|
||||
<!--<button class="layui-btn" onclick="x_admin_show('添加会员','/member/member_add',800,600)"><i-->
|
||||
<!--class="layui-icon"></i>添加-->
|
||||
<!--</button>-->
|
||||
<!--<span class="x-right" style="line-height:40px">共有数据:{$user_del_sum} 条</span>-->
|
||||
</xblock>
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">
|
||||
</i></div>
|
||||
</th>
|
||||
<th>ID</th>
|
||||
<th>账号</th>
|
||||
<th>用户名</th>
|
||||
<th>上级代理</th>
|
||||
<th>最近上分</th>
|
||||
<th>商户余额</th>
|
||||
<th>洗码率(%)</th>
|
||||
<th>占成(%)</th>
|
||||
<th>创建日期</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="user_del_list" item="vo"}
|
||||
<tr>
|
||||
<td>
|
||||
<div class="layui-unselect layui-form-checkbox delete-id" lay-skin="primary" user-id='{$vo.id}'><i class="layui-icon"></i></div>
|
||||
</td>
|
||||
<td>{$vo.id}</td>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
{if condition="$vo.agent_parent_id > 0"}
|
||||
<td>{$vo.agent_parent_username}({$vo.agent_parent_nickname})</td>
|
||||
{else}
|
||||
<td>无</td>
|
||||
{/if}
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.agent_ximalv}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.reg_time}</td>
|
||||
<td class="td-manage">
|
||||
<a onclick="agent_recover(this,'{$vo.id}')" href="javascript:;">
|
||||
恢复
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$user_del_list->render()}
|
||||
<!--<div class="page">-->
|
||||
<!--<div>-->
|
||||
<!--<a class="prev" href=""><<</a>-->
|
||||
<!--<a class="num" href="">1</a>-->
|
||||
<!--<span class="current">2</span>-->
|
||||
<!--<a class="num" href="">3</a>-->
|
||||
<!--<a class="num" href="">489</a>-->
|
||||
<!--<a class="next" href="">>></a>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
|
||||
</div>
|
||||
<script>
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
/*用户-删除*/
|
||||
function agent_recover(obj, id) {
|
||||
layer.confirm('确认要恢复吗?',function () {
|
||||
// 数据验证
|
||||
if(id <= 0){
|
||||
layer.msg('恢复用户出错!');
|
||||
return false;
|
||||
}
|
||||
|
||||
// 拼装数据
|
||||
var query = new Object;
|
||||
query.user_id = id;
|
||||
|
||||
// 发送数据到后台删除会员
|
||||
var result = ajax('/agent/agent_recover',query);
|
||||
if(result.code == 1){
|
||||
layer.msg(result.msg, {icon: 1, time: 1000},function(){
|
||||
location.reload();
|
||||
});
|
||||
}else if(result.code == 0){
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/* 删除多个会员 */
|
||||
function recoverAll() {
|
||||
layer.confirm('确认要恢复吗?', function () {
|
||||
var user_ids = new Array;
|
||||
$('.delete-id').each(function(){
|
||||
if($(this).hasClass('layui-form-checked')){
|
||||
user_ids.push($(this).attr('user-id'));
|
||||
}
|
||||
});
|
||||
|
||||
// 发送数据给后台进行删除
|
||||
var query = new Object;
|
||||
query.user_ids = JSON.stringify(user_ids);
|
||||
var result = ajax('/agent/agent_recover_more',query);
|
||||
if(result.code == 1){
|
||||
layer.msg(result.msg, {icon: 1,time:1000},function(){
|
||||
location.reload();
|
||||
});
|
||||
}else if(result.code == 0){
|
||||
layer.msg(result.msg,{icon:2});
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 封装 AJAX 函数
|
||||
* @param url 目标地址
|
||||
* @param query 参数
|
||||
* @returns {string}
|
||||
*/
|
||||
function ajax(url, query) {
|
||||
var returnData = "";
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
returnData = data;
|
||||
}
|
||||
});
|
||||
return returnData;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,50 @@
|
||||
{include file="public/header"}
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<div class="layui-btn no-print" onclick="jQuery('html').print()">打印</div>
|
||||
<table class="layui-table">
|
||||
<div style="text-align: center;font-size: 18px;font-weight:bold;">代理列表</div>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center;">用户名</th>
|
||||
<th style="text-align: center;">联系人</th>
|
||||
<th style="text-align: center;">代理类型</th>
|
||||
<th style="text-align: center;">上级代理</th>
|
||||
<th style="text-align: center;">投注方式</th>
|
||||
<th style="text-align: center;">最近上分</th>
|
||||
<th style="text-align: center;">商户余额</th>
|
||||
<th style="text-align: center;">洗码率(%)</th>
|
||||
<th style="text-align: center;">占成(%)</th>
|
||||
<th style="text-align: center;">创建日期</th>
|
||||
<th style="text-align: center;">状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="agent_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.nickname}</td>
|
||||
<td>{$vo.agent_level_msg}</td>
|
||||
{if condition="$vo.agent_parent_id > 0"}
|
||||
<td>{$vo.agent_parent_username}({$vo.agent_parent_nickname})</td>
|
||||
{else}
|
||||
<td>无</td>
|
||||
{/if}
|
||||
<td>{$vo.bet_type}</td>
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.agent_ximalv}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.reg_time}</td>
|
||||
{if condition="$vo.status == 1"}
|
||||
<td>正常</td>
|
||||
{else}
|
||||
<td>锁定中</td>
|
||||
{/if}
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+272
@@ -0,0 +1,272 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:10px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
|
||||
.alert{position:fixed; top:15%; left:30%; width:600px; min-height:320px; background:#fff; border:1px solid #e2e2e2; border-radius:5px; display:none;}
|
||||
.alert-title{background:#009688; height:40px; text-align: center; line-height:40px; font-size:14px; border-bootom:1px solid #F2F2F2;color:#fff;}
|
||||
.alert-main th{width:40%; border-left:none; text-align:right;}
|
||||
.alert-main td{border-right:none; }
|
||||
.alert-footer{padding:20px; text-align:center;}
|
||||
.alert-footer span{padding:10px 30px; display:inline-block; border-radius:5px; cursor:pointer;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" class="list-one actived" data-id="1">代理列表</a>
|
||||
<?php if($user_info['role'] == 0) : ?>
|
||||
<a href="javascript:;" class="list-two" data-id="2">代理添加</a>
|
||||
<?php endif; ?>
|
||||
</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="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so float-left" action="/agent/index" method="get">
|
||||
<?php if(isset($get['id']) && $get['id'] > 0) : ?>
|
||||
<?php else : ?>
|
||||
<input type="text" name="username" id="username" placeholder="请输入总代理的用户名" autocomplete="off" class="layui-input" value="<?php if(isset($get['username'])) {echo $get['username'];} ?>">
|
||||
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
||||
<?php endif; ?>
|
||||
<!--<span class="layui-btn" id="export">导出 excel</span>-->
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用户名</th>
|
||||
<th>联系人</th>
|
||||
<th>上级代理</th>
|
||||
<th>投注方式</th>
|
||||
<th>最近上分</th>
|
||||
<th>商户余额</th>
|
||||
<th>百/龙/牛/三卡 码率(%)</th>
|
||||
<th>占成(%)</th>
|
||||
<th>日赢上限</th>
|
||||
<th>赔率</th>
|
||||
<th>创建日期</th>
|
||||
<th>操作</th>
|
||||
<th>查看</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="agent_list" item="vo"}
|
||||
<tr>
|
||||
<td><a href="javascript:;" class="relation" onclick="x_admin_show('关系结构','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a></td>
|
||||
<td>{$vo.nickname}</td>
|
||||
{if condition="$vo.agent_parent_id > 0"}
|
||||
<td>{$vo.agent_parent_username}</td>
|
||||
{else}
|
||||
<td>-</td>
|
||||
{/if}
|
||||
<td>{$vo.bet_type}</td>
|
||||
<td>{$vo.last_recharge}</td>
|
||||
<td>{$vo.money}</td>
|
||||
<td>{$vo.ximalv}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.win_limit}</td>
|
||||
<th>
|
||||
<a href="javascript:;" onclick="showPrice(this)" price-username="{$vo.username}" price-banker="{$vo.price_banker}" price-player="{$vo.price_player}" price-tie-baccarat="{$vo.price_tie_baccarat}" price-pair="{$vo.price_pair}" price-dragon="{$vo.price_dragon}" price-tiger="{$vo.price_tiger}" price-tie-dt="{$vo.price_tie_dt}" price-n0-n6="{$vo.price_n0_n6}" price-n7-n9="{$vo.price_n7_n9}" price-nn="{$vo.price_nn}" price-5n="{$vo.price_5n}" price-bomb="{$vo.price_bomb}" price-tc-n1="{$vo.price_tc_n1}" price-tc-n2="{$vo.price_tc_n2}" price-tc-n3="{$vo.price_tc_n3}" price-tc-n4="{$vo.price_tc_n4}" price-tc-n5="{$vo.price_tc_n5}" price-tc-n6="{$vo.price_tc_n6}" price-tc-n7="{$vo.price_tc_n7}" price-tc-n8="{$vo.price_tc_n8}" price-tc-n9="{$vo.price_tc_n9}" price-tc-nn="{$vo.price_tc_nn}" price-tc-bz="{$vo.price_tc_bz}" price-tc-ths="{$vo.price_tc_ths}" price-tc-hjths="{$vo.price_tc_hjths}">
|
||||
<span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;" >查看</span>
|
||||
</a>
|
||||
</th>
|
||||
<td>{$vo.reg_time}</td>
|
||||
<td class="td-manage">
|
||||
<a href="/agent/agent_edit?agent_id={$vo.id}"><span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#009688;">修改</span></a>
|
||||
<a onclick="member_del(this,'{$vo.id}')" href="javascript:;"><span class="layui-btn layui-btn-normal layui-btn-mini" style="background:#ff5050;">删除</span></a>
|
||||
</td>
|
||||
<td style="color: red;">
|
||||
<?php if($vo['agent'] == 1) : ?>
|
||||
<span ><a href="/agent/index?id={$vo.id}" style="color: #1E9FFF;">查看下级</a></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$agent_list->render()}
|
||||
</div>
|
||||
<div class="alert" id="alert_price">
|
||||
<div class="alert-title" id="show_price_username"></div>
|
||||
<div class="alert-main">
|
||||
<table class="layui-table" style="margin:0;">
|
||||
<tr><th>押庄赔率:</th><td id="show_price_banker"></td></tr>
|
||||
<tr><th>押闲赔率:</th><td id="show_price_player"></td></tr>
|
||||
<tr><th>押和赔率(百家乐):</th><td id="show_price_tie_baccarat"></td></tr>
|
||||
<tr><th>押对子赔率:</th><td id="show_price_pair"></td></tr>
|
||||
<tr><th>押龙赔率:</th><td id="show_price_dragon"></td></tr>
|
||||
<tr><th>押虎赔率:</th><td id="show_price_tiger"></td></tr>
|
||||
<tr><th>押和赔率(龙虎斗):</th><td id="show_price_tie_dt"></td></tr>
|
||||
<tr><th>押无牛-牛6赔率:</th><td id="show_price_n0_n6"></td></tr>
|
||||
<tr><th>押牛7-牛9赔率:</th><td id="show_price_n7_n9"></td></tr>
|
||||
<tr><th>押牛牛赔率:</th><td id="show_price_nn"></td></tr>
|
||||
<tr><th>押五公赔率:</th><td id="show_price_5n"></td></tr>
|
||||
<tr><th>押四条赔率:</th><td id="show_price_bomb"></td></tr>
|
||||
<tr><th>押牛一赔率(三卡):</th><td id="show_price_tc_n1"></td></tr>
|
||||
<tr><th>押牛二赔率(三卡):</th><td id="show_price_tc_n2"></td></tr>
|
||||
<tr><th>押牛三赔率(三卡):</th><td id="show_price_tc_n3"></td></tr>
|
||||
<tr><th>押牛四赔率(三卡):</th><td id="show_price_tc_n4"></td></tr>
|
||||
<tr><th>押牛五赔率(三卡):</th><td id="show_price_tc_n5"></td></tr>
|
||||
<tr><th>押牛六赔率(三卡):</th><td id="show_price_tc_n6"></td></tr>
|
||||
<tr><th>押牛七赔率(三卡):</th><td id="show_price_tc_n7"></td></tr>
|
||||
<tr><th>押牛八赔率(三卡):</th><td id="show_price_tc_n8"></td></tr>
|
||||
<tr><th>押牛九赔率(三卡):</th><td id="show_price_tc_n9"></td></tr>
|
||||
<tr><th>押牛牛赔率(三卡):</th><td id="show_price_tc_nn"></td></tr>
|
||||
<tr><th>押豹子赔率(三卡):</th><td id="show_price_tc_bz"></td></tr>
|
||||
<tr><th>押同花顺赔率(三卡):</th><td id="show_price_tc_ths"></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="alert-footer">
|
||||
<span onclick="hiddenForm('alert_price')" class="input_button" style="background:#009688; border:1px solid #e2e2e2;color:#fff;">关闭</span>
|
||||
</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';
|
||||
});
|
||||
|
||||
/*用户-删除*/
|
||||
function member_del(obj, id) {
|
||||
layer.confirm('确认要删除吗?',function () {
|
||||
// 数据验证
|
||||
if(id <= 0){
|
||||
layer.msg('删除用户出错!');
|
||||
return false;
|
||||
}
|
||||
// 拼装数据
|
||||
var query = new Object;
|
||||
query.user_id = id;
|
||||
// 发送数据到后台删除会员
|
||||
var result = ajax('/agent/agent_del',query);
|
||||
if(result.code == 1){
|
||||
layer.msg(result.msg, {icon: 1, time: 1000},function(){
|
||||
location.reload();
|
||||
});
|
||||
}else if(result.code == 0){
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 封装 AJAX 函数
|
||||
* @param url 目标地址
|
||||
* @param query 参数
|
||||
* @returns {string}
|
||||
*/
|
||||
function ajax(url, query) {
|
||||
var returnData = "";
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
returnData = data;
|
||||
}
|
||||
});
|
||||
return returnData;
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/agent/index?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
});
|
||||
|
||||
// 显示用户的赔率
|
||||
function showPrice(obj){
|
||||
// 获取赔率数据
|
||||
var price_username = $(obj).attr('price-username');
|
||||
var price_banker = $(obj).attr('price-banker');
|
||||
var price_player = $(obj).attr('price-player');
|
||||
var price_tie_baccarat = $(obj).attr('price-tie-baccarat');
|
||||
var price_pair = $(obj).attr('price-pair');
|
||||
var price_dragon = $(obj).attr('price-dragon');
|
||||
var price_tiger = $(obj).attr('price-tiger');
|
||||
var price_tie_dt = $(obj).attr('price-tie-dt');
|
||||
var price_n0_n6 = $(obj).attr('price-n0-n6');
|
||||
var price_n7_n9 = $(obj).attr('price-n7-n9');
|
||||
var price_nn = $(obj).attr('price-nn');
|
||||
var price_5n = $(obj).attr('price-5n');
|
||||
var price_bomb = $(obj).attr('price-bomb');
|
||||
var price_tc_n1 = $(obj).attr('price-tc-n1');
|
||||
var price_tc_n2 = $(obj).attr('price-tc-n2');
|
||||
var price_tc_n3 = $(obj).attr('price-tc-n3');
|
||||
var price_tc_n4 = $(obj).attr('price-tc-n4');
|
||||
var price_tc_n5 = $(obj).attr('price-tc-n5');
|
||||
var price_tc_n6 = $(obj).attr('price-tc-n6');
|
||||
var price_tc_n7 = $(obj).attr('price-tc-n7');
|
||||
var price_tc_n8 = $(obj).attr('price-tc-n8');
|
||||
var price_tc_n9 = $(obj).attr('price-tc-n9');
|
||||
var price_tc_nn = $(obj).attr('price-tc-nn');
|
||||
var price_tc_bz = $(obj).attr('price-tc-bz');
|
||||
var price_tc_ths = $(obj).attr('price-tc-ths');
|
||||
var price_tc_hjths = $(obj).attr('price-tc-hjths');
|
||||
|
||||
// 显示赔率数据
|
||||
$('#show_price_username').html(price_username+" 的赔率");
|
||||
$('#show_price_banker').html(price_banker);
|
||||
$('#show_price_player').html(price_player);
|
||||
$('#show_price_tie_baccarat').html(price_tie_baccarat);
|
||||
$('#show_price_pair').html(price_pair);
|
||||
$('#show_price_dragon').html(price_dragon);
|
||||
$('#show_price_tiger').html(price_tiger);
|
||||
$('#show_price_tie_dt').html(price_tie_dt);
|
||||
$('#show_price_n0_n6').html(price_n0_n6);
|
||||
$('#show_price_n7_n9').html(price_n7_n9);
|
||||
$('#show_price_nn').html(price_nn);
|
||||
$('#show_price_5n').html(price_5n);
|
||||
$('#show_price_bomb').html(price_bomb);
|
||||
$('#show_price_tc_n1').html(price_tc_n1);
|
||||
$('#show_price_tc_n2').html(price_tc_n2);
|
||||
$('#show_price_tc_n3').html(price_tc_n3);
|
||||
$('#show_price_tc_n4').html(price_tc_n4);
|
||||
$('#show_price_tc_n5').html(price_tc_n5);
|
||||
$('#show_price_tc_n6').html(price_tc_n6);
|
||||
$('#show_price_tc_n7').html(price_tc_n7);
|
||||
$('#show_price_tc_n8').html(price_tc_n8);
|
||||
$('#show_price_tc_n9').html(price_tc_n9);
|
||||
$('#show_price_tc_nn').html(price_tc_nn);
|
||||
$('#show_price_tc_bz').html(price_tc_bz);
|
||||
$('#show_price_tc_ths').html(price_tc_ths);
|
||||
$('#show_price_tc_hjths').html(price_tc_hjths);
|
||||
|
||||
$('#alert_price').show();
|
||||
}
|
||||
//点击隐藏表单弹窗
|
||||
function hiddenForm(id) {
|
||||
$('#' + id).hide();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+174
@@ -0,0 +1,174 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:12px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
.layui-table td, .layui-table th {padding: 5px 4px;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<div class="layui-row">
|
||||
<div class="layui-form layui-col-md12 x-so float-left">
|
||||
<div class="layui-input-block" style="width: 300px;">
|
||||
<select name="zd_agent" id="zd_agent" lay-ignore style="height: 38px;line-height: 38px;font-size: 12px;padding: 0px 0px;">
|
||||
<option value="0" selected>请选择总代</option>
|
||||
{foreach name="agent_list" item="vo"}
|
||||
<option value={$vo.id} >{$vo.username}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
<input class="layui-input" placeholder="开始时间" name="startDate" id="start" value="">
|
||||
<input class="layui-input" placeholder="截止时间" name="endDate" id="end" value="">
|
||||
|
||||
<div class="layui-btn" lay-submit="" lay-filter="sreach" onclick="get_profit()"><i class="layui-icon"></i></div>
|
||||
</div>
|
||||
</div>
|
||||
<table class="layui-table" style="width: 90%;margin: 0 auto;margin-top: 15px;font-size: 14px;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 40%">总上下水</td>
|
||||
<td style="width: 60%" id="bet_win_total">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>归属总代上下水</td>
|
||||
<td id="zs_bet_win_total">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>总押</td>
|
||||
<td id="bet_amount">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>码量</td>
|
||||
<td id="maliang">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>玩家数量</td>
|
||||
<td id="bet_play_num">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>幸运玩家</td>
|
||||
<td id="lucky_palyer">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>悲催玩家</td>
|
||||
<td id="fucking_player">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>百家乐总赢</td>
|
||||
<td id="baccarat_win_towal">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>三卡总赢</td>
|
||||
<td id="tk_win_towal">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>牛牛总赢</td>
|
||||
<td id="nn_win_towal">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>龙虎总赢</td>
|
||||
<td id="dt_win_towal">-</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>总收益</td>
|
||||
<td id="total_profit">-</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
<script>
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 计算默认时间:今天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.render({
|
||||
elem: '#start',
|
||||
type: 'datetime',
|
||||
value: defaultStart
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime',
|
||||
value: defaultEnd
|
||||
});
|
||||
});
|
||||
function get_profit(){
|
||||
var zd_agent = $('#zd_agent option:selected').val();
|
||||
var start_time = $('#start').val();
|
||||
var end_time = $('#end').val();
|
||||
if(zd_agent == 0){
|
||||
layer.msg('请选择总代');
|
||||
return false;
|
||||
}
|
||||
if(!start_time){
|
||||
layer.msg('请选择开始时间');
|
||||
return false;
|
||||
}
|
||||
if(!end_time){
|
||||
layer.msg('请选择结束时间');
|
||||
return false;
|
||||
}
|
||||
var index = layer.load(1, {
|
||||
shade: [0.3,'#000'] //0.1透明度的白色背景
|
||||
});
|
||||
$.ajax({
|
||||
url:'/agent/get_profit',
|
||||
data:{zd_agent:zd_agent,start_time:start_time,end_time:end_time},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
layer.close(index);
|
||||
if(data.code == 0){
|
||||
layer.msg(data.msg);
|
||||
}else{
|
||||
var return_data = data.data;
|
||||
$('#bet_win_total').html(return_data.bet_win_total);
|
||||
$('#zs_bet_win_total').html(return_data.zs_bet_win_total);
|
||||
$('#maliang').html(return_data.maliang);
|
||||
$('#bet_amount').html(return_data.bet_amount);
|
||||
$('#bet_play_num').html(return_data.bet_play_num);
|
||||
$('#baccarat_win_towal').html(return_data.baccarat_win_towal);
|
||||
$('#dt_win_towal').html(return_data.dt_win_towal);
|
||||
$('#nn_win_towal').html(return_data.nn_win_towal);
|
||||
$('#tk_win_towal').html(return_data.tk_win_towal);
|
||||
$('#lucky_palyer').html(return_data.lucky_palyer);
|
||||
$('#fucking_player').html(return_data.fucking_player);
|
||||
$('#total_profit').html(return_data.total_profit);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,158 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:12px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" class="list-one actived" data-id="1">代理上下分记录列表</a>
|
||||
<?php if($user_info['role'] == 0 || $user_info['role'] == 3) : ?>
|
||||
<a href="javascript:;" class="list-two" data-id="2">代理上下分记录添加</a>
|
||||
<?php endif; ?>
|
||||
</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="x-body">
|
||||
<div class="layui-row">
|
||||
<form class="layui-form layui-col-md12 x-so float-left" action="/agent/scores" method="get">
|
||||
<input class="layui-input" placeholder="开始时间" name="startDate" id="start" value="<?php if(isset($get['startDate'])) {echo $get['startDate'];} ?>">
|
||||
<input class="layui-input" placeholder="截止时间" name="endDate" id="end" value="<?php if(isset($get['endDate'])) {echo $get['endDate'];} ?>">
|
||||
<div class="layui-input-block" >
|
||||
<select name="agent_or_admin" id="agent_or_admin">
|
||||
<option value="">全部上下分记录</option>
|
||||
<option value="1" <?php if(isset($get['agent_or_admin']) && $get['agent_or_admin'] == 1) {echo 'selected';} ?>>查询总台给总代理上下分记录</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-input-block" >
|
||||
<select name="mode" id="mode">
|
||||
<option value="-1" selected>操作类型</option>
|
||||
<option value="1" <?php if(isset($get['mode']) && $get['mode'] == 1) {echo 'selected';} ?>>上分</option>
|
||||
<option value="2" <?php if(isset($get['mode']) && $get['mode'] == 2) {echo 'selected';} ?>>下分</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="text" name="username" id="username" placeholder="请输入用户名" autocomplete="off" class="layui-input" value="<?php if(isset($get['username'])) {echo $get['username'];} ?>">
|
||||
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
||||
<span class="layui-btn" id="export">导出 excel</span>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>账号</th>
|
||||
<th>联系人</th>
|
||||
<th>操作类型</th>
|
||||
<th>操作金额</th>
|
||||
<th>操作人</th>
|
||||
<th>操作前余额</th>
|
||||
<th>余额</th>
|
||||
<th>创建日期</th>
|
||||
<th>备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="scoresList" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username_for}</td>
|
||||
<td>{$vo.nickname_for}</td>
|
||||
{if condition="$vo.mode == 1"}
|
||||
<td style="color:#ff5050;">{$vo.mode_msg}</td>
|
||||
<td style="color:#ff5050;">{$vo.amount}</td>
|
||||
{else}
|
||||
<td style="color:#009688;">{$vo.mode_msg}</td>
|
||||
<td style="color:#009688;">{$vo.amount}</td>
|
||||
{/if}
|
||||
<td>{$vo.controller_username}</td>
|
||||
<td>{$vo.old_money}</td>
|
||||
<td>{$vo.new_money}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.agent_or_admin_msg}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$scoresList->render()}
|
||||
</div>
|
||||
<script>
|
||||
// 代理列表和添加代理切换
|
||||
$('.x-nav .change_box a').click(function(){
|
||||
// 样式切换
|
||||
$('.x-nav span').removeClass('actived');
|
||||
$(this).addClass('actived');
|
||||
// 页面切换
|
||||
var id = $(this).attr('data-id');
|
||||
if(id == 1) location.href = '/agent/scores';
|
||||
if(id == 2) location.href = '/agent/scores_add';
|
||||
});
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 封装 AJAX 函数
|
||||
* @param url 目标地址
|
||||
* @param query 参数
|
||||
* @returns {string}
|
||||
*/
|
||||
function ajax(url, query) {
|
||||
var returnData = "";
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
returnData = data;
|
||||
}
|
||||
});
|
||||
return returnData;
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
var agent_level = $('#agent_level').val();
|
||||
var mode = $('#mode').val();
|
||||
var username = $('#username').val();
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/agent/scores?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,291 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
textarea, input[type="text"], input[type="password"],
|
||||
.uneditable-input{border: 1px solid #ccc;background-color: #fff; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
.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; }
|
||||
|
||||
#search-agent{ padding-left:16px;padding-top:5px; background:#fff; border-radius:5px;position:absolute; left:315px;top:0; margin-left:-3px;display:block;height:21px; color:black; border:1px solid #ececec; width: 25px;cursor:pointer; }
|
||||
#search-agent:hover{border-color:#ccc;}
|
||||
#search-agent i{margin-top:30px;}
|
||||
#search-agent:hover > i{ color:#148cf1; }
|
||||
#search-agent i{ margin-left:-4px; }
|
||||
#L_username{ background:#ececec; cursor:pointer; }
|
||||
#agent_list{ width:300px; height:400px; border:1px solid #a2a2a2; position:absolute; left:550px; top:44px; z-index:99; background:#fff; display:none; }
|
||||
#agent_list #header-box{ width:100%; height:40px; border-bottom:1px solid #ccc; position:relative; cursor:move; }
|
||||
#agent_list #header-box a{ position:absolute; top:3px; right:20px; font-size:22px; }
|
||||
#agent_list #header-box div{ height:30px; margin:10px 25px; line-height:30px; font-size:18px; font-weight:bold; color:#333; }
|
||||
#agent_list .main-box{ height:50px; margin-top:10px; background:#fff; }
|
||||
#agent_list .main-box label{ font-size:14px; margin-left:25px; margin-right:10px; }
|
||||
#agent_list .main-box input{ border-radius:5px; height:30px; width:110px; border:1px solid #ccc; padding-left:5px; }
|
||||
#agent_list .main-box input:focus{ border:1px solid #148cf1; }
|
||||
#agent_list .main-box button{ background:#fff; border:1px solid #ccc; width:60px; height:30px; border-radius:5px; cursor:pointer; margin-left:10px; }
|
||||
#agent_list .main-box button:hover{ border:1px solid #8a8a8a; }
|
||||
#agent_list .main-box .z-tree{ margin-top:20px; height:240px; }
|
||||
#agent_list .main-box .z-tree ul{ margin-left: 50px; }
|
||||
#agent_list .main-box .z-tree ul li{ list-style: none; position:relative; height:20px; padding-left:2px; cursor:default; }
|
||||
#agent_list .main-box .z-tree ul li:before{ position:absolute; top:-12px; left:-12px; content: ''; width: 10px; height: 20px; border-style: none none dotted dotted; border-width: 1px; border-color: #9e9e9e; }
|
||||
#agent_list .main-box .z-tree ul li.first:before{ border-style: none none dotted none; }
|
||||
#agent_list .main-box .z-tree ul li span.agent_name_box.on{ background:#eaeaea; border:1px solid #ccc; }
|
||||
#agent_list .button-box{ height:40px; background:#eee; position:relative; top:249px; line-height:40px; }
|
||||
#agent_list .button-box span{ position:absolute; right:10px; }
|
||||
#agent_list .button-box span button{ width:50px; height:25px; margin-left:2px; border-radius:5px; }
|
||||
#agent_list .button-box span button:hover{ background:#edefd1; }
|
||||
</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" style="position:relative;">
|
||||
<input id="L_username" name="L_username" type="text" readonly maxlength="50" minlength="3" class="required">
|
||||
<span id="search-agent"><i class="layui-icon"></i></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">操作类型:</label>
|
||||
<div class="controls" style="padding-top: 5px;">
|
||||
<input class="scores" name="scores" value="1" type="radio" class="required" style="width:20px;height: 14px;font-size: 14px;">上分
|
||||
<input class="scores" name="scores" value="2" type="radio" class="required" style="width:20px;height: 14px;font-size: 14px;">下分
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">操作金额:</label>
|
||||
<div class="controls">
|
||||
<input id="L_amount" name="L_amount" type="text" value maxlength="50" minlength="3" class="required">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">操作用户:</label>
|
||||
<div class="controls">
|
||||
<input id="L_controller" name="L_controller" type="text" readonly value="{$user_info.admin}" maxlength="50" minlength="3" class="required">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">余额:</label>
|
||||
<div class="controls">
|
||||
<input id="L_money" name="L_money" type="text" readonly value maxlength="50" minlength="3" class="required">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">备注:</label>
|
||||
<div class="controls">
|
||||
<textarea name="desc" id="L_remarks" placeholder="请输入内容" class="layui-textarea"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-buttom">
|
||||
<label class="control-label"></label>
|
||||
<div class="controls">
|
||||
<div class='submit'>保存</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="agent_list">
|
||||
<div id="header-box">
|
||||
<div>选择总代理</div>
|
||||
<a class="cancel" href="javascript:;">X</a>
|
||||
</div>
|
||||
<div class="main-box">
|
||||
<div class="search-box">
|
||||
<label class="key-word">关键字 :</label>
|
||||
<input type="text" id="agent_name">
|
||||
<button id="search_key_word">搜索</button>
|
||||
</div>
|
||||
<div class="z-tree" id="z-tree">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="button-box">
|
||||
<span>
|
||||
<button class="ensure">确定</button>
|
||||
<button class="cancel">取消</button>
|
||||
</span>
|
||||
</div>
|
||||
<input type="hidden" id="short-username" value="">
|
||||
</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/scores';
|
||||
if(id == "2") location.href = '/agent/scores_add';
|
||||
});
|
||||
|
||||
// 鼠标按下控件跟随移动
|
||||
function mouseMoveBox(pressId,boxId){
|
||||
var _move = false;//移动标记
|
||||
var _x,_y;//鼠标离控件左上角的相对位置
|
||||
$("#"+pressId).mousedown(function(e){
|
||||
// 按下鼠标计算与控件的相对位置
|
||||
_move = true;
|
||||
_x = e.pageX-parseInt($("#"+boxId).css("left"));
|
||||
_y = e.pageY-parseInt($("#"+boxId).css("top"));
|
||||
});
|
||||
$(document).mousemove(function(e){
|
||||
if(_move){
|
||||
//移动时根据鼠标位置计算控件左上角的绝对位置
|
||||
var x=e.pageX-_x;
|
||||
var y=e.pageY-_y;
|
||||
$("#"+boxId).css({top:y,left:x});//控件新位置
|
||||
}
|
||||
}).mouseup(function(){
|
||||
//松开鼠标后停止移动
|
||||
_move = false;
|
||||
});
|
||||
}
|
||||
// 代理列表跟随鼠标移动
|
||||
mouseMoveBox('header-box','agent_list');
|
||||
|
||||
|
||||
// 点击搜索所有的代理列表
|
||||
$('#search-agent').click(function(){
|
||||
var result = ajax('/agent/getAgent');
|
||||
$('#z-tree').empty().append(result);
|
||||
$('#agent_list').show();
|
||||
});
|
||||
$('#L_username').click(function(){
|
||||
var result = ajax('/agent/getAgent');
|
||||
$('#z-tree').empty().append(result);
|
||||
$('#agent_list').show();
|
||||
});
|
||||
|
||||
// 关键字搜索所有的代理列表
|
||||
$('#search_key_word').click(function(){
|
||||
var key_word = $('#agent_name').val();
|
||||
if(key_word){
|
||||
var query = new Object();
|
||||
query.username = key_word;
|
||||
var result = ajax('/agent/getAgent',query);
|
||||
$('#z-tree').empty().append(result);
|
||||
$('#agent_list').show();
|
||||
}
|
||||
});
|
||||
|
||||
// 选择代理名字
|
||||
$('#agent_list').on('click','.tree-li',function(){
|
||||
var username = $(this).find('span').eq(1).html();
|
||||
// 调整样式
|
||||
$('.agent_name_box').removeClass('on');
|
||||
$(this).find('.agent_name_box').addClass('on');
|
||||
// 动态数据
|
||||
$('#short-username').val(username);
|
||||
});
|
||||
// 双击触发选择代理
|
||||
$('#agent_list').on('dblclick','.tree-li',function(){
|
||||
$('.ensure').trigger('click');
|
||||
});
|
||||
|
||||
// 确定
|
||||
$('.ensure').click(function(){
|
||||
var username = $('#short-username').val();
|
||||
$('#L_username').val(username);
|
||||
$('#agent_list').hide();
|
||||
// 获取代理余额信息
|
||||
var username = $('#L_username').val();
|
||||
if(username){
|
||||
var result = ajax('/agent/getAgentMoney',{username:username});
|
||||
// 显示余额限制
|
||||
$('#L_money').val(result);
|
||||
}
|
||||
});
|
||||
|
||||
// 取消
|
||||
$('.cancel').click(function(){
|
||||
$('#agent_list').hide();
|
||||
});
|
||||
|
||||
// 选择上分还是下分
|
||||
$('.scores').click(function(){
|
||||
var id = $(this).val();
|
||||
if(id == 1) $('#L_remarks').html('总台上分 !');
|
||||
if(id == 2) $('#L_remarks').html('总台下分 !');
|
||||
})
|
||||
|
||||
//监听提交
|
||||
$('.submit').click(function (data) {
|
||||
// 获取和拼装添加代理的数据
|
||||
var query = new Object();
|
||||
query.username = $('#L_username').val();
|
||||
query.amount = $('#L_amount').val();
|
||||
query.mode = $('.scores:checked').val();
|
||||
query.controller = $('#L_controller').val();
|
||||
query.remarks = $('#L_remarks').val();
|
||||
var money = $('#L_money').val();
|
||||
|
||||
// 验证数据
|
||||
if(!query.username){
|
||||
layer.alert("请选择账号!");
|
||||
return false;
|
||||
}
|
||||
if(!query.mode){
|
||||
layer.alert("请选择操作类型!");
|
||||
return false;
|
||||
}
|
||||
if(!query.amount){
|
||||
layer.alert("请输入操作金额!");
|
||||
return false;
|
||||
}
|
||||
if(parseFloat(query.amount) <= 0){
|
||||
layer.alert("操作金额必须大于0!");
|
||||
return false;
|
||||
}
|
||||
if(query.mode == 2 && parseFloat(query.amount) > parseFloat(money)){
|
||||
layer.alert("操作金额不能大于余额!");
|
||||
return false;
|
||||
}
|
||||
// 发送数据到后台添加会员
|
||||
var result = ajax('/agent/do_scores_add',query);
|
||||
if(result.code == 1){
|
||||
layer.alert(result.msg, {icon: 6}, function () {
|
||||
location.href = "/agent/scores";
|
||||
});
|
||||
}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>
|
||||
@@ -0,0 +1,87 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-nav{overflow: inherit; }
|
||||
.x-nav .refresh{margin-right: 20px; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
.change_box .scores_add_show{border-right:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative;border-left: 1px solid #e5e5e5;}
|
||||
.change_box .scores_add_show{color: #3daae9;}
|
||||
.change_box .scores_add_show:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; }
|
||||
.layui-input-block{ width:500px; }
|
||||
.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;padding-top: 5px; }
|
||||
.bottom-buttom{border-top: 1px solid #e5e5e5; margin-top: 20px; background-color: #f5f5f5; padding: 30px 0; }
|
||||
.pass_back{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">
|
||||
<span class="change_box">
|
||||
<a href="/agent/scores" class="scores_list">代理上下分记录列表</a>
|
||||
<a href="javascript:;" class="scores_add_show">代理上下分记录查看</a>
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-small" 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>
|
||||
<form class="layui-form form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">账号:</label>
|
||||
<div class="controls" style="position:relative;">
|
||||
{$recharge.username_for}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">操作类型:</label>
|
||||
{if condition="$recharge.mode == 1"}
|
||||
<div class="controls" style="position:relative;color:#ff5050;">
|
||||
{$recharge.mode_msg}
|
||||
</div>
|
||||
{else}
|
||||
<div class="controls" style="position:relative;color:#009688;">
|
||||
{$recharge.mode_msg}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">操作金额:</label>
|
||||
{if condition="$recharge.mode == 1"}
|
||||
<div class="controls" style="position:relative;color:#ff5050;">
|
||||
{$recharge.amount}
|
||||
</div>
|
||||
{else}
|
||||
<div class="controls" style="position:relative;color:#009688;">
|
||||
{$recharge.amount}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">操作用户:</label>
|
||||
<div class="controls" style="position:relative;">
|
||||
{$recharge.admin_user_name}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">余额:</label>
|
||||
<div class="controls" style="position:relative;">
|
||||
{$recharge.new_money}
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">备注:</label>
|
||||
<div class="controls" style="position:relative;">
|
||||
{$recharge.remake}
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-buttom">
|
||||
<label class="control-label"></label>
|
||||
<div class="controls">
|
||||
<a href="/agent/scores">
|
||||
<div class='pass_back'>返回</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="scores-id" value="{$recharge.id}">
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,11 @@
|
||||
<ul class="tree">
|
||||
{foreach name="$agent_list" item="vo" key="k"}
|
||||
<li class="<?php if($k == 0) echo 'first'; ?> tree-li" data-id="{$vo.id}">
|
||||
<span class="agent_name_box">
|
||||
<i class="iconfont" style="font-size:13px;"></i>
|
||||
<span>{$vo.username}</span>
|
||||
</span>
|
||||
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
@@ -0,0 +1,43 @@
|
||||
{include file="public/header"}
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<div class="layui-btn no-print" onclick="jQuery('html').print()">打印</div>
|
||||
<table class="layui-table">
|
||||
<div style="text-align: center;font-size: 18px;font-weight:bold;">代理上下分列表</div>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center;">账号</th>
|
||||
<th style="text-align: center;">联系人</th>
|
||||
<th style="text-align: center;">代理类型</th>
|
||||
<th style="text-align: center;">操作类型</th>
|
||||
<th style="text-align: center;">操作金额</th>
|
||||
<th style="text-align: center;">操作人</th>
|
||||
<th style="text-align: center;">余额</th>
|
||||
<th style="text-align: center;">创建日期</th>
|
||||
<th style="text-align: center;">备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="scoresList" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username_for}</td>
|
||||
<td>{$vo.nickname_for}</td>
|
||||
<td>{$vo.user_agent_level_msg}</td>
|
||||
{if condition="$vo.mode == 1"}
|
||||
<td>{$vo.mode_msg}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
{else}
|
||||
<td>{$vo.mode_msg}</td>
|
||||
<td>{$vo.amount}</td>
|
||||
{/if}
|
||||
<td>{$vo.admin_user_name}</td>
|
||||
<td>{$vo.new_money}</td>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.remake}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user