572 lines
26 KiB
HTML
572 lines
26 KiB
HTML
{include file="public/header"}
|
||
<body>
|
||
<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 .table_add{border-right:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative;border-left: 1px solid #e5e5e5;} .change_box .table_list{color: #3daae9;} .change_box .table_add: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: 8px; padding-bottom: 8px; 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: 700px; 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; } .add_submit{width: 50px; text-align: center; background-color:#3daae9; color: #fff; padding: 5px 10px; font-size: 16px; border-radius: 4px; cursor:pointer; } .layui-input-block{display:inline-block; width:200px; margin-left:0;min-height: 26px;} select{height: 26px;} .right_word{font-size: 14px;padding-top: 3px;}.is_check{font-size: 14px;} .is_check input{width: 20px;height: 14px;font-size: 14px;}</style>
|
||
<div class="x-nav" style="padding: 0px;">
|
||
<span class="change_box">
|
||
<a href="/game/index" class="table_list">吧台列表</a>
|
||
<a href="javascript:;" class="table_add">吧台添加</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" class="form-horizontal">
|
||
<div class="control-group">
|
||
<label class="control-label">桌台号:</label>
|
||
<div class="controls">
|
||
<input id="table_num" name="table_name" type="text" style="width:80px;" class="required" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">*只能填大于0的数字</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">桌台名称:</label>
|
||
<div class="controls">
|
||
<input id="table_name" name="table_name" type="text" style="width:192px;" 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">
|
||
<div class="layui-input-block" >
|
||
<select name="game_id" id="game_id">
|
||
<option value="" selected>--请选择游戏名称--</option>
|
||
<option value="1">百家乐</option>
|
||
<option value="2">龙虎斗</option>
|
||
<option value="4">牛牛</option>
|
||
<option value="5">三卡牛牛</option>
|
||
<option value="6">色碟</option>
|
||
<option value="7">骰宝</option>
|
||
<!--
|
||
<option value="8">轮盘</option>
|
||
-->
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">
|
||
<font color="red">*</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="is_mode" style="display: none;">
|
||
<label class="control-label">游戏模式:</label>
|
||
<div class="controls">
|
||
<div class="layui-input-block" >
|
||
<select name="mode" id="mode">
|
||
<option value="" selected>--请选择游戏模式--</option>
|
||
<option value="1">抽佣模式</option>
|
||
<option value="2">免佣模式</option>
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">
|
||
<font color="red">*</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">投注方式:</label>
|
||
<div class="controls">
|
||
<div class="layui-input-block" >
|
||
<select name="bet_type" id="bet_type">
|
||
<option value="0">--请选择投注方式--</option>
|
||
<option value="1">网络投注</option>
|
||
<option value="2">电话投注</option>
|
||
<!--
|
||
<option value="3">所有投注</option>
|
||
-->
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">
|
||
<font color="red">*</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">座位数:</label>
|
||
<div class="controls">
|
||
<div class="layui-input-block" >
|
||
<select name="seat_num" id="seat_num">
|
||
<option value="0">--请选择座位数--</option>
|
||
<option value="1">1</option>
|
||
<option value="2">2</option>
|
||
<option value="3">3</option>
|
||
<option value="3">4</option>
|
||
<option value="3">5</option>
|
||
<option value="3">6</option>
|
||
<option value="3">7</option>
|
||
<option value="3">8</option>
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">
|
||
<font color="red">*</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">本地识别设备IP:</label>
|
||
<div class="controls">
|
||
<input id="media_near_rtmp" name="media_near_rtmp" type="text" value='' maxlength="255" minlength="3" class="required">
|
||
<span class="help-inline">
|
||
<font color="red">* 不填默认为空</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="control-group">
|
||
<label class="control-label">本地荷官端视频[flv]:</label>
|
||
<div class="controls">
|
||
<input id="media_far_rtmp" name="media_far_rtmp" type="text" value='' maxlength="255" minlength="3" class="required">
|
||
<span class="help-inline">
|
||
<font color="red">* 不填默认为空</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">高清[live/hd.flv]:</label>
|
||
<div class="controls">
|
||
<input id="media_far_flv" name="media_far_flv" type="text" value='' maxlength="255" minlength="3" class="required">
|
||
<span class="help-inline">
|
||
<font color="red">* 不填默认为空</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">标清[live/sd.flv]:</label>
|
||
<div class="controls">
|
||
<input id="media_far_ws" name="media_far_ws" type="text" value='' maxlength="255" 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="media_near_flv" name="media_near_flv" type="text" value='' maxlength="255" 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="media_near_ws" name="media_near_ws" type="text" value='' maxlength="255" minlength="3" class="required">
|
||
<span class="help-inline">
|
||
<font color="red">* 不填默认为空[如无,可填入线路一]</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
|
||
<!--
|
||
<div class="control-group" style="display: none;">
|
||
<label class="control-label">近景视频地址_RTMP[已废]:</label>
|
||
<div class="controls">
|
||
<input id="media_near_rtmp" name="media_near_rtmp" type="text" value='' maxlength="255" 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="min_bankerplayer" name="min_bankerplayer" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
-
|
||
<input id="max_bankerplayer" name="max_bankerplayer" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">*</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="w_tie" style="display: block">
|
||
<label class="control-label" >网络-和限红:</label>
|
||
<div class="controls">
|
||
<input id="min_tie" name="min_tie" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
-
|
||
<input id="max_tie" name="max_tie" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">*</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="w_pair" style="display: block">
|
||
<label class="control-label" >网络-对限红:</label>
|
||
<div class="controls">
|
||
<input id="min_pair" name="min_pair" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
-
|
||
<input id="max_pair" name="max_pair" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<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_money_total" name="limit_money_total" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">*0为不设上限</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="total_tie" style="display: block">
|
||
<label class="control-label" >桌子单口最大和限红:</label>
|
||
<div class="controls">
|
||
<input id="limit_money_tie_total" name="limit_money_tie_total" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">*0为不设上限</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="total_pair" style="display: block">
|
||
<label class="control-label" >桌子单口最大对限红:</label>
|
||
<div class="controls">
|
||
<input id="limit_money_pair_total" name="limit_money_pair_total" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 80px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">*0为不设上限</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">下注时间:</label>
|
||
<div class="controls">
|
||
<input id="wait_time" name="wait_time" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 120px;" placeholder="空白则默认30秒" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="rob_time_box" style="display: none;">
|
||
<label class="control-label">等待抢庄时间:</label>
|
||
<div class="controls">
|
||
<input id="rob_time" name="rob_time" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 120px;" placeholder="空白则默认8秒" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
<span class="help-inline">
|
||
<font color="red">* 前三秒为提示准备时间,剩余时间为抢庄时间</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">是否扫牌:</label>
|
||
<div class="controls">
|
||
<div class="right_word">
|
||
<div class="is_check" id="scavenging">
|
||
<input name="scavenging" type="radio" value="1" />是
|
||
<input name="scavenging" type="radio" value="0" checked="checked" />否
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="is_rob_box" style="display: none;">
|
||
<label class="control-label">是否抢庄:</label>
|
||
<div class="controls">
|
||
<div class="right_word">
|
||
<div class="is_check" id="rob">
|
||
<input name="rob" type="radio" value="1" />是
|
||
<input name="rob" type="radio" value="0" checked="checked" />否
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="limit_banker_amount_box" style="display: none;">
|
||
<label class="control-label">上庄金额:</label>
|
||
<div class="controls">
|
||
<input id="limit_banker_amount" name="limit_banker_amount" type="text" value='' maxlength="50" minlength="3" class="required" style="width: 120px;" onkeyup="value=value.replace(/[^\d]/g,'')">
|
||
</div>
|
||
</div>
|
||
<div class="control-group" id="control_select" style="display: none;">
|
||
<label class="control-label">桌子操作模式:</label>
|
||
<div class="controls">
|
||
<div class="layui-input-block" >
|
||
<select name="is_localhost_control" id="is_localhost_control">
|
||
<option value="0">联网控制</option>
|
||
<option value="1">本地控制</option>
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">
|
||
<font color="red">*独立点击台请选择联网控制</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">桌子备注:</label>
|
||
<div class="controls">
|
||
<textarea id="remarks" name="remarks" maxlength="200" class="input-xlarge" rows="3"></textarea>
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">账号:</label>
|
||
<div class="controls">
|
||
<input id="username" name="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="newPassword" name="newPassword" 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="confirmNewPassword" name="confirmNewPassword" 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="nickname" name="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" style="display: none;">
|
||
<label class="control-label">关联手机:</label>
|
||
<div class="controls">
|
||
<input id="phone" name="phone" type="text" value='' class="required">
|
||
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">开牌间隔时间:</label>
|
||
<div class="controls">
|
||
<input id="interval_time" name="interval_time" type="text" value='' class="required">
|
||
|
||
</div>
|
||
</div>
|
||
<div class="control-group">
|
||
<label class="control-label">定位牌模式:</label>
|
||
<div class="controls">
|
||
<div class="layui-input-block" >
|
||
<select name="card_first_type" id="card_first_type">
|
||
<option value="0">扫牌</option>
|
||
<option value="1">骰子</option>
|
||
</select>
|
||
</div>
|
||
<span class="help-inline">
|
||
<font color="red">*牛牛或者三卡牛牛的定位牌模式,百家乐龙虎不起作用</font>
|
||
</span>
|
||
</div>
|
||
</div>
|
||
<div class="bottom-buttom">
|
||
<label class="control-label"></label>
|
||
<div class="controls">
|
||
<div class='add_submit'>保存</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">
|
||
$("select#game_id").change(function(){
|
||
var game_id = $('#game_id').val();
|
||
$("#mode").val("");
|
||
$("#min_pair").val('');
|
||
$("#mxn_pair").val('');
|
||
$("#min_tie").val('');
|
||
$("#mxn_tie").val('');
|
||
if(game_id == 1){
|
||
$('#control_select').show();
|
||
$('#is_mode').show();
|
||
$('#w_pair').show();
|
||
$('#w_tie').show();
|
||
$('#total_pair').show();
|
||
$('#total_tie').hide();
|
||
$('#rob_time_box').hide();
|
||
$('#is_rob_box').hide();
|
||
$('#limit_banker_amount_box').hide();
|
||
}else if(game_id == 2){
|
||
$('#control_select').show();
|
||
$('#is_mode').hide();
|
||
$('#w_pair').hide();
|
||
$('#total_pair').hide();
|
||
$('#rob_time_box').hide();
|
||
$('#is_rob_box').hide();
|
||
$('#limit_banker_amount_box').hide();
|
||
}else if(game_id == 4){
|
||
$('#control_select').hide();
|
||
$('#is_mode').hide();
|
||
$('#w_pair').hide();
|
||
$('#w_tie').hide();
|
||
$('#total_pair').hide();
|
||
$('#total_tie').hide();
|
||
$('#rob_time_box').show();
|
||
$('#is_rob_box').show();
|
||
$('#limit_banker_amount_box').show();
|
||
}else if(game_id == 5){
|
||
$('#control_select').hide();
|
||
$('#is_mode').hide();
|
||
$('#w_pair').hide();
|
||
$('#w_tie').hide();
|
||
$('#total_pair').hide();
|
||
$('#total_tie').hide();
|
||
$('#rob_time_box').show();
|
||
$('#is_rob_box').show();
|
||
$('#limit_banker_amount_box').show();
|
||
}
|
||
});
|
||
|
||
|
||
$('.add_submit').click(function(){
|
||
var query = new Object();
|
||
query.table_num = $('#table_num').val();
|
||
query.table_name = $('#table_name').val();
|
||
query.game_id = $('#game_id').val();
|
||
if(query.game_id == 1){
|
||
query.mode = $('#mode').val();
|
||
}
|
||
query.min_bankerplayer = $('#min_bankerplayer').val();
|
||
query.max_bankerplayer = $('#max_bankerplayer').val();
|
||
if(query.game_id == 1 || query.game_id == 2){
|
||
query.min_tie = $('#min_tie').val();
|
||
query.max_tie = $('#max_tie').val();
|
||
}
|
||
if(query.game_id == 1){
|
||
query.min_pair = $('#min_pair').val();
|
||
query.max_pair = $('#max_pair').val();
|
||
}
|
||
query.wait_time = $('#wait_time').val();
|
||
query.is_scavenging = $('#scavenging').find("input:checked").attr("value");
|
||
if(query.game_id == 4 || query.game_id == 5){
|
||
query.rob_time = $('#rob_time').val();
|
||
query.is_rob = $('#rob').find("input:checked").attr("value");
|
||
query.limit_banker_amount = $('#limit_banker_amount').val();
|
||
}
|
||
query.remarks = $('#remarks').val();
|
||
query.username = $('#username').val();
|
||
query.newPassword = $('#newPassword').val();
|
||
query.confirmNewPassword = $('#confirmNewPassword').val();
|
||
query.nickname = $('#nickname').val();
|
||
query.phone = $('#phone').val();
|
||
query.bet_type = $('#bet_type').val();
|
||
query.is_localhost_control = $('#is_localhost_control').val();
|
||
// 视频地址
|
||
query.media_far_rtmp = $('#media_far_rtmp').val();
|
||
query.media_far_flv = $('#media_far_flv').val();
|
||
query.media_far_ws = $('#media_far_ws').val();
|
||
query.media_near_rtmp = $('#media_near_rtmp').val();
|
||
query.media_near_flv = $('#media_near_flv').val();
|
||
query.media_near_ws = $('#media_near_ws').val();
|
||
|
||
query.limit_money_total = $('#limit_money_total').val();
|
||
query.limit_money_tie_total = $('#limit_money_tie_total').val();
|
||
query.limit_money_pair_total = $('#limit_money_pair_total').val();
|
||
query.interval_time = $('#interval_time').val();
|
||
query.card_first_type = $('#card_first_type').val();
|
||
query.seat_num = $('#seat_num').val();
|
||
if(query.table_num == '' || query.table_num == null){
|
||
layer.alert('请填写桌台号!');
|
||
return false;
|
||
}
|
||
if(parseInt(query.table_num) <= 0){
|
||
layer.alert('桌台号只能填写大于0的数字!');
|
||
return false;
|
||
}
|
||
if(query.table_name == '' || query.table_name == null){
|
||
layer.alert('请填写桌台名称!');
|
||
return false;
|
||
}
|
||
if(query.game_id == '' || query.game_id == null){
|
||
layer.alert('请选择游戏名称!');
|
||
return false;
|
||
}
|
||
if(query.game_id == 1){
|
||
if(query.mode == '' || query.mode == null){
|
||
layer.alert('请选择游戏模式!');
|
||
return false;
|
||
}
|
||
}
|
||
if(query.bet_type <= 0){
|
||
layer.alert("请选择投注方式");
|
||
return false;
|
||
}
|
||
if((query.min_bankerplayer == '' || query.min_bankerplayer == null)||(query.max_bankerplayer == '' || query.max_bankerplayer == null)){
|
||
layer.alert('请填写完整网络-庄闲限红!');
|
||
return false;
|
||
}
|
||
if(query.game_id == 1 || query.game_id == 2){
|
||
if((query.min_tie == '' || query.min_tie == null)||(query.max_tie == '' || query.max_tie == null)){
|
||
layer.alert('请填写完整网络-和限红!');
|
||
return false;
|
||
}
|
||
}
|
||
if(query.game_id == 1){
|
||
if((query.min_pair == '' || query.min_pair == null)||(query.max_pair == '' || query.max_pair == null)){
|
||
layer.alert('请填写完整网络-对限红!');
|
||
return false;
|
||
}
|
||
}
|
||
if(query.is_scavenging == '' || query.is_scavenging == null){
|
||
layer.alert('请选择是否扫牌!');
|
||
return false;
|
||
}
|
||
if(query.game_id == 4 || query.game_id == 5){
|
||
if(query.is_rob == '' || query.is_rob == null){
|
||
layer.alert('请选择是否抢庄!');
|
||
return false;
|
||
}
|
||
if(query.is_rob == 1){
|
||
if(query.limit_banker_amount == '' || query.limit_banker_amount == null){
|
||
layer.alert('请填写抢庄金额!');
|
||
return false;
|
||
}
|
||
}
|
||
|
||
}
|
||
if(query.username == '' || query.username == null){
|
||
layer.alert('请填写账户名!');
|
||
return false;
|
||
}
|
||
if(query.newPassword == '' || query.newPassword == null){
|
||
layer.alert('请填写密码!');
|
||
return false;
|
||
}
|
||
if(query.newPassword.length < 6 || query.newPassword.length >20){
|
||
layer.alert('新密码长度必须是6到20个字符!');
|
||
return false;
|
||
}
|
||
if(query.confirmNewPassword == '' || query.confirmNewPassword == null){
|
||
layer.alert('请再次填写密码!');
|
||
return false;
|
||
}
|
||
if(query.newPassword != query.confirmNewPassword){
|
||
layer.alert('两次输入的密码不一致!');
|
||
return false;
|
||
}
|
||
if(query.nickname == '' || query.nickname == null){
|
||
layer.alert('请填写昵称!');
|
||
return false;
|
||
}
|
||
$.ajax({
|
||
url:"/game/do_add_table",
|
||
type:"POST",
|
||
dataType:"JSON",
|
||
data:query,
|
||
success:function(data){
|
||
if(data.status == 1){
|
||
layer.alert(data.code);
|
||
}else{
|
||
layer.alert(data.code,function(){
|
||
window.location.href='/game/index';
|
||
});
|
||
}
|
||
}
|
||
});
|
||
|
||
})
|
||
</script>
|
||
</body>
|
||
</html>
|