init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Session;
|
||||
use think\Request;
|
||||
class Common Extends Controller{
|
||||
public function __construct(){
|
||||
parent::__construct();
|
||||
$user_info = Session::get('user_info');
|
||||
if(empty($user_info)){
|
||||
$this->redirect('/login/index',301);
|
||||
exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Session;
|
||||
use think\Request;
|
||||
use think\Db;
|
||||
use waybill\WayBill;
|
||||
use think\Lang;
|
||||
class Dn Extends Common{
|
||||
public function create_online_token($user){
|
||||
$ip = getIP();
|
||||
$time = time();
|
||||
return md5($ip.$time.$user['encrypt'].$user['password']);
|
||||
}
|
||||
public function index(){
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit(Lang::get('userNotExit'));
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
$memo = Db::name('memo')->where('table_id',$table['id'])->where('position',['=',2],['=',3],'or')->where('status',1)->order('id desc')->limit(1)->find();
|
||||
if($table['scene_limit_money']){
|
||||
$scene_limit_money = explode('-', $table['scene_limit_money']);
|
||||
}else{
|
||||
$scene_limit_money = array(0,0);
|
||||
}
|
||||
// 获取语言包信息
|
||||
$langType = cookie('think_var');
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('scene_limit_money',$scene_limit_money);
|
||||
$this->assign('memo',$memo);
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
$this->assign('langType',$langType);
|
||||
$this->assign('lang',$lang);
|
||||
if($table['is_scavenging'] == 1){
|
||||
return $this->fetch('/dn/index_auto');
|
||||
}else{
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,410 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Session;
|
||||
use think\Request;
|
||||
use think\Db;
|
||||
use waybill\WayBill;
|
||||
use think\Lang;
|
||||
class Index Extends Common{
|
||||
public function index(){
|
||||
$user_info = Session::get('user_info');
|
||||
$table_id = $user_info['table_id'];
|
||||
$tableInfo = Db::name('table')->where(array('id' => $table_id))->find();
|
||||
if($tableInfo['game_id'] == 2){
|
||||
$this->redirect('/index/tab_dt',301);
|
||||
}else if($tableInfo['game_id'] == 1 && $tableInfo['mode'] == 2){
|
||||
$this->redirect('/index/tab_b_win6',301);
|
||||
}else if($tableInfo['game_id'] == 1 && $tableInfo['mode'] != 2){
|
||||
$this->redirect('/index/tab_b',301);
|
||||
}else{
|
||||
Session::clear();
|
||||
$this->redirect('login/index',301);
|
||||
}
|
||||
$this->redirect('/index/tab_'.$table_id,301);
|
||||
}
|
||||
public function create_online_token($user){
|
||||
$ip = getIP();
|
||||
$time = time();
|
||||
return md5($ip.$time.$user['encrypt'].$user['password']);
|
||||
}
|
||||
public function tab_b(){
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit(Lang::get('userNotExit'));
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
$memo = Db::name('memo')->where('table_id',$table['id'])->where('position',['=',2],['=',3],'or')->where('status',1)->order('id desc')->limit(1)->find();
|
||||
if($table['scene_limit_money']){
|
||||
$scene_limit_money = explode('-', $table['scene_limit_money']);
|
||||
}else{
|
||||
$scene_limit_money = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_tie']){
|
||||
$scene_limit_money_tie = explode('-', $table['scene_limit_money_tie']);
|
||||
}else{
|
||||
$scene_limit_money_tie = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_pair']){
|
||||
$scene_limit_money_pair = explode('-', $table['scene_limit_money_pair']);
|
||||
}else{
|
||||
$scene_limit_money_pair = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_usd']){
|
||||
$scene_limit_money_usd = explode('-', $table['scene_limit_money_usd']);
|
||||
}else{
|
||||
$scene_limit_money_usd = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_tie_usd']){
|
||||
$scene_limit_money_tie_usd = explode('-', $table['scene_limit_money_tie_usd']);
|
||||
}else{
|
||||
$scene_limit_money_tie_usd = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_pair_usd']){
|
||||
$scene_limit_money_pair_usd = explode('-', $table['scene_limit_money_pair_usd']);
|
||||
}else{
|
||||
$scene_limit_money_pair_usd = array(0,0);
|
||||
}
|
||||
// 获取语言包信息
|
||||
$langType = cookie('think_var');
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('scene_limit_money',$scene_limit_money);
|
||||
$this->assign('scene_limit_money_tie',$scene_limit_money_tie);
|
||||
$this->assign('scene_limit_money_pair',$scene_limit_money_pair);
|
||||
$this->assign('scene_limit_money_usd',$scene_limit_money_usd);
|
||||
$this->assign('scene_limit_money_tie_usd',$scene_limit_money_tie_usd);
|
||||
$this->assign('scene_limit_money_pair_usd',$scene_limit_money_pair_usd);
|
||||
$this->assign('memo',$memo);
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['websocket_url']);
|
||||
//$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
$this->assign('langType',$langType);
|
||||
$this->assign('lang',$lang);
|
||||
if($table['is_scavenging'] == 1){
|
||||
return $this->fetch('/index/tab_b_auto');
|
||||
}else{
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
public function tab_b_win6(){
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit(Lang::get('userNotExit'));
|
||||
$online_token = $this->create_online_token($user);
|
||||
Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
$memo = Db::name('memo')->where('table_id',$table['id'])->where('position',['=',2],['=',3],'or')->where('status',1)->order('id desc')->limit(1)->find();
|
||||
if($table['scene_limit_money']){
|
||||
$scene_limit_money = explode('-', $table['scene_limit_money']);
|
||||
}else{
|
||||
$scene_limit_money = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_tie']){
|
||||
$scene_limit_money_tie = explode('-', $table['scene_limit_money_tie']);
|
||||
}else{
|
||||
$scene_limit_money_tie = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_pair']){
|
||||
$scene_limit_money_pair = explode('-', $table['scene_limit_money_pair']);
|
||||
}else{
|
||||
$scene_limit_money_pair = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_usd']){
|
||||
$scene_limit_money_usd = explode('-', $table['scene_limit_money_usd']);
|
||||
}else{
|
||||
$scene_limit_money_usd = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_tie_usd']){
|
||||
$scene_limit_money_tie_usd = explode('-', $table['scene_limit_money_tie_usd']);
|
||||
}else{
|
||||
$scene_limit_money_tie_usd = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_pair_usd']){
|
||||
$scene_limit_money_pair_usd = explode('-', $table['scene_limit_money_pair_usd']);
|
||||
}else{
|
||||
$scene_limit_money_pair_usd = array(0,0);
|
||||
}
|
||||
|
||||
// 获取语言包信息
|
||||
$langType = cookie('think_var');
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('langType',$langType);
|
||||
$this->assign('lang',$lang);
|
||||
$this->assign('scene_limit_money',$scene_limit_money);
|
||||
$this->assign('scene_limit_money_tie',$scene_limit_money_tie);
|
||||
$this->assign('scene_limit_money_pair',$scene_limit_money_pair);
|
||||
$this->assign('scene_limit_money_usd',$scene_limit_money_usd);
|
||||
$this->assign('scene_limit_money_tie_usd',$scene_limit_money_tie_usd);
|
||||
$this->assign('scene_limit_money_pair_usd',$scene_limit_money_pair_usd);
|
||||
$this->assign('memo',$memo);
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['websocket_url']);
|
||||
//$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
if($table['is_scavenging'] == 1){
|
||||
return $this->fetch('/index/tab_b_win6_auto');
|
||||
}else{
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
public function tab_dt(){
|
||||
// 获取语言包信息
|
||||
$langType = cookie('think_var');
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit(Lang::get('userNotExit'));
|
||||
$online_token = $this->create_online_token($user);
|
||||
Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
$memo = Db::name('memo')->where('table_id',$table['id'])->where('position',['=',2],['=',3],'or')->where('status',1)->order('id desc')->limit(1)->find();
|
||||
if($table['scene_limit_money']){
|
||||
$scene_limit_money = explode('-', $table['scene_limit_money']);
|
||||
}else{
|
||||
$scene_limit_money = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_tie']){
|
||||
$scene_limit_money_tie = explode('-', $table['scene_limit_money_tie']);
|
||||
}else{
|
||||
$scene_limit_money_tie = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_usd']){
|
||||
$scene_limit_money_usd = explode('-', $table['scene_limit_money_usd']);
|
||||
}else{
|
||||
$scene_limit_money_usd = array(0,0);
|
||||
}
|
||||
if($table['scene_limit_money_tie_usd']){
|
||||
$scene_limit_money_tie_usd = explode('-', $table['scene_limit_money_tie_usd']);
|
||||
}else{
|
||||
$scene_limit_money_tie_usd = array(0,0);
|
||||
}
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('lang',$lang);
|
||||
$this->assign('langType',$langType);
|
||||
$this->assign('scene_limit_money',$scene_limit_money);
|
||||
$this->assign('scene_limit_money_tie',$scene_limit_money_tie);
|
||||
|
||||
$this->assign('scene_limit_money_usd',$scene_limit_money_usd);
|
||||
$this->assign('scene_limit_money_tie_usd',$scene_limit_money_tie_usd);
|
||||
$this->assign('memo',$memo);
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['websocket_url']);
|
||||
//$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
if($table['is_scavenging'] == 1){
|
||||
return $this->fetch('/index/tab_dt_auto');
|
||||
}else{
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
//获取当前靴的结果汇总
|
||||
public function get_result_total(){
|
||||
if(Request::instance()->isPost()){
|
||||
//获取路单对象
|
||||
$table_id = Request::instance()->post('table_id');
|
||||
$boot_id = Request::instance()->post('boot_id');
|
||||
$game_id = Db::name('table')->where(array('id' => $table_id))->value('game_id');
|
||||
$result = array();
|
||||
if($game_id == 1){
|
||||
//百家乐
|
||||
$result['banker'] = Db::name('number_tab')->where(array('boot_id' => $boot_id, 'result' => 1))->count();
|
||||
$result['player'] = Db::name('number_tab')->where(array('boot_id' => $boot_id, 'result' => 2))->count();
|
||||
$result['tie'] = Db::name('number_tab')->where(array('boot_id' => $boot_id, 'result' => 3))->count();
|
||||
$result['bankerPair'] = Db::name('number_tab')->where(array('boot_id' => $boot_id, 'pair' => 1))->count();
|
||||
$result['playerPair'] = Db::name('number_tab')->where(array('boot_id' => $boot_id, 'pair' => 2))->count();
|
||||
$both = Db::name('number_tab')->where(array('boot_id' => $boot_id, 'pair' => 3))->count();
|
||||
$result['bankerPair'] = $result['bankerPair'] + $both;
|
||||
$result['playerPair'] = $result['playerPair'] + $both;
|
||||
}else if($game_id == 2){
|
||||
//龙虎
|
||||
$result['banker'] = Db::name('number_tab_dt')->where(array('boot_id' => $boot_id, 'result' => 1))->count();
|
||||
$result['player'] = Db::name('number_tab_dt')->where(array('boot_id' => $boot_id, 'result' => 2))->count();
|
||||
$result['tie'] = Db::name('number_tab_dt')->where(array('boot_id' => $boot_id, 'result' => 3))->count();
|
||||
}else if($game_id == 3){
|
||||
//龙虎
|
||||
$result['banker'] = Db::name('number_tab_dn')->where(array('boot_id' => $boot_id, 'result' => 1))->count();
|
||||
$result['player'] = Db::name('number_tab_dn')->where(array('boot_id' => $boot_id, 'result' => 2))->count();
|
||||
}
|
||||
return json(['code'=>1,'data'=>$result]);
|
||||
}
|
||||
}
|
||||
//获取当前在线人数
|
||||
public function get_online_number(){
|
||||
if(Request::instance()->isPost()){
|
||||
//获取路单对象
|
||||
$connections = Request::instance()->post('connections');
|
||||
$redis = new \Redis();
|
||||
$redis->connect('127.0.0.1',6379);
|
||||
$connections = json_decode($redis->get($connections),true);
|
||||
$count = is_array($connections) ? count($connections) : 0;
|
||||
return json(['code'=>1,'data'=>$count]);
|
||||
}
|
||||
}
|
||||
//打印
|
||||
public function stamp(){
|
||||
$game_id = intval(Request::instance()->get('game_id'));
|
||||
$nid = intval(Request::instance()->get('nid'));
|
||||
if($game_id == 1){
|
||||
$number_tab = Db::name('number_tab')->where(array('id' => $nid))->find();
|
||||
if($number_tab){
|
||||
$boot = Db::name('boot')->where(array('id' => $number_tab['boot_id']))->find();
|
||||
$table = Db::name('table')->where(array('id' => $number_tab['table_id']))->find();
|
||||
}
|
||||
}elseif($game_id == 2){
|
||||
$number_tab = Db::name('number_tab_dt')->where(array('id' => $nid))->find();
|
||||
if($number_tab){
|
||||
$boot = Db::name('boot_dt')->where(array('id' => $number_tab['boot_id']))->find();
|
||||
$table = Db::name('table')->where(array('id' => $number_tab['table_id']))->find();
|
||||
}
|
||||
}
|
||||
if($number_tab && $boot && $table){
|
||||
$this->assign('nowTime',date('Y-m-d H:i:s',time()));
|
||||
$this->assign('tableName',$table['table_name']);
|
||||
$this->assign('bootTime',date('Y-m-d H:i:s',$boot['create_time']));
|
||||
$this->assign('nTime',date('Y-m-d H:i:s',$number_tab['start_time']));
|
||||
}else{
|
||||
$this->assign('nowTime',date('Y-m-d H:i:s',time()));
|
||||
$this->assign('tableName','');
|
||||
$this->assign('bootTime','');
|
||||
$this->assign('nTime','');
|
||||
}
|
||||
return $this->fetch(); // 渲染模板
|
||||
}
|
||||
|
||||
// 路单接口调用
|
||||
public function waybill(){
|
||||
if(Request::instance()->post()){
|
||||
// 接收游戏ID和靴ID
|
||||
$game_id = Request::instance()->post('game_id');
|
||||
$boot_id = Request::instance()->post('boot_id');
|
||||
$forecast = Request::instance()->post('forecast');
|
||||
|
||||
//验证游戏ID
|
||||
if($game_id == 1){
|
||||
$numberTabTable = 'number_tab';
|
||||
}elseif($game_id == 2){
|
||||
$numberTabTable = 'number_tab_dt';
|
||||
}elseif($game_id == 3){
|
||||
$numberTabTable = 'number_tab_dn';
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'游戏ID错误']));
|
||||
}
|
||||
|
||||
// 验证靴ID
|
||||
if($boot_id > 0){
|
||||
$ns = Db::name($numberTabTable)->where(array('boot_id' => $boot_id, 'bet_status' => 3))->field('result,pair')->order('start_time ASC,id ASC')->select();
|
||||
if($forecast == 1){
|
||||
// 庄问路
|
||||
$ns[] = array('result'=>1,'pair'=>0);
|
||||
}elseif($forecast == 2){
|
||||
// 闲问路
|
||||
$ns[] = array('result'=>2,'pair'=>0);
|
||||
}
|
||||
// 数据存在,输出路单
|
||||
if($ns){
|
||||
$result = waybill($ns);
|
||||
die(json_encode($result));
|
||||
}else{
|
||||
$waybill = array();
|
||||
$waybill['bigEyeRoad'] = [];
|
||||
$waybill['bigRoad'] = [];
|
||||
$waybill['pathway'] = [];
|
||||
$waybill['roach'] = [];
|
||||
$waybill['showRoad'] = [];
|
||||
die(json_encode(['status'=>false,'msg'=>'数据不存在','waybill'=>$waybill]));
|
||||
}
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'靴ID错误']));
|
||||
}
|
||||
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'操作错误']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function lang() {
|
||||
switch ($_GET['lang']) {
|
||||
case 'cn':
|
||||
cookie('think_var', 'zh-cn');
|
||||
break;
|
||||
case 'tw':
|
||||
cookie('think_var', 'zh-tw');
|
||||
break;
|
||||
case 'en':
|
||||
cookie('think_var', 'en-us');
|
||||
break;
|
||||
//其它语言
|
||||
}
|
||||
}
|
||||
public function get_number(){
|
||||
if(Request::instance()->post() && intval(Request::instance()->post('number_tab_id')) > 0){
|
||||
$number_tab_id = intval(Request::instance()->post('number_tab_id'));
|
||||
$number = Db::name('number_tab')->where(array('id' => $number_tab_id))->value('number');
|
||||
return json(array('data' => $number,'status' => 1));
|
||||
}else{
|
||||
return json(array('msg' => '数据出错','status' => 0));
|
||||
}
|
||||
}
|
||||
public function get_number_dt(){
|
||||
if(Request::instance()->post() && intval(Request::instance()->post('number_tab_id')) > 0){
|
||||
$number_tab_id = intval(Request::instance()->post('number_tab_id'));
|
||||
$number = Db::name('number_tab_dt')->where(array('id' => $number_tab_id))->value('number');
|
||||
return json(array('data' => $number,'status' => 1));
|
||||
}else{
|
||||
return json(array('msg' => '数据出错','status' => 0));
|
||||
}
|
||||
}
|
||||
//获取上一局number_tab_id
|
||||
public function get_last_number_tab_id(){
|
||||
if(Request::instance()->post() && intval(Request::instance()->post('game_id')) > 0){
|
||||
$game_id = intval(Request::instance()->post('game_id'));
|
||||
if($game_id == 1){
|
||||
$numberTabTableName = 'number_tab';
|
||||
$bootTableName = 'boot';
|
||||
}elseif($game_id == 2){
|
||||
$numberTabTableName = 'number_tab_dt';
|
||||
$bootTableName = 'boot_dt';
|
||||
}else{
|
||||
return json(array('msg' => '数据出错','status' => 0));
|
||||
}
|
||||
$table_id = intval(Request::instance()->post('table_id'));
|
||||
$boot_id = intval(Request::instance()->post('boot_id'));
|
||||
if($table_id > 0 && $boot_id > 0){
|
||||
$table_info = Db::name('table')->where('id',$table_id)->find();
|
||||
if($table_info['table_type'] == 0){
|
||||
if($table_info['bet_type'] != 2){
|
||||
return json(array('msg' => '该桌不允许删除露珠','status' => 0));
|
||||
}
|
||||
}
|
||||
$lastNumberTabTableId = Db::name($numberTabTableName)->where(array('game_id' => $game_id, 'table_id' => $table_id, 'boot_id' => $boot_id, 'bet_status' => 3))->order('id DESC')->limit(1)->value('id');
|
||||
if($lastNumberTabTableId > 0){
|
||||
return json(array('data' => $lastNumberTabTableId,'status' => 1));
|
||||
}else{
|
||||
return json(array('msg' => '没有可删除的上一铺','status' => 0));
|
||||
}
|
||||
}
|
||||
return json(array('data' => $number,'status' => 1));
|
||||
}else{
|
||||
return json(array('msg' => '数据出错','status' => 0));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Db;
|
||||
use think\Request;
|
||||
use think\Session;
|
||||
use verifycode\Verify;
|
||||
class Login extends Controller{
|
||||
public function index(){
|
||||
if(Session::get('user_info')){
|
||||
$this->redirect('/',301);
|
||||
}
|
||||
return $this->fetch();
|
||||
}
|
||||
/**
|
||||
* 处理登录
|
||||
*/
|
||||
public function dologin(){
|
||||
if(Request::instance()->post()){
|
||||
$username = Request::instance()->post('account');
|
||||
$password = Request::instance()->post('password');
|
||||
// $verifycode = strtolower(Request::instance()->post('code'));
|
||||
// if(md5($verifycode) != Session::get("img_verify")){
|
||||
// Session::delete('user_info');
|
||||
// $this->error('验证码错误','login/index');
|
||||
// }
|
||||
$find = Db::name('user_controller')->where(array('username' => $username, 'is_delete' => 0))->find();
|
||||
if(!$find){
|
||||
Session::delete('user_info');
|
||||
return json(['code' => 0, 'msg' => '用户不存在']);
|
||||
}
|
||||
if(think_ucenter_md5($password, UC_AUTH_KEY) === $find['password'] && $find['password']){
|
||||
Session::set('user_info',$find);
|
||||
Db::name('user_controller')->where(array('id' => $find['id']))->update(array('last_login_time' => time(), 'last_login_ip' => getIP()));
|
||||
$tableInfo = Db::name('table')->where(array('id' => $find['table_id']))->find();
|
||||
if($tableInfo['game_id'] == 2){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/index/tab_dt']);
|
||||
}else if($tableInfo['game_id'] == 3){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/dn/index']);
|
||||
}else if($tableInfo['game_id'] == 4){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/nn/index']);
|
||||
}else if($tableInfo['game_id'] == 5){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/tc/index']);
|
||||
}else if($tableInfo['game_id'] == 1 && $tableInfo['mode'] == 2){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/index/tab_b_win6']);
|
||||
}else if($tableInfo['game_id'] == 1 && $tableInfo['mode'] != 2){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/index/tab_b']);
|
||||
}else{
|
||||
Session::delete('user_info');
|
||||
return json(['code'=>0,'msg'=>'账户信息出错']);
|
||||
}
|
||||
/*
|
||||
$preview_url = Session::get('preview_url');
|
||||
if($preview_url){
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>$preview_url]);
|
||||
}else{
|
||||
return json(['code'=>1,'msg'=>'登录成功','url'=>'/']);
|
||||
}
|
||||
*/
|
||||
}else{
|
||||
Session::delete('user_info');
|
||||
return json(['code'=>0,'msg'=>'密码错误']);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
public function logout(){
|
||||
Session::clear();
|
||||
$this->redirect('login/index',301);
|
||||
}
|
||||
/**
|
||||
* 验证码
|
||||
*/
|
||||
public function verifycode(){
|
||||
$verify = new verify();
|
||||
$verify->doimg();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Session;
|
||||
use think\Request;
|
||||
use think\Db;
|
||||
use waybill\WayBill;
|
||||
use think\Lang;
|
||||
class Nn Extends Common{
|
||||
public function create_online_token($user){
|
||||
$ip = getIP();
|
||||
$time = time();
|
||||
return md5($ip.$time.$user['encrypt'].$user['password']);
|
||||
}
|
||||
public function index(){
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit(Lang::get('userNotExit'));
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
$memo = Db::name('memo')->where('table_id',$table['id'])->where('position',['=',2],['=',3],'or')->where('status',1)->order('id desc')->limit(1)->find();
|
||||
if($table['scene_limit_money']){
|
||||
$scene_limit_money = explode('-', $table['scene_limit_money']);
|
||||
}else{
|
||||
$scene_limit_money = array(0,0);
|
||||
}
|
||||
// 获取语言包信息
|
||||
$langType = cookie('think_var');
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('scene_limit_money',$scene_limit_money);
|
||||
$this->assign('memo',$memo);
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
$this->assign('langType',$langType);
|
||||
$this->assign('lang',$lang);
|
||||
if($table['is_scavenging'] == 1){
|
||||
return $this->fetch('/nn/index');
|
||||
}else{
|
||||
return $this->fetch('/nn/index');
|
||||
}
|
||||
}
|
||||
//获取当前靴的结果汇总
|
||||
public function get_result_total(){
|
||||
if(Request::instance()->isPost()){
|
||||
//获取路单对象
|
||||
$table_id = Request::instance()->post('table_id');
|
||||
$boot_id = Request::instance()->post('boot_id');
|
||||
// $game_id = Db::name('table')->where(array('id' => $table_id))->value('game_id');
|
||||
$banker_total = 0;
|
||||
$player_total = 0;
|
||||
$result = array();
|
||||
$all_result = Db::name('number_tab_nn')->where(array('boot_id' => $boot_id,'bet_status'=>3))->select();
|
||||
foreach($all_result as $k => $v){
|
||||
if($v['win_player_1'] == 1){
|
||||
$player_total++;
|
||||
}elseif($v['win_player_1'] == 0){
|
||||
$banker_total++;
|
||||
}
|
||||
if($v['win_player_2'] == 1){
|
||||
$player_total++;
|
||||
}elseif($v['win_player_2'] == 0){
|
||||
$banker_total++;
|
||||
}
|
||||
if($v['win_player_3'] == 1){
|
||||
$player_total++;
|
||||
}elseif($v['win_player_3'] == 0){
|
||||
$banker_total++;
|
||||
}
|
||||
|
||||
}
|
||||
$result['banker'] = $banker_total;
|
||||
$result['player'] = $player_total;
|
||||
return json(['code'=>1,'data'=>$result]);
|
||||
}
|
||||
}
|
||||
|
||||
// 路单接口调用
|
||||
public function waybill(){
|
||||
if(Request::instance()->post()){
|
||||
// 接收游戏ID和靴ID
|
||||
$game_id = Request::instance()->post('game_id');
|
||||
$boot_id = Request::instance()->post('boot_id');
|
||||
|
||||
//验证游戏ID
|
||||
if($game_id == 4){
|
||||
$numberTabTable = 'number_tab_nn';
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'游戏ID错误']));
|
||||
}
|
||||
|
||||
// 验证靴ID
|
||||
if($boot_id > 0){
|
||||
$ns = Db::name($numberTabTable)->where(array('boot_id' => $boot_id, 'bet_status' => 3))->field('result_banker,result_player_1,result_player_2,result_player_3,win_player_1,win_player_2,win_player_3')->order('start_time ASC,id ASC')->select();
|
||||
// 数据存在,输出路单
|
||||
if($ns){
|
||||
// die(json_encode($ns));
|
||||
$result = nn_waybill($ns);
|
||||
die(json_encode($result));
|
||||
}else{
|
||||
$waybill = array();
|
||||
die(json_encode(['status'=>false,'msg'=>'数据不存在','waybill'=>$waybill]));
|
||||
}
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'靴ID错误']));
|
||||
}
|
||||
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'操作错误']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//获取点数
|
||||
public function get_nn_num(){
|
||||
if(Request::instance()->post()){
|
||||
$result_arr = Request::instance()->post('result_json');
|
||||
$result = JudgeCowCow(json_decode($result_arr,true));
|
||||
die(json_encode(['status'=>true,'msg'=>$result['word']]));
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'操作错误']));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Db;
|
||||
use think\Request;
|
||||
use think\Session;
|
||||
class Scan extends Controller{
|
||||
public function create_online_token($user){
|
||||
//$ip = getIP();
|
||||
//$time = time();
|
||||
return md5($user['encrypt'].$user['password']);
|
||||
}
|
||||
|
||||
public function index(){
|
||||
// 用户信息
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit('用户不存在');
|
||||
// 验证token
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
// 获取桌子信息
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['websocket_url']);
|
||||
return $this->fetch();
|
||||
}
|
||||
|
||||
public function nn_index(){
|
||||
// 用户信息
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit('用户不存在');
|
||||
// 验证token
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
// 获取桌子信息
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
return $this->fetch();
|
||||
}
|
||||
public function tc_index(){
|
||||
// 用户信息
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit('用户不存在');
|
||||
// 验证token
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
// 获取桌子信息
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
// 渲染参数和模板
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,298 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Session;
|
||||
use think\Request;
|
||||
use think\Db;
|
||||
use waybill\WayBill;
|
||||
use think\Lang;
|
||||
class Tc Extends Common{
|
||||
public function create_online_token($user){
|
||||
$ip = getIP();
|
||||
$time = time();
|
||||
return md5($ip.$time.$user['encrypt'].$user['password']);
|
||||
}
|
||||
public function index(){
|
||||
$user_info = Session::get('user_info');
|
||||
$user = Db::name('user_controller')->where(array('id' => $user_info['id']))->find();
|
||||
if(!$user) exit(Lang::get('userNotExit'));
|
||||
$online_token = $this->create_online_token($user);
|
||||
$r = Db::name('user_controller')->where(array('id' => $user_info['id']))->update(array('login_token' => $online_token));
|
||||
$table = Db::name('table')->where(array('id' => $user_info['table_id']))->find();
|
||||
$memo = Db::name('memo')->where('table_id',$table['id'])->where('position',['=',2],['=',3],'or')->where('status',1)->order('id desc')->limit(1)->find();
|
||||
if($table['scene_limit_money']){
|
||||
$scene_limit_money = explode('-', $table['scene_limit_money']);
|
||||
}else{
|
||||
$scene_limit_money = array(0,0);
|
||||
}
|
||||
// 获取语言包信息
|
||||
$langType = cookie('think_var');
|
||||
$lang = Lang::get();
|
||||
$lang = json_encode($lang);
|
||||
|
||||
// 渲染参数和模板
|
||||
$this->assign('scene_limit_money',$scene_limit_money);
|
||||
$this->assign('memo',$memo);
|
||||
$this->assign('connections_url','connections_'.$table['port']);
|
||||
$this->assign('online_token',$online_token);
|
||||
$this->assign('table',$table);
|
||||
$this->assign('user',$user);
|
||||
$this->assign('websocketUrl',$table['ws_local_url']);
|
||||
$this->assign('langType',$langType);
|
||||
$this->assign('lang',$lang);
|
||||
if($table['is_scavenging'] == 1){
|
||||
return $this->fetch('/tc/index');
|
||||
}else{
|
||||
return $this->fetch('/tc/index');
|
||||
}
|
||||
}
|
||||
//获取当前靴的结果汇总
|
||||
public function get_result_total(){
|
||||
if(Request::instance()->isPost()){
|
||||
//获取路单对象
|
||||
$table_id = Request::instance()->post('table_id');
|
||||
$boot_id = Request::instance()->post('boot_id');
|
||||
// $game_id = Db::name('table')->where(array('id' => $table_id))->value('game_id');
|
||||
$banker_total = 0;
|
||||
$player_total = 0;
|
||||
$result = array();
|
||||
$all_result = Db::name('number_tab_nn')->where(array('boot_id' => $boot_id,'bet_status'=>3))->select();
|
||||
foreach($all_result as $k => $v){
|
||||
if($v['win_player_1'] == 1){
|
||||
$player_total++;
|
||||
}elseif($v['win_player_1'] == 0){
|
||||
$banker_total++;
|
||||
}
|
||||
if($v['win_player_2'] == 1){
|
||||
$player_total++;
|
||||
}elseif($v['win_player_2'] == 0){
|
||||
$banker_total++;
|
||||
}
|
||||
if($v['win_player_3'] == 1){
|
||||
$player_total++;
|
||||
}elseif($v['win_player_3'] == 0){
|
||||
$banker_total++;
|
||||
}
|
||||
|
||||
}
|
||||
$result['banker'] = $banker_total;
|
||||
$result['player'] = $player_total;
|
||||
return json(['code'=>1,'data'=>$result]);
|
||||
}
|
||||
}
|
||||
|
||||
// 路单接口调用
|
||||
public function waybill(){
|
||||
if(Request::instance()->post()){
|
||||
// 接收游戏ID和靴ID
|
||||
$game_id = Request::instance()->post('game_id');
|
||||
$boot_id = Request::instance()->post('boot_id');
|
||||
|
||||
//验证游戏ID
|
||||
if($game_id == 4 || $game_id == 5){
|
||||
$numberTabTable = 'number_tab_tc';
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'游戏ID错误']));
|
||||
}
|
||||
|
||||
// 验证靴ID
|
||||
if($boot_id > 0){
|
||||
$ns = Db::name($numberTabTable)->where(array('boot_id' => $boot_id, 'bet_status' => 3))->field('result_banker,result_player_1,result_player_2,result_player_3,win_player_1,win_player_2,win_player_3')->order('start_time ASC,id ASC')->select();
|
||||
// 数据存在,输出路单
|
||||
if($ns){
|
||||
// die(json_encode($ns));
|
||||
$result = nn_waybill($ns);
|
||||
die(json_encode($result));
|
||||
}else{
|
||||
$waybill = array();
|
||||
die(json_encode(['status'=>false,'msg'=>'数据不存在','waybill'=>$waybill]));
|
||||
}
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'靴ID错误']));
|
||||
}
|
||||
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'操作错误']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//获取点数
|
||||
public function get_nn_num(){
|
||||
if(Request::instance()->post()){
|
||||
$result_arr = Request::instance()->post('result_json');
|
||||
$result = JudgeCowCow(json_decode($result_arr,true));
|
||||
die(json_encode(['status'=>true,'msg'=>$result['word']]));
|
||||
}else{
|
||||
die(json_encode(['status'=>false,'msg'=>'操作错误']));
|
||||
}
|
||||
}
|
||||
public function ThredCardCowCow(){
|
||||
$card = array('112','201','301');
|
||||
$card_type = array();
|
||||
if(!is_array($card) || count($card) !== 3){
|
||||
return false;
|
||||
}
|
||||
//获取三张牌中最大的牌
|
||||
$compare = $card;
|
||||
for($i=0;$i<2;$i++){
|
||||
for($j=$i+1;$j<3;$j++){
|
||||
if(substr($compare[$i],1,2) < substr($compare[$j],1,2)){
|
||||
$a = $compare[$i];
|
||||
$compare[$i] = $compare[$j];
|
||||
$compare[$j]=$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
$max_card = substr($compare['0'],1,2);
|
||||
|
||||
if(substr($max_card,0,1) == 0){
|
||||
$max_card = substr($max_card,1,1);
|
||||
}
|
||||
$same_num = 0;
|
||||
for($i=0;$i<3; $i++){
|
||||
$card_type[$i] = substr($card[$i],0,1);
|
||||
$card[$i] = substr($card[$i],1,2);
|
||||
if(substr($card[$i],0,1) == 0){
|
||||
$card[$i] = substr($card[$i],1,1);
|
||||
}
|
||||
if($card[$i] == $max_card){
|
||||
$same_num++;
|
||||
}
|
||||
}
|
||||
//特殊牌型最大牌判断
|
||||
$space_num = array_count_values($card);
|
||||
if($same_num == 1){
|
||||
$max = $compare['0'];
|
||||
}
|
||||
if($same_num > 1){
|
||||
$compare = array_slice($compare,0,$same_num);
|
||||
for($i=0;$i<$same_num-1;$i++){//对5张牌从大到小排序。
|
||||
for($j=$i+1;$j<$same_num;$j++){
|
||||
if($compare[$i] > $compare[$j]){
|
||||
$a = $compare[$i];
|
||||
$compare[$i] = $compare[$j];
|
||||
$compare[$j]=$a;
|
||||
}
|
||||
}
|
||||
}
|
||||
$max = $compare['0'];
|
||||
if($same_num == 2){
|
||||
if($compare['0']>300 && $compare['0']<400){
|
||||
$max = $compare['1'];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
$result = array();
|
||||
//豹子判断
|
||||
if(count($card) != count(array_unique($card))) {
|
||||
$unique_arr = array_unique($card);
|
||||
if(count($unique_arr) == 1){
|
||||
$cow = 11;
|
||||
$word = '豹子';
|
||||
if(array_key_exists(1,$space_num)){
|
||||
if($space_num['1'] > 0){
|
||||
if($space_num['1'] == 1){
|
||||
$max = $compare[2];
|
||||
}
|
||||
if($space_num['1'] == 2){
|
||||
if($compare[1]>300 && $compare[1]<400){
|
||||
$max = $compare[2];
|
||||
}else{
|
||||
$max = $compare[1];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
array_push($result,$word,$cow,$max);
|
||||
return json($result);
|
||||
}
|
||||
}
|
||||
if(count(array_unique($card_type)) == 1){
|
||||
//皇家同花顺
|
||||
$example = array(1,12,13);
|
||||
$diff_result=array_diff($card,$example);
|
||||
if(count($diff_result) == 0){
|
||||
$cow = 13;
|
||||
$word = '皇家同花顺';
|
||||
if($space_num['1'] == 1){
|
||||
$max = $compare[2];
|
||||
}
|
||||
return $max;
|
||||
array_push($result,$word,$cow,$max);
|
||||
return $result;
|
||||
}
|
||||
//同花顺
|
||||
if(count($card) == count(array_unique($card))) {
|
||||
$max=$min=-1;
|
||||
for ($i=0; $i < 3; $i++) {
|
||||
if($card[$i] > $max || $max == -1){
|
||||
$max = $card[$i];
|
||||
}
|
||||
if($card[$i] < $min || $min == -1){
|
||||
$min = $card[$i];
|
||||
}
|
||||
if($max - $min == 2){
|
||||
$cow = 12;
|
||||
$word = '同花顺';
|
||||
if($space_num['1'] == 1){
|
||||
$max = $compare[2];
|
||||
}
|
||||
array_push($result,$word,$cow,$max);
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if($card[0]>10)$card[0]=10;
|
||||
if($card[1]>10)$card[1]=10;
|
||||
if($card[2]>10)$card[2]=10;
|
||||
$sum_num = $card[0] + $card[1] + $card[2];
|
||||
if($sum_num < 10){
|
||||
$cow = $sum_num;
|
||||
}else{
|
||||
$cow = $sum_num%10;
|
||||
}
|
||||
switch ($cow){
|
||||
case 0:
|
||||
$word = '牛牛';
|
||||
break;
|
||||
case 1:
|
||||
$word = '牛一';
|
||||
break;
|
||||
case 2:
|
||||
$word = '牛二';
|
||||
break;
|
||||
case 3:
|
||||
$word = '牛三';
|
||||
break;
|
||||
case 4:
|
||||
$word = '牛四';
|
||||
break;
|
||||
case 5:
|
||||
$word = '牛五';
|
||||
break;
|
||||
case 6:
|
||||
$word = '牛六';
|
||||
break;
|
||||
case 7:
|
||||
$word = '牛七';
|
||||
break;
|
||||
case 8:
|
||||
$word = '牛八';
|
||||
break;
|
||||
case 9:
|
||||
$word = '牛九';
|
||||
break;
|
||||
}
|
||||
if($cow == 0){
|
||||
$cow = 10;
|
||||
}
|
||||
$result['word'] = $word;
|
||||
$result['cow'] = $cow;
|
||||
$result['max'] = $max;
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,491 @@
|
||||
<?php
|
||||
namespace app\console\controller;
|
||||
use think\Controller;
|
||||
use think\Request;
|
||||
use think\Db;
|
||||
class Testld Extends Common{
|
||||
//测试路单
|
||||
/*
|
||||
public function testld(){
|
||||
$ns = Db::name('number_tab')->where(array('boot_id' => 4, 'bet_status' => 3))->order('id ASC')->select();
|
||||
$bigRoad = array();
|
||||
$bigEyeRoad = array();
|
||||
//列
|
||||
$yKey = 0;
|
||||
//行
|
||||
$xKey = 0;
|
||||
//上一回合坐标
|
||||
$last = array();
|
||||
foreach($ns AS $key => $value){
|
||||
if($key == 0 && $value['result'] == 3){
|
||||
$bigRoad[$yKey][$xKey] = array('result' => 3, 'tie_num' => 1);
|
||||
$last = array('yKey' => $yKey, 'xKey' => $xKey);
|
||||
}elseif($key > 0 && $value['result'] == 3){
|
||||
$bigRoad[$last['yKey']][$last['xKey']]['tie_num'] = $bigRoad[$last['yKey']][$last['xKey']]['tie_num'] + 1;
|
||||
}elseif($yKey == 0 && $xKey == 0 && !empty($last) && $value['result'] != 3){
|
||||
$bigRoad[$last['yKey']][$last['xKey']]['result'] = $value['result'];
|
||||
$last = array('yKey' => $yKey, 'xKey' => $xKey);
|
||||
}else{
|
||||
$bigRoad[$yKey][$xKey] = array('result' => $value['result'], 'tie_num' => 0);
|
||||
$last = array('yKey' => $yKey, 'xKey' => $xKey);
|
||||
if(isset($ns[$key+1]) && $ns[$key+1]['result'] != $bigRoad[$yKey][$xKey]['result']){
|
||||
$yKey++;
|
||||
$xKey = 0;
|
||||
}else{
|
||||
$xKey++;
|
||||
}
|
||||
}
|
||||
}
|
||||
$bigEyeRoadStart = false;
|
||||
$bigEyeRoadYKey = 0;
|
||||
$bigEyeRoadXKey = 0;
|
||||
$bigEyeRoadLast = array();
|
||||
foreach($bigRoad AS $key => $value){
|
||||
foreach($value AS $k => $v){
|
||||
if($key == 1 && $k == 1 && isset($bigRoad[1][1])){
|
||||
if(isset($bigRoad[0][1])){
|
||||
$bigEyeRoad[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoad[0][0] = array('result' => 2);
|
||||
}
|
||||
$bigEyeRoadStart = true;
|
||||
$bigEyeRoadLast = $bigEyeRoad[0][0];
|
||||
continue;
|
||||
}
|
||||
if($key == 2 && $k == 0 && !isset($bigEyeRoad[0][0])){
|
||||
if(isset($bigRoad[0]) && isset($bigRoad[1]) && count($bigRoad[0]) == count($bigRoad[1])){
|
||||
$bigEyeRoad[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoad[0][0] = array('result' => 2);
|
||||
}
|
||||
$bigEyeRoadStart = true;
|
||||
$bigEyeRoadLast = $bigEyeRoad[0][0];
|
||||
continue;
|
||||
}
|
||||
if($bigEyeRoadStart == true){
|
||||
$bigEyeRoadPushData = array();
|
||||
if($k == 0){ //第一个
|
||||
$p1 = $key - 1;
|
||||
$p2 = $key - 2;
|
||||
if(count($bigRoad[$p1]) == count($bigEyeRoad[$p2])){
|
||||
$bigEyeRoadPushData = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoadPushData = array('result' => 2);
|
||||
}
|
||||
}elseif($k == 1){ //第二个
|
||||
if(isset($bigRoad[$key-1][$k])){
|
||||
$bigEyeRoadPushData = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoadPushData = array('result' => 2);
|
||||
}
|
||||
}else{ //第三个或者之后那些
|
||||
if(isset($bigRoad[$key-1][$k-1]) && !isset($bigRoad[$key-1][$k])){
|
||||
$bigEyeRoadPushData = array('result' => 2);
|
||||
}else{
|
||||
$bigEyeRoadPushData = array('result' => 1);
|
||||
}
|
||||
}
|
||||
if($bigEyeRoadLast['result'] == $bigEyeRoadPushData['result']){
|
||||
$bigEyeRoadXKey++;
|
||||
}else{
|
||||
$bigEyeRoadYKey++;
|
||||
$bigEyeRoadXKey = 0;
|
||||
}
|
||||
$bigEyeRoad[$bigEyeRoadYKey][$bigEyeRoadXKey] = $bigEyeRoadPushData;
|
||||
$bigEyeRoadLast = $bigEyeRoadPushData;
|
||||
}
|
||||
}
|
||||
}
|
||||
echo "<pre>";
|
||||
print_r($bigEyeRoad);
|
||||
echo "</pre>";
|
||||
}
|
||||
*/
|
||||
|
||||
//测试路单
|
||||
public function testld2(){
|
||||
$ns = Db::name('number_tab')->where(array('boot_id' => 7, 'bet_status' => 3))->order('id ASC')->select();
|
||||
$bigRoad = array();
|
||||
$bigEyeRoad = array();
|
||||
$pathway = array();
|
||||
$roach = array();
|
||||
/**************************** 计算 bigRoad start ***************************/
|
||||
//列
|
||||
$yKey = 0;
|
||||
//行
|
||||
$xKey = 0;
|
||||
$last = array();
|
||||
foreach($ns AS $key => $value){
|
||||
if($value['pair'] == 1){
|
||||
$pair = 'bankerPair';
|
||||
}elseif($value['pair'] == 2){
|
||||
$pair = 'playerPair';
|
||||
}elseif($value['pair'] == 3){
|
||||
$pair = 'bothPair';
|
||||
}else{
|
||||
$pair = 'none';
|
||||
}
|
||||
if($key == 0 && $value['result'] == 3){
|
||||
$bigRoad[$yKey][$xKey] = array('result' => 3, 'tie_num' => 1, 'pair' => $pair);
|
||||
$last = array('yKey' => $yKey, 'xKey' => $xKey);
|
||||
}elseif($yKey == 0 && $xKey == 0 && !empty($last) && $value['result'] != 3){
|
||||
$bigRoad[$last['yKey']][$last['xKey']]['result'] = $value['result'];
|
||||
if(isset($ns[$key+1]) && $ns[$key+1]['result'] != $bigRoad[$last['yKey']][$last['xKey']]['result'] && $ns[$key+1]['result'] != 3){
|
||||
$yKey++;
|
||||
$xKey = 0;
|
||||
}elseif(isset($ns[$key+1]) && $ns[$key+1]['result'] == $bigRoad[$last['yKey']][$last['xKey']]['result'] && $ns[$key+1]['result'] != 3){
|
||||
$xKey++;
|
||||
}
|
||||
$last = array('yKey' => $yKey, 'xKey' => $xKey);
|
||||
}elseif($key > 0 && $value['result'] == 3){
|
||||
$bigRoad[$last['yKey']][$last['xKey']]['tie_num'] = $bigRoad[$last['yKey']][$last['xKey']]['tie_num'] + 1;
|
||||
if(isset($ns[$key+1]) && $ns[$key+1]['result'] != $bigRoad[$last['yKey']][$last['xKey']]['result'] && $ns[$key+1]['result'] != 3 && $bigRoad[$last['yKey']][$last['xKey']]['result'] != 3){
|
||||
$yKey++;
|
||||
$xKey = 0;
|
||||
}elseif(isset($ns[$key+1]) && $ns[$key+1]['result'] == $bigRoad[$last['yKey']][$last['xKey']]['result'] && $ns[$key+1]['result'] != 3 && $bigRoad[$last['yKey']][$last['xKey']]['result'] != 3){
|
||||
$xKey++;
|
||||
}
|
||||
$last = array('yKey' => $last['yKey'], 'xKey' => $last['xKey']);
|
||||
}else{
|
||||
$bigRoad[$yKey][$xKey] = array('result' => $value['result'], 'tie_num' => 0, 'pair' => $pair);
|
||||
if(isset($ns[$key+1]) && $ns[$key+1]['result'] != $bigRoad[$yKey][$xKey]['result'] && $ns[$key+1]['result'] != 3){
|
||||
$yKey++;
|
||||
$xKey = 0;
|
||||
}elseif(isset($ns[$key+1]) && $ns[$key+1]['result'] == $bigRoad[$yKey][$xKey]['result'] && $ns[$key+1]['result'] != 3){
|
||||
$xKey++;
|
||||
}
|
||||
$last = array('yKey' => $yKey, 'xKey' => $xKey);
|
||||
}
|
||||
}
|
||||
//重新计算坐标
|
||||
$bigRoadLocation = array();
|
||||
$occupy = array();
|
||||
foreach($bigRoad AS $key => $value){
|
||||
$swerve = false;
|
||||
$swerveY = $key;
|
||||
foreach($value AS $k => $v){
|
||||
$show_y = $key;
|
||||
$show_x = $k;
|
||||
if($show_x > 5 && $swerve === false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = 5;
|
||||
array_push($occupy,$show_y.'-'.$show_x);
|
||||
}elseif(in_array($show_y.'-'.$show_x,$occupy)){
|
||||
if($swerve === false){
|
||||
$swerve = $show_x - 1;
|
||||
}
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupy,$show_y.'-'.$show_x);
|
||||
}elseif($swerve !== false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupy,$show_y.'-'.$show_x);
|
||||
}
|
||||
$pushArray = array('show_y' => $show_y, 'show_x' => $show_x, 'result' => $v['result'], 'pair' => $v['pair'], 'tie_num' => $v['tie_num']);
|
||||
array_push($bigRoadLocation,$pushArray);
|
||||
}
|
||||
}
|
||||
//echo "<pre>";
|
||||
//print_r($bigRoadLocation);
|
||||
//echo "</pre>";
|
||||
//exit();
|
||||
/**************************** 计算 bigRoad end ***************************/
|
||||
/**************************** 计算 bigEyeRoad start ***************************/
|
||||
$bigEyeRoadStart = false;
|
||||
$bigEyeRoadYKey = 0;
|
||||
$bigEyeRoadXKey = 0;
|
||||
$bigEyeRoadLast = array();
|
||||
foreach($bigRoad AS $key => $value){
|
||||
foreach($value AS $k => $v){
|
||||
if($key == 1 && $k == 1 && isset($bigRoad[1][1])){
|
||||
if(isset($bigRoad[0][1])){
|
||||
$bigEyeRoad[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoad[0][0] = array('result' => 2);
|
||||
}
|
||||
$bigEyeRoadStart = true;
|
||||
$bigEyeRoadLast = $bigEyeRoad[0][0];
|
||||
continue;
|
||||
}
|
||||
if($key == 2 && $k == 0 && !isset($bigEyeRoad[0][0])){
|
||||
if(isset($bigRoad[0]) && isset($bigRoad[1]) && count($bigRoad[0]) == count($bigRoad[1])){
|
||||
$bigEyeRoad[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoad[0][0] = array('result' => 2);
|
||||
}
|
||||
$bigEyeRoadStart = true;
|
||||
$bigEyeRoadLast = $bigEyeRoad[0][0];
|
||||
continue;
|
||||
}
|
||||
if($bigEyeRoadStart == true){
|
||||
$bigEyeRoadPushData = array();
|
||||
if($k == 0){ //第一个
|
||||
$p1 = $key - 1;
|
||||
$p2 = $key - 2;
|
||||
if(count($bigRoad[$p1]) == count($bigRoad[$p2])){
|
||||
$bigEyeRoadPushData = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoadPushData = array('result' => 2);
|
||||
}
|
||||
}elseif($k == 1){ //第二个
|
||||
if(isset($bigRoad[$key-1][$k])){
|
||||
$bigEyeRoadPushData = array('result' => 1);
|
||||
}else{
|
||||
$bigEyeRoadPushData = array('result' => 2);
|
||||
}
|
||||
}else{ //第三个或者之后那些
|
||||
if(isset($bigRoad[$key-1][$k-1]) && !isset($bigRoad[$key-1][$k])){
|
||||
$bigEyeRoadPushData = array('result' => 2);
|
||||
}else{
|
||||
$bigEyeRoadPushData = array('result' => 1);
|
||||
}
|
||||
}
|
||||
if($bigEyeRoadLast['result'] == $bigEyeRoadPushData['result']){
|
||||
$bigEyeRoadXKey++;
|
||||
}else{
|
||||
$bigEyeRoadYKey++;
|
||||
$bigEyeRoadXKey = 0;
|
||||
}
|
||||
$bigEyeRoad[$bigEyeRoadYKey][$bigEyeRoadXKey] = $bigEyeRoadPushData;
|
||||
$bigEyeRoadLast = $bigEyeRoadPushData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//重新计算坐标
|
||||
$bigEyeRoadLocation = array();
|
||||
$occupyEye = array();
|
||||
foreach($bigEyeRoad AS $key => $value){
|
||||
$swerve = false;
|
||||
$swerveY = $key;
|
||||
foreach($value AS $k => $v){
|
||||
$show_y = $key;
|
||||
$show_x = $k;
|
||||
if($show_x > 5 && $swerve === false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = 5;
|
||||
array_push($occupyEye,$show_y.'-'.$show_x);
|
||||
}elseif(in_array($show_y.'-'.$show_x,$occupyEye)){
|
||||
if($swerve === false){
|
||||
$swerve = $show_x - 1;
|
||||
}
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupyEye,$show_y.'-'.$show_x);
|
||||
}elseif($swerve !== false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupyEye,$show_y.'-'.$show_x);
|
||||
}
|
||||
$pushArray = array('show_y' => $show_y, 'show_x' => $show_x, 'result' => $v['result']);
|
||||
array_push($bigEyeRoadLocation,$pushArray);
|
||||
}
|
||||
}
|
||||
echo "<pre>";
|
||||
print_r($bigEyeRoadLocation);
|
||||
echo "</pre>";
|
||||
exit();
|
||||
/**************************** 计算 bigEyeRoad end ***************************/
|
||||
/**************************** 计算 pathway start ***************************/
|
||||
$pathwayStart = false;
|
||||
$pathwayYKey = 0;
|
||||
$pathwayXKey = 0;
|
||||
$pathwayLast = array();
|
||||
foreach($bigRoad AS $key => $value){
|
||||
foreach($value AS $k => $v){
|
||||
if($key == 2 && $k == 1 && isset($bigRoad[2][1])){
|
||||
if(isset($bigRoad[0][1])){
|
||||
$pathway[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$pathway[0][0] = array('result' => 2);
|
||||
}
|
||||
$pathwayStart = true;
|
||||
$pathwayLast = $pathway[0][0];
|
||||
continue;
|
||||
}
|
||||
if($key == 3 && $k == 0 && !isset($pathway[0][0])){
|
||||
if(isset($bigRoad[0]) && isset($bigRoad[2]) && count($bigRoad[0]) == count($bigRoad[2])){
|
||||
$pathway[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$pathway[0][0] = array('result' => 2);
|
||||
}
|
||||
$pathwayStart = true;
|
||||
$pathwayLast = $pathway[0][0];
|
||||
continue;
|
||||
}
|
||||
if($pathwayStart == true){
|
||||
$pushData = array();
|
||||
if($k == 0){ //第一个
|
||||
$p1 = $key - 1;
|
||||
$p2 = $key - 3;
|
||||
if(count($bigRoad[$p1]) == count($pathway[$p2])){
|
||||
$pushData = array('result' => 1);
|
||||
}else{
|
||||
$pushData = array('result' => 2);
|
||||
}
|
||||
}elseif($k == 1){ //第二个
|
||||
if(isset($bigRoad[$key-1][$k])){
|
||||
$pushData = array('result' => 1);
|
||||
}else{
|
||||
$pushData = array('result' => 2);
|
||||
}
|
||||
}else{ //第三个或者之后那些
|
||||
if(isset($bigRoad[$key-2][$k-1]) && !isset($bigRoad[$key-2][$k])){
|
||||
$pushData = array('result' => 2);
|
||||
}else{
|
||||
$pushData = array('result' => 1);
|
||||
}
|
||||
}
|
||||
if($pathwayLast['result'] == $pushData['result']){
|
||||
$pathwayXKey++;
|
||||
}else{
|
||||
$pathwayYKey++;
|
||||
$pathwayXKey = 0;
|
||||
}
|
||||
$pathway[$pathwayYKey][$pathwayXKey] = $pushData;
|
||||
$pathwayLast = $pushData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//重新计算坐标
|
||||
$pathwayLocation = array();
|
||||
$occupyPathway = array();
|
||||
foreach($pathway AS $key => $value){
|
||||
$swerve = false;
|
||||
$swerveY = $key;
|
||||
foreach($value AS $k => $v){
|
||||
$show_y = $key;
|
||||
$show_x = $k;
|
||||
if($show_x > 5 && $swerve === false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = 5;
|
||||
array_push($occupyPathway,$show_y.'-'.$show_x);
|
||||
}elseif(in_array($show_y.'-'.$show_x,$occupyPathway)){
|
||||
if($swerve === false){
|
||||
$swerve = $show_x - 1;
|
||||
}
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupyPathway,$show_y.'-'.$show_x);
|
||||
}elseif($swerve !== false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupyPathway,$show_y.'-'.$show_x);
|
||||
}
|
||||
$pushArray = array('show_y' => $show_y, 'show_x' => $show_x, 'result' => $v['result']);
|
||||
array_push($pathwayLocation,$pushArray);
|
||||
}
|
||||
}
|
||||
echo "<pre>";
|
||||
print_r($pathwayLocation);
|
||||
echo "</pre>";
|
||||
exit();
|
||||
/**************************** 计算 pathway end ***************************/
|
||||
/**************************** 计算 roach start ***************************/
|
||||
$roachStart = false;
|
||||
$roachYKey = 0;
|
||||
$roachXKey = 0;
|
||||
$roachLast = array();
|
||||
foreach($bigRoad AS $key => $value){
|
||||
foreach($value AS $k => $v){
|
||||
if($key == 3 && $k == 1 && isset($bigRoad[3][1])){
|
||||
if(isset($bigRoad[0][1])){
|
||||
$roach[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$roach[0][0] = array('result' => 2);
|
||||
}
|
||||
$roachStart = true;
|
||||
$roachLast = $roach[0][0];
|
||||
continue;
|
||||
}
|
||||
if($key == 4 && $k == 0 && !isset($roach[0][0])){
|
||||
if(isset($bigRoad[0]) && isset($bigRoad[3]) && count($bigRoad[0]) == count($bigRoad[3])){
|
||||
$roach[0][0] = array('result' => 1);
|
||||
}else{
|
||||
$roach[0][0] = array('result' => 2);
|
||||
}
|
||||
$roachStart = true;
|
||||
$roachLast = $roach[0][0];
|
||||
continue;
|
||||
}
|
||||
if($roachStart == true){
|
||||
$pushData = array();
|
||||
if($k == 0){ //第一个
|
||||
$p1 = $key - 1;
|
||||
$p2 = $key - 4;
|
||||
if(count($bigRoad[$p1]) == count($roach[$p2])){
|
||||
$pushData = array('result' => 1);
|
||||
}else{
|
||||
$pushData = array('result' => 2);
|
||||
}
|
||||
}elseif($k == 1){ //第二个
|
||||
if(isset($bigRoad[$key-1][$k])){
|
||||
$pushData = array('result' => 1);
|
||||
}else{
|
||||
$pushData = array('result' => 2);
|
||||
}
|
||||
}else{ //第三个或者之后那些
|
||||
if(isset($bigRoad[$key-3][$k-1]) && !isset($bigRoad[$key-3][$k])){
|
||||
$pushData = array('result' => 2);
|
||||
}else{
|
||||
$pushData = array('result' => 1);
|
||||
}
|
||||
}
|
||||
if($roachLast['result'] == $pushData['result']){
|
||||
$roachXKey++;
|
||||
}else{
|
||||
$roachYKey++;
|
||||
$roachXKey = 0;
|
||||
}
|
||||
$roach[$roachYKey][$roachXKey] = $pushData;
|
||||
$roachLast = $pushData;
|
||||
}
|
||||
}
|
||||
}
|
||||
//重新计算坐标
|
||||
$roachLocation = array();
|
||||
$occupyRoach = array();
|
||||
foreach($roach AS $key => $value){
|
||||
$swerve = false;
|
||||
$swerveY = $key;
|
||||
foreach($value AS $k => $v){
|
||||
$show_y = $key;
|
||||
$show_x = $k;
|
||||
if($show_x > 5 && $swerve === false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = 5;
|
||||
array_push($occupyRoach,$show_y.'-'.$show_x);
|
||||
}elseif(in_array($show_y.'-'.$show_x,$occupyRoach)){
|
||||
if($swerve === false){
|
||||
$swerve = $show_x - 1;
|
||||
}
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupyRoach,$show_y.'-'.$show_x);
|
||||
}elseif($swerve !== false){
|
||||
$swerveY = $swerveY + 1;
|
||||
$show_y = $swerveY;
|
||||
$show_x = $swerve;
|
||||
array_push($occupyRoach,$show_y.'-'.$show_x);
|
||||
}
|
||||
$pushArray = array('show_y' => $show_y, 'show_x' => $show_x, 'result' => $v['result']);
|
||||
array_push($roachLocation,$pushArray);
|
||||
}
|
||||
}
|
||||
echo "<pre>";
|
||||
print_r($roachLocation);
|
||||
echo "</pre>";
|
||||
exit();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="{$Think.CONSOLE_STATIC_DOMAIN}static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="{$Think.CONSOLE_STATIC_DOMAIN}static/console/css/dn.css{$Think.VERSION_V}">
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
<style type="text/css">
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box"><label>臺號</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box"><label>靴数</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0"><label>局数</label><input id="number" type="text" disabled="true"></div>
|
||||
<div class="item date">当前时间:<p></p> <span> 周四</span></div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="notice">
|
||||
<div class="scroll">
|
||||
<ul class="clearfix">
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="table-data">
|
||||
<ul class="lan-top clearfix">
|
||||
<li>
|
||||
<h3 class="title">
|
||||
<strong>庄</strong>
|
||||
<small>Banker</small>
|
||||
</h3>
|
||||
<p id="result_total_banker">0</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="title">
|
||||
<strong>闲</strong>
|
||||
<small>Player</small>
|
||||
</h3>
|
||||
<p id="result_total_player">0</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="title">
|
||||
<strong>最低限红</strong>
|
||||
<small>LowLimit</small>
|
||||
</h3>
|
||||
<p>{$scene_limit_money[0]}</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="title">
|
||||
<strong>最高限红</strong>
|
||||
<small>HighLimit</small>
|
||||
</h3>
|
||||
<p>{$scene_limit_money[1]}</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="title">
|
||||
<strong>在线人数</strong>
|
||||
<small>OnlineNumber</small>
|
||||
</h3>
|
||||
<p id="onlineNumber">0</p>
|
||||
</li>
|
||||
<li>
|
||||
<h3 class="title">
|
||||
<strong>下注总额</strong>
|
||||
<small>BetAmount</small>
|
||||
</h3>
|
||||
<p id="all_amount">0</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="canvas-box small" style="overflow: hidden;">
|
||||
<canvas id="canvas1"></canvas>
|
||||
<div class="countdown">
|
||||
<div class="num">0</div>
|
||||
<div class="inner">
|
||||
<div class="spiner"></div>
|
||||
<div class="filler"></div>
|
||||
<div class="masker"></div>
|
||||
</div>
|
||||
<div class="inner2">
|
||||
<div class="spiner"></div>
|
||||
<div class="filler"></div>
|
||||
<div class="masker"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div class="btn-box1">
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">接收下注</span>
|
||||
<span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span>
|
||||
</div>
|
||||
<div class="btn-box2">
|
||||
<span id="banker" onclick="confirmResult('banker',1)">庄</span>
|
||||
<span id="player" onclick="confirmResult('player',2)">闲</span>
|
||||
</div>
|
||||
<div class="btn-box3">
|
||||
<span class="red_bg" id="dosubmit" onclick="opening()">提交结果</span>
|
||||
<input type="hidden" id="opening" value="0">
|
||||
<input type="hidden" id="times" value="1">
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<span onclick="inCheckout()">开始洗牌</span>
|
||||
<span onclick="changeBoot()">换靴</span>
|
||||
<span onclick="resetBoot()">日结算</span>
|
||||
<span onclick="window.location.href='/login/logout'">退出</span>
|
||||
</div>
|
||||
</section>
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">修改上一局结果</div>
|
||||
<div class="update-ludan-content">
|
||||
选择结果:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">请选择</option>
|
||||
<option value="1-1">庄-平倍</option>
|
||||
<option value="1-2">庄-翻2倍</option>
|
||||
<option value="1-3">庄-翻3倍</option>
|
||||
<option value="1-4">庄-翻4倍</option>
|
||||
<option value="1-5">庄-翻5倍</option>
|
||||
<option value="2-1">闲-平倍</option>
|
||||
<option value="2-2">闲-翻2倍</option>
|
||||
<option value="2-3">闲-翻3倍</option>
|
||||
<option value="2-4">闲-翻4倍</option>
|
||||
<option value="2-5">闲-翻5倍</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">确定</a>
|
||||
<a id="cancel_update_ludan">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/new_index_dn.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>打印</title>
|
||||
<style type="text/css"> .print-box{overflow: hidden; border-bottom: dashed 1px #333; position: relative; max-width: 1400px; margin:0 auto;} .print-box .baccarat_mian{width: 100%; } .print-box .title{margin:20px 50px; } .print-box .print{display: table; width: 100%; border-top: dashed 1px #333; } .print-box .print{padding: 20px 0; } .print-box .print dl{display: table-cell; font-size: 15px; vertical-align: middle; } .print-box .print dl img{width: 130px; } .print-box .print dl dd{padding: 5px 0; margin-left: 50px; } .print-box .bottom{margin:20px 50px; } .print-box .btn{position: absolute; bottom: 20px; right: 20px; background:none; width: 80px; height: 30px; outline: none; text-decoration: none; cursor: pointer; } .print-box .btn:active{opacity: 0.8; } .print-box .btn.off{right: 120px; } .print-box .canvas-box .item{position: relative;margin: 30px 50px} .print-box .canvas-box .item .bg{position: absolute;left: 0;top: 0;width: 100%;}
|
||||
</style>
|
||||
</head>
|
||||
<body style="background:#fff">
|
||||
<section class="print-box">
|
||||
<h2 class="title">路单详情</h2>
|
||||
<div class="canvas-box baccarat_mian">
|
||||
<div class="item">
|
||||
<img width="100%" height="100%" class="canvas-bg" id="canvas1" src="">
|
||||
</div>
|
||||
<div class="item">
|
||||
<img width="100%" height="100%" class="canvas-bg" id="canvas2" src="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="print">
|
||||
<dl>
|
||||
<dd><span>台号:{$tableName}</span><span id="t_id"></span></dd>
|
||||
<dd><span>列印时间:</span><span id="print_time">{$nowTime}</span></dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dd><span>新靴开始:</span><span id="begin_newboots">{$bootTime}</span></dd>
|
||||
<dd><span>最后牌局:</span><span id="now_resulttime">{$nTime}</span></dd>
|
||||
</dl>
|
||||
<dl><img src="{$Think.CONSOLE_STATIC_DOMAIN}static/hc-logo.png?v=1"></dl>
|
||||
</div>
|
||||
<h3 class="bottom">以上数据,仅供参考,一切以赌博台开出结果为准。</h3>
|
||||
<button class="btn no-print" onclick="jQuery('html').print()">打 印</button>
|
||||
|
||||
</section>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jQuery.print.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
canvas1=sessionStorage.getItem("canvas1");
|
||||
canvas2=sessionStorage.getItem("canvas2");
|
||||
$("#canvas1").attr("src",canvas1);
|
||||
$("#canvas2").attr("src",canvas2);
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,240 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/index_new.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/c_new.css{$Think.VERSION_V}">
|
||||
<style type="text/css">
|
||||
.section .head .logo{background: url({$Think.LOGO_PATH}) center center no-repeat;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var table_type = "{$table.table_type}";
|
||||
var bet_type = "{$table.bet_type}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
</head>
|
||||
<body class="wp">
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<div class="footer" style="margin-bottom: 0.5vh">
|
||||
<div class="canvas-box big">
|
||||
<div class="countdown">
|
||||
<div class="num"></div>
|
||||
</div>
|
||||
<canvas id="canvas3"></canvas>
|
||||
<input type="hidden" id="wait_time" value="{$table.wait_time}">
|
||||
</div>
|
||||
<div class="table-data">
|
||||
<div>
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="clearfix">
|
||||
<div class="date"><div>{:lang('now_time')}:<span class="weekend"> 周四</span><span class="time"></span></div> </div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box" style="width: 40%;"><label>{:lang('table')}</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box" style="width: 25%;"><label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0" style="width: 25%;"><label>{:lang('number')}</label><input id="number" type="text" disabled="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="title" style="margin-top:0px;">
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker')}</strong>
|
||||
<small>Banker</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player')}</strong>
|
||||
<small>Player</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color: #0A5101">{:lang('tie')}</strong>
|
||||
<small>Tie</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker_pair')}</strong>
|
||||
<small>B Pair</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player_pair')}</strong>
|
||||
<small>P Pair</small>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="top">
|
||||
<span style="color:#6b0008" id="result_total_banker">0</span>
|
||||
<span style="color:#023778" id="result_total_player">0</span>
|
||||
<span style="color: #0A5101" id="result_total_tie">0</span>
|
||||
<span style="color:#6b0008" id="result_total_bankerpair" >0</span>
|
||||
<span style="color:#023778" id="result_total_playerpair">0</span>
|
||||
</div>
|
||||
<div class="lan-box clearfix">
|
||||
<!--
|
||||
<div class="item fl">
|
||||
<span>{:lang('online_number')}</span>
|
||||
<small id="onlineNumber">0</small>
|
||||
</div>
|
||||
|
||||
<div class="item fl">
|
||||
<span>{:lang('bet_amount')}</span>
|
||||
<small id="all_amount">0</small>
|
||||
</div>
|
||||
-->
|
||||
<div class="item" style="margin:0 auto; text-align:center;">
|
||||
<!--<span>本局下注金额</span>
|
||||
<small id="all_amount">0</small>-->
|
||||
<span id="betstatus"></span>
|
||||
<!-- <small ></small> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="limit-box">
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('banker')}\{:lang('player')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money[0]}-{$scene_limit_money[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_usd[0]}-{$scene_limit_money_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('tie')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_tie[0]}-{$scene_limit_money_tie[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_tie_usd[0]}-{$scene_limit_money_tie_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('pair')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_pair[0]}-{$scene_limit_money_pair[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_pair_usd[0]}-{$scene_limit_money_pair_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<canvas id="canvas1"></canvas>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<div class="active-box">
|
||||
<div class="item" id="bankerask">{:lang('next')}:
|
||||
<strong style="color:#c40404">{:lang('banker')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<div class="item" id="playerask">{:lang('next')}:
|
||||
<strong style="color:#0048ff">{:lang('player')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<!-- <p>{:lang('disclaimer')}</p> -->
|
||||
</div>
|
||||
<canvas id="canvas2"></canvas>
|
||||
</div>
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div class="btn-box1">
|
||||
<select class="green_bg" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
|
||||
<option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start_bet')}</span>
|
||||
<!-- <span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span> -->
|
||||
</div>
|
||||
<div class="btn-box2">
|
||||
<span id="banker" onclick="confirmResult('banker',1)">{:lang('banker')}</span>
|
||||
<span id="player" onclick="confirmResult('player',2)">{:lang('player')}</span>
|
||||
<span id="tie" onclick="confirmResult('tie',3)">{:lang('tie')}</span>
|
||||
<span id="banker_pair" onclick="confirmResultPair('banker_pair',1)">{:lang('banker_pair')}</span>
|
||||
<span id="player_pair" onclick="confirmResultPair('player_pair',2)">{:lang('player_pair')}</span>
|
||||
</div>
|
||||
<div class="btn-box3">
|
||||
<span class="red_bg" id="dosubmit" onclick="opening()">{:lang('opening')}</span>
|
||||
<input type="hidden" id="opening" value="0">
|
||||
<input type="hidden" id="result_banker_pair" value="0">
|
||||
<input type="hidden" id="result_player_pair" value="0">
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
|
||||
<span onclick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">{:lang('change_boot')}</span>
|
||||
<span onclick="resetBoot()">{:lang('close_boot')}</span>
|
||||
<span onclick="loginout()">{:lang('logout')}</span>
|
||||
</div>
|
||||
</section>
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">{:lang('edit_previous_result')}</div>
|
||||
<div class="update-ludan-content">
|
||||
{:lang('select_result')}:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">{:lang('select')}</option>
|
||||
<option value="1-0">{:lang('banker')}</option>
|
||||
<option value="2-0">{:lang('player')}</option>
|
||||
<option value="3-0">{:lang('tie')}</option>
|
||||
<option value="1-1">{:lang('banker')}-{:lang('banker_pair')}</option>
|
||||
<option value="1-2">{:lang('banker')}-{:lang('player_pair')}</option>
|
||||
<option value="1-3">{:lang('banker')}-{:lang('both_pair')}</option>
|
||||
<option value="2-1">{:lang('player')}-{:lang('banker_pair')}</option>
|
||||
<option value="2-2">{:lang('player')}-{:lang('player_pair')}</option>
|
||||
<option value="2-3">{:lang('player')}-{:lang('both_pair')}</option>
|
||||
<option value="3-1">{:lang('tie')}-{:lang('banker_pair')}</option>
|
||||
<option value="3-2">{:lang('tie')}-{:lang('player_pair')}</option>
|
||||
<option value="3-3">{:lang('tie')}-{:lang('both_pair')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">{:lang('confirm')}</a>
|
||||
<a id="cancel_update_ludan">{:lang('cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="is_scavenging" value="{$table.is_scavenging}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
<input type="hidden" id="keycode" value="">
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,280 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/index_new.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/c_new.css{$Think.VERSION_V}">
|
||||
<style type="text/css">
|
||||
.section .head .logo{background: url({$Think.LOGO_PATH}) center center no-repeat;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var table_type = "{$table.table_type}";
|
||||
var bet_type = "{$table.bet_type}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="canvas-box big">
|
||||
<div class="countdown">
|
||||
<div class="num"></div>
|
||||
</div>
|
||||
<canvas id="canvas3"></canvas>
|
||||
<input type="hidden" id="wait_time" value="{$table.wait_time}">
|
||||
</div>
|
||||
<div class="table-data">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="clearfix">
|
||||
<div class="date"><div>{:lang('now_time')}:<span class="weekend"> 周四</span><span class="time"></span></div> </div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box" style="width: 40%;"><label>{:lang('table')}</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box" style="width: 25%;"><label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0" style="width: 25%;"><label>{:lang('number')}</label><input id="number" type="text" disabled="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="title">
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker')}</strong>
|
||||
<small>Banker</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player')}</strong>
|
||||
<small>Player</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color: #0a5101">{:lang('tie')}</strong>
|
||||
<small>Tie</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker_pair')}</strong>
|
||||
<small>B Pair</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player_pair')}</strong>
|
||||
<small>P Pair</small>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="top">
|
||||
<span style="color:#6b0008" id="result_total_banker">0</span>
|
||||
<span style="color:#023778" id="result_total_player">0</span>
|
||||
<span style="color: #0a5101" id="result_total_tie">0</span>
|
||||
<span style="color:#6b0008" id="result_total_bankerpair" >0</span>
|
||||
<span style="color:#023778" id="result_total_playerpair">0</span>
|
||||
</div>
|
||||
<div class="lan-box clearfix">
|
||||
<div class="item fl" style="opacity:0">
|
||||
<span>{:lang('online_number')}</span>
|
||||
<small id="onlineNumber">0</small>
|
||||
</div>
|
||||
<!--
|
||||
<div class="item fl">
|
||||
<span>{:lang('bet_amount')}</span>
|
||||
<small id="all_amount">0</small>
|
||||
</div>
|
||||
-->
|
||||
<div class="item fl">
|
||||
<!--<span>本局下注金额</span>
|
||||
<small id="all_amount">0</small>-->
|
||||
<span id="betstatus"></span>
|
||||
<!-- <small ></small> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="limit-box">
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('banker')}\{:lang('player')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money[0]}-{$scene_limit_money[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_usd[0]}-{$scene_limit_money_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('tie')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_tie[0]}-{$scene_limit_money_tie[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_tie_usd[0]}-{$scene_limit_money_tie_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('pair')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_pair[0]}-{$scene_limit_money_pair[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_pair_usd[0]}-{$scene_limit_money_pair_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<canvas id="canvas1"></canvas>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<div class="active-box">
|
||||
<div class="item" id="bankerask">{:lang('next')}:
|
||||
<strong style="color:#c40404">{:lang('banker')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<div class="item" id="playerask">{:lang('next')}:
|
||||
<strong style="color:#0048ff">{:lang('player')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<!-- <p>{:lang('disclaimer')}</p> -->
|
||||
</div>
|
||||
<canvas id="canvas2"></canvas>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div clss="btn-box0" style="padding:5vh 0 3vh 0">
|
||||
<select class="green_bg" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
|
||||
<option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="btn-box1" style="padding-top:0;">
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start')}</span>
|
||||
<span class="red_bg" id="end_bet" onclick="opening()">{:lang('end')}</span>
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
|
||||
<span onclick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">{:lang('change_boot')}</span>
|
||||
<span onclick="resetBoot()">{:lang('close_boot')}</span>
|
||||
<span onclick="loginout()">{:lang('logout')}</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="begincard">
|
||||
<div class="box">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list banker-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="draw">
|
||||
<div class="text" style=" color: #f13b3d">{:lang('banker_all')}</div>
|
||||
<div class="rotate">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list player-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="draw">
|
||||
<div class="rotate">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text" style="color: #35d9ff">{:lang('player_all')}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">{:lang('edit_previous_result')}</div>
|
||||
<div class="update-ludan-content">
|
||||
{:lang('select_result')}:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">{:lang('select')}</option>
|
||||
<option value="1-0">{:lang('banker')}</option>
|
||||
<option value="2-0">{:lang('player')}</option>
|
||||
<option value="3-0">{:lang('tie')}</option>
|
||||
<option value="1-1">{:lang('banker')}-{:lang('banker_pair')}</option>
|
||||
<option value="1-2">{:lang('banker')}-{:lang('player_pair')}</option>
|
||||
<option value="1-3">{:lang('banker')}-{:lang('both_pair')}</option>
|
||||
<option value="2-1">{:lang('player')}-{:lang('banker_pair')}</option>
|
||||
<option value="2-2">{:lang('player')}-{:lang('player_pair')}</option>
|
||||
<option value="2-3">{:lang('player')}-{:lang('both_pair')}</option>
|
||||
<option value="3-1">{:lang('tie')}-{:lang('banker_pair')}</option>
|
||||
<option value="3-2">{:lang('tie')}-{:lang('player_pair')}</option>
|
||||
<option value="3-3">{:lang('tie')}-{:lang('both_pair')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">{:lang('confirm')}</a>
|
||||
<a id="cancel_update_ludan">{:lang('cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="is_scavenging" value="{$table.is_scavenging}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
<input type="hidden" id="keycode" value="">
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/reconnecting-websocket.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index_auto.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,242 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/index_new.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/c_new.css{$Think.VERSION_V}">
|
||||
<style type="text/css">
|
||||
.section .head .logo{background: url({$Think.LOGO_PATH}) center center no-repeat;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var table_type = "{$table.table_type}";
|
||||
var bet_type = "{$table.bet_type}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<div class="footer">
|
||||
<div class="canvas-box big">
|
||||
<div class="countdown">
|
||||
<div class="num"></div>
|
||||
</div>
|
||||
<canvas id="canvas3"></canvas>
|
||||
<input type="hidden" id="wait_time" value="{$table.wait_time}">
|
||||
</div>
|
||||
<div class="table-data">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="clearfix">
|
||||
<div class="date"><div>{:lang('now_time')}:<span class="weekend"> 周四</span><span class="time"></span></div> </div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box" style="width: 40%;"><label>{:lang('table')}</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box" style="width: 25%;"><label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0" style="width: 25%;"><label>{:lang('number')}</label><input id="number" type="text" disabled="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="title">
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker')}</strong>
|
||||
<small>Banker</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player')}</strong>
|
||||
<small>Player</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color: #0a5101">{:lang('tie')}</strong>
|
||||
<small>Tie</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker_pair')}</strong>
|
||||
<small>B Pair</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player_pair')}</strong>
|
||||
<small>P Pair</small>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="top">
|
||||
<span style="color:#6b0008" id="result_total_banker">0</span>
|
||||
<span style="color:#023778" id="result_total_player">0</span>
|
||||
<span style="color: #0a5101" id="result_total_tie">0</span>
|
||||
<span style="color:#6b0008" id="result_total_bankerpair" >0</span>
|
||||
<span style="color:#023778" id="result_total_playerpair">0</span>
|
||||
</div>
|
||||
<div class="lan-box clearfix">
|
||||
<div class="item fl" style="opacity:0">
|
||||
<span>{:lang('online_number')}</span>
|
||||
<small id="onlineNumber">0</small>
|
||||
</div>
|
||||
<!--
|
||||
<div class="item fl">
|
||||
<span>{:lang('bet_amount')}</span>
|
||||
<small id="all_amount">0</small>
|
||||
</div>
|
||||
-->
|
||||
<div class="item fl">
|
||||
<!--<span>本局下注金额</span>
|
||||
<small id="all_amount">0</small>-->
|
||||
<span id="betstatus"></span>
|
||||
<!-- <small ></small> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="limit-box">
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('banker')}\{:lang('player')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money[0]}-{$scene_limit_money[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_usd[0]}-{$scene_limit_money_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('tie')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_tie[0]}-{$scene_limit_money_tie[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_tie_usd[0]}-{$scene_limit_money_tie_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('pair')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_pair[0]}-{$scene_limit_money_pair[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_pair_usd[0]}-{$scene_limit_money_pair_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<canvas id="canvas1"></canvas>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<div class="active-box">
|
||||
<div class="item" id="bankerask">{:lang('next')}:
|
||||
<strong style="color:#c40404">{:lang('banker')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<div class="item" id="playerask">{:lang('next')}:
|
||||
<strong style="color:#0048ff">{:lang('player')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<!-- <p>{:lang('disclaimer')}</p> -->
|
||||
</div>
|
||||
<canvas id="canvas2"></canvas>
|
||||
</div>
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div class="btn-box1" style="padding: 5vh 0">
|
||||
<select class="green_bg" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
|
||||
<option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start_bet')}</span>
|
||||
<!--<span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span>-->
|
||||
</div>
|
||||
<div class="btn-box2">
|
||||
<span id="banker" onclick="confirmResult('banker',1)">{:lang('banker')}</span>
|
||||
<span id="player" onclick="confirmResult('player',2)">{:lang('player')}</span>
|
||||
<span id="tie" onclick="confirmResult('tie',3)">{:lang('tie')}</span>
|
||||
<!-- <span id="win6" onclick="confirmResultWin6()">{:lang('win_6')}</span> -->
|
||||
<div style="padding-top:15px">
|
||||
<span id="banker_pair" onclick="confirmResultPair('banker_pair',1)">{:lang('banker_pair')}</span>
|
||||
<span id="player_pair" onclick="confirmResultPair('player_pair',2)">{:lang('player_pair')}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-box3" style="padding: 4vh 0">
|
||||
<span class="red_bg" id="dosubmit" onclick="opening()">{:lang('opening')}</span>
|
||||
<input type="hidden" id="opening" value="0">
|
||||
<input type="hidden" id="result_banker_pair" value="0">
|
||||
<input type="hidden" id="result_player_pair" value="0">
|
||||
<input type="hidden" id="result_win_6" value="0">
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
|
||||
<span onclick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">{:lang('change_boot')}</span>
|
||||
<span onclick="resetBoot()">{:lang('close_boot')}</span>
|
||||
<span onclick="loginout()">{:lang('logout')}</span>
|
||||
</div>
|
||||
</section>
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan" style="display:none;">
|
||||
<div class="update-ludan-title">{:lang('edit_previous_result')}</div>
|
||||
<div class="update-ludan-content">
|
||||
{:lang('select_result')}:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">{:lang('select')}</option>
|
||||
<option value="1-0">{:lang('banker')}</option>
|
||||
<option value="2-0">{:lang('player')}</option>
|
||||
<option value="3-0">{:lang('tie')}</option>
|
||||
<option value="1-1">{:lang('banker')}-{:lang('banker_pair')}</option>
|
||||
<option value="1-2">{:lang('banker')}-{:lang('player_pair')}</option>
|
||||
<option value="1-3">{:lang('banker')}-{:lang('both_pair')}</option>
|
||||
<option value="2-1">{:lang('player')}-{:lang('banker_pair')}</option>
|
||||
<option value="2-2">{:lang('player')}-{:lang('player_pair')}</option>
|
||||
<option value="2-3">{:lang('player')}-{:lang('both_pair')}</option>
|
||||
<option value="3-1">{:lang('tie')}-{:lang('banker_pair')}</option>
|
||||
<option value="3-2">{:lang('tie')}-{:lang('player_pair')}</option>
|
||||
<option value="3-3">{:lang('tie')}-{:lang('both_pair')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<!-- <div class="update-ludan-win6">
|
||||
{:lang('is_win_6')}: {:lang('no')} <input name="updatewin6" type="radio" value="0" checked="checked" /> {:lang('yes')} <input name="updatewin6" type="radio" value="1" /></label>
|
||||
</div> -->
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">{:lang('confirm')}</a>
|
||||
<a id="cancel_update_ludan">{:lang('cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
<input type="hidden" id="keycode" value="">
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index_win6.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,281 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/index_new.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/c_new.css{$Think.VERSION_V}">
|
||||
<style type="text/css">
|
||||
.section .head .logo{background: url({$Think.LOGO_PATH}) center center no-repeat;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var table_type = "{$table.table_type}";
|
||||
var bet_type = "{$table.bet_type}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="canvas-box big">
|
||||
<div class="countdown">
|
||||
<div class="num"></div>
|
||||
</div>
|
||||
<canvas id="canvas3"></canvas>
|
||||
<input type="hidden" id="wait_time" value="{$table.wait_time}">
|
||||
</div>
|
||||
<div class="table-data">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="clearfix">
|
||||
|
||||
<div class="date"><div>{:lang('now_time')}:<span> 周四</span></div><p></p> </div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box" style="width: 40%;"><label>{:lang('table')}</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box" style="width: 25%;"><label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0" style="width: 25%;"><label>{:lang('number')}</label><input id="number" type="text" disabled="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="title">
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker')}</strong>
|
||||
<small>Banker</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player')}</strong>
|
||||
<small>Player</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color: #0a5101">{:lang('tie')}</strong>
|
||||
<small>Tie</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('banker_pair')}</strong>
|
||||
<small>B Pair</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('player_pair')}</strong>
|
||||
<small>P Pair</small>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="top">
|
||||
<span style="color:#6b0008" id="result_total_banker">0</span>
|
||||
<span style="color:#023778" id="result_total_player">0</span>
|
||||
<span style="color: #0a5101" id="result_total_tie">0</span>
|
||||
<span style="color:#6b0008" id="result_total_bankerpair" >0</span>
|
||||
<span style="color:#023778" id="result_total_playerpair">0</span>
|
||||
</div>
|
||||
<div class="lan-box clearfix">
|
||||
<div class="item fl" style="opacity:0">
|
||||
<span>{:lang('online_number')}</span>
|
||||
<small id="onlineNumber">0</small>
|
||||
</div>
|
||||
<!--
|
||||
<div class="item fl">
|
||||
<span>{:lang('bet_amount')}</span>
|
||||
<small id="all_amount">0</small>
|
||||
</div>
|
||||
-->
|
||||
<div class="item fl">
|
||||
<!--<span>本局下注金额</span>
|
||||
<small id="all_amount">0</small>-->
|
||||
<span id="betstatus"></span>
|
||||
<!-- <small ></small> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="limit-box">
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('banker')}\{:lang('player')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money[0]}-{$scene_limit_money[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_usd[0]}-{$scene_limit_money_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('tie')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_tie[0]}-{$scene_limit_money_tie[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_tie_usd[0]}-{$scene_limit_money_tie_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('pair')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_pair[0]}-{$scene_limit_money_pair[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_pair_usd[0]}-{$scene_limit_money_pair_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<canvas id="canvas1"></canvas>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<div class="active-box">
|
||||
<div class="item" id="bankerask">{:lang('next')}:
|
||||
<strong style="color:#c40404">{:lang('banker')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<div class="item" id="playerask">{:lang('next')}:
|
||||
<strong style="color:#0048ff">{:lang('player')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<!-- <p>{:lang('disclaimer')}</p> -->
|
||||
</div>
|
||||
<canvas id="canvas2"></canvas>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div clss="btn-box0" style="padding:5vh 0 3vh 0;">
|
||||
<select class="green_bg" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
|
||||
<option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="btn-box1" style="padding-top: 0;">
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start')}</span>
|
||||
<span class="red_bg" id="end_bet" onclick="opening()">{:lang('end')}</span>
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
|
||||
<span onclick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">{:lang('change_boot')}</span>
|
||||
<span onclick="resetBoot()">{:lang('close_boot')}</span>
|
||||
<span onclick="loginout()">{:lang('logout')}</span>
|
||||
</div>
|
||||
</section>
|
||||
<section class="begincard">
|
||||
<div class="box">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list banker-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="draw">
|
||||
<div class="text" style=" color: #f13b3d">{:lang('banker_all')}</div>
|
||||
<div class="rotate">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list player-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="draw">
|
||||
<div class="rotate">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text" style="color: #35d9ff">{:lang('player_all')}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan" style="display:none;">
|
||||
<div class="update-ludan-title">{:lang('edit_previous_result')}</div>
|
||||
<div class="update-ludan-content">
|
||||
{:lang('select_result')}:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">{:lang('select')}</option>
|
||||
<option value="1-0">{:lang('banker')}</option>
|
||||
<option value="2-0">{:lang('player')}</option>
|
||||
<option value="3-0">{:lang('tie')}</option>
|
||||
<option value="1-1">{:lang('banker')}-{:lang('banker_pair')}</option>
|
||||
<option value="1-2">{:lang('banker')}-{:lang('player_pair')}</option>
|
||||
<option value="1-3">{:lang('banker')}-{:lang('both_pair')}</option>
|
||||
<option value="2-1">{:lang('player')}-{:lang('banker_pair')}</option>
|
||||
<option value="2-2">{:lang('player')}-{:lang('player_pair')}</option>
|
||||
<option value="2-3">{:lang('player')}-{:lang('both_pair')}</option>
|
||||
<option value="3-1">{:lang('tie')}-{:lang('banker_pair')}</option>
|
||||
<option value="3-2">{:lang('tie')}-{:lang('player_pair')}</option>
|
||||
<option value="3-3">{:lang('tie')}-{:lang('both_pair')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-win6">
|
||||
{:lang('is_win_6')}: {:lang('no')} <input name="updatewin6" type="radio" value="0" checked="checked" /> {:lang('yes')} <input name="updatewin6" type="radio" value="1" /></label>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">{:lang('confirm')}</a>
|
||||
<a id="cancel_update_ludan">{:lang('cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
<input type="hidden" id="keycode" value="">
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/reconnecting-websocket.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index_win6_auto.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,212 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/index_new.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/c_new.css{$Think.VERSION_V}">
|
||||
<style type="text/css">
|
||||
.section .head .logo{background: url({$Think.LOGO_PATH}) center center no-repeat;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var table_type = "{$table.table_type}";
|
||||
var bet_type = "{$table.bet_type}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="canvas-box big">
|
||||
<div class="countdown">
|
||||
<div class="num"></div>
|
||||
</div>
|
||||
<canvas id="canvas3"></canvas>
|
||||
<input type="hidden" id="wait_time" value="{$table.wait_time}">
|
||||
</div>
|
||||
<div class="table-data">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="clearfix">
|
||||
<div class="date"><div>{:lang('now_time')}:<span class="weekend"> 周四</span><span class="time"></span></div> </div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box" style="width: 40%;"><label>{:lang('table')}</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box" style="width: 25%;"><label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0" style="width: 25%;"><label>{:lang('number')}</label><input id="number" type="text" disabled="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="title" style="margin-top:30px;">
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('dragon')}</strong>
|
||||
<small>Dragon</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('tiger')}</strong>
|
||||
<small>Tiger</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color: #0a5101">{:lang('tie')}</strong>
|
||||
<small>Tie</small>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="top">
|
||||
<span style="color:#6b0008" id="result_total_banker">0</span>
|
||||
<span style="color:#023778" id="result_total_player">0</span>
|
||||
<span style="color: #0a5101" id="result_total_tie">0</span>
|
||||
</div>
|
||||
<div class="lan-box clearfix">
|
||||
<!--
|
||||
<div class="item fl" style="opacity:0">
|
||||
<span>{:lang('online_number')}</span>
|
||||
<small id="onlineNumber">0</small>
|
||||
</div>
|
||||
-->
|
||||
<!--
|
||||
<div class="item fl">
|
||||
<span>{:lang('bet_amount')}</span>
|
||||
<small id="all_amount">0</small>
|
||||
</div>
|
||||
-->
|
||||
<div class="item" style="margin:0 auto; text-align:center;">
|
||||
<!--<span>本局下注金额</span>
|
||||
<small id="all_amount">0</small>-->
|
||||
<span id="betstatus"></span>
|
||||
<!-- <small ></small> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="limit-box">
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('dragon')}\{:lang('tiger')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money[0]}-{$scene_limit_money[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_usd[0]}-{$scene_limit_money_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('tie')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_tie[0]}-{$scene_limit_money_tie[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_tie_usd[0]}-{$scene_limit_money_tie_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<canvas id="canvas1"></canvas>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<div class="active-box">
|
||||
<div class="item" id="bankerask">{:lang('next')}:
|
||||
<strong style="color:#c40404">{:lang('dragon')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<div class="item" id="playerask">{:lang('next')}:
|
||||
<strong style="color:#0048ff">{:lang('tiger')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<!-- <p>{:lang('disclaimer')}</p> -->
|
||||
</div>
|
||||
<canvas id="canvas2"></canvas>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div class="btn-box1">
|
||||
<select class="green_bg" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
|
||||
<option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start_bet')}</span>
|
||||
<!--<span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span>-->
|
||||
</div>
|
||||
<div class="btn-box2">
|
||||
<span id="banker" onclick="confirmResult('banker',1)">{:lang('dragon_all')}</span>
|
||||
<span id="player" onclick="confirmResult('player',2)">{:lang('tiger_all')}</span>
|
||||
<span id="tie" onclick="confirmResult('tie',3)">{:lang('tie_all')}</span>
|
||||
</div>
|
||||
<div class="btn-box3">
|
||||
<span class="red_bg" id="dosubmit" onclick="opening()">{:lang('opening')}</span>
|
||||
<input type="hidden" id="opening" value="0">
|
||||
<input type="hidden" id="result_banker_pair" value="0">
|
||||
<input type="hidden" id="result_player_pair" value="0">
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
|
||||
<span onclick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">{:lang('change_boot')}</span>
|
||||
<span onclick="resetBoot()">{:lang('close_boot')}</span>
|
||||
<span onclick="loginout()">{:lang('logout')}</span>
|
||||
</div>
|
||||
</section>
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">{:lang('edit_previous_result')}</div>
|
||||
<div class="update-ludan-content">
|
||||
{:lang('select_result')}:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">{:lang('select')}</option>
|
||||
<option value="1-0">{:lang('dragon')}</option>
|
||||
<option value="2-0">{:lang('tiger')}</option>
|
||||
<option value="3-0">{:lang('tie')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">{:lang('confirm')}</a>
|
||||
<a id="cancel_update_ludan">{:lang('cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
<input type="hidden" id="keycode" value="">
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index_dt.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,241 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/index_new.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/c_new.css{$Think.VERSION_V}">
|
||||
<style type="text/css">
|
||||
.section .head .logo{background: url({$Think.LOGO_PATH}) center center no-repeat;}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var table_type = "{$table.table_type}";
|
||||
var bet_type = "{$table.bet_type}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="canvas-box big">
|
||||
<div class="countdown">
|
||||
<div class="num"></div>
|
||||
</div>
|
||||
<canvas id="canvas3"></canvas>
|
||||
<input type="hidden" id="wait_time" value="{$table.wait_time}">
|
||||
</div>
|
||||
<div class="table-data">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo"></div>
|
||||
<div class="box">
|
||||
<div class="clearfix">
|
||||
<div class="date"><div>{:lang('now_time')}:<span class="weekend"> 周四</span><span class="time"></span></div> </div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box" style="width: 40%;"><label>{:lang('table')}</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box" style="width: 25%;"><label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0" style="width: 25%;"><label>{:lang('number')}</label><input id="number" type="text" disabled="true"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="title">
|
||||
<li>
|
||||
<strong style="color:#6b0008">{:lang('dragon')}</strong>
|
||||
<small>Dragon</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color:#023778">{:lang('tiger')}</strong>
|
||||
<small>Tiger</small>
|
||||
</li>
|
||||
<li>
|
||||
<strong style="color: #0a5101">{:lang('tie')}</strong>
|
||||
<small>Tie</small>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="top">
|
||||
<span style="color:#6b0008" id="result_total_banker">0</span>
|
||||
<span style="color:#023778" id="result_total_player">0</span>
|
||||
<span style="color: #0a5101" id="result_total_tie">0</span>
|
||||
</div>
|
||||
<div class="lan-box clearfix">
|
||||
<div class="item fl" style="opacity:0">
|
||||
<span>{:lang('online_number')}</span>
|
||||
<small id="onlineNumber">0</small>
|
||||
</div>
|
||||
<!--
|
||||
<div class="item fl">
|
||||
<span>{:lang('bet_amount')}</span>
|
||||
<small id="all_amount">0</small>
|
||||
</div>
|
||||
-->
|
||||
<div class="item fl">
|
||||
<!--<span>本局下注金额</span>
|
||||
<small id="all_amount">0</small>-->
|
||||
<span id="betstatus"></span>
|
||||
<!-- <small ></small> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="limit-box">
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('dragon')}\{:lang('tiger')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money[0]}-{$scene_limit_money[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_usd[0]}-{$scene_limit_money_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list clearfix">
|
||||
<div class="lab">{:lang('tie')}</div>
|
||||
<div class="item fl">
|
||||
<small></small>
|
||||
<span class="fr">RMB:{$scene_limit_money_tie[0]}-{$scene_limit_money_tie[1]}</span>
|
||||
</div>
|
||||
<div class="item fr">
|
||||
<small></small>
|
||||
<span class="fr">USD:{$scene_limit_money_tie_usd[0]}-{$scene_limit_money_tie_usd[1]}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<canvas id="canvas1"></canvas>
|
||||
</div>
|
||||
<div class="canvas-box small">
|
||||
<div class="active-box">
|
||||
<div class="item" id="bankerask">{:lang('next')}:
|
||||
<strong style="color:#c40404">{:lang('dragon')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<div class="item" id="playerask">{:lang('next')}:
|
||||
<strong style="color:#0048ff">{:lang('tiger')}</strong>
|
||||
<i class="tip circle"></i>
|
||||
<i class="tip round"></i>
|
||||
<i class="tip bar"></i>
|
||||
</div>
|
||||
<!-- <p>{:lang('disclaimer')}</p> -->
|
||||
</div>
|
||||
<canvas id="canvas2"></canvas>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div clss="btn-box0" style="padding:5vh 0 3vh 0">
|
||||
<select class="green_bg" id="language">
|
||||
<option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
|
||||
<option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
|
||||
<option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="btn-box1" style="padding-top:0";>
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start')}</span>
|
||||
<span class="red_bg" id="end_bet" onclick="opening()">{:lang('end')}</span>
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
|
||||
<span onclick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">{:lang('change_boot')}</span>
|
||||
<span onclick="resetBoot()">{:lang('close_boot')}</span>
|
||||
<span onclick="loginout()">{:lang('logout')}</span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="begincard">
|
||||
<div class="box">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list banker-card" style="text-align: center;">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="draw">
|
||||
<div class="text" style=" color: #f13b3d">{:lang('dragon_all')}</div>
|
||||
<div class="rotate">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list player-card" style="text-align: center;">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
<div class="draw">
|
||||
<div class="rotate">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
<div class="topleft"></div>
|
||||
<div class="bottomright"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="text" style="color: #35d9ff">{:lang('tiger_all')}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">{:lang('edit_previous_result')}</div>
|
||||
<div class="update-ludan-content">
|
||||
{:lang('select_result')}:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">{:lang('select')}</option>
|
||||
<option value="1-0">{:lang('dragon')}</option>
|
||||
<option value="2-0">{:lang('tiger')}</option>
|
||||
<option value="3-0">{:lang('tie')}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">{:lang('confirm')}</a>
|
||||
<a id="cancel_update_ludan">{:lang('cancel')}</a>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
<input type="hidden" id="keycode" value="">
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/reconnecting-websocket.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/new_index_dt_auto.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh" style="width:100%; height:100%; background: #fff url('/static/console/images/login-bg.jpg') repeat left top; overflow:hidden;">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>用户登录</title>
|
||||
<script type="text/javascript" src="/static/online/js/jquery-1.8.3.min.js"></script>
|
||||
<style type="text/css">
|
||||
*{margin:0; padding:0; border:0; font-family:"微软雅黑"}
|
||||
.login{width:425px; height:500px; background:#fff; position: absolute; top:100px; left:45%;}
|
||||
.login h2{padding-top:50px; text-align:center;}
|
||||
.login h3{font-size:15px; color:#666; padding:20px 0px 0px 60px; font-weight:normal;}
|
||||
.login .input{padding:4px; border:1px solid #ddd; width:290px; border-radius:5px; margin:10px 0px 0px 60px; height:32px; line-height:32px;}
|
||||
.login .code{height:43px; margin:10px 0px 0px 60px;}
|
||||
.login .code .input-code{padding:4px; border:1px solid #ddd; height:32px; line-height:32px; width:180px; border-radius:5px; display:block; float:left; margin-right:10px;}
|
||||
.login button{display:block; margin:30px auto; width:290px; height:42px; border-radius:5px; background:#7FCF0A; cursor:pointer; color:#fff;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="login">
|
||||
<h2>操作台登录</h2>
|
||||
<h3>账号</h3>
|
||||
<input class="input" type="text" name="account" id="account" value="" maxlength="50" />
|
||||
<h3>密码</h3>
|
||||
<input class="input" type="password" name="pass" id="pass" value="" maxlength="50" />
|
||||
<!--<h3>验证码</h3>-->
|
||||
<!--<div class="code">-->
|
||||
<!--<input class="input-code" type="text" name="code" id="code" maxlength="4" />-->
|
||||
<!--<img src="{$Think.CONSOLE_STATIC_DOMAIN}login/verifycode" alt="" width="100" height="32" id="passcode" style="height:43px;cursor:pointer;" onclick="this.src=this.src+'?'">-->
|
||||
<!--</div>-->
|
||||
<button id="dologin" style="font-size:15px;">登录</button>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function (){
|
||||
$('#dologin').click(function (){
|
||||
var query = new Object();
|
||||
if($('#account').val() != ''){
|
||||
query.account = $('#account').val();
|
||||
}else{
|
||||
alert('请输入账号');
|
||||
return false;
|
||||
}
|
||||
if($('#pass').val() != '' && $('#pass').val().length > 5){
|
||||
query.password = $('#pass').val();
|
||||
}else{
|
||||
alert('请正确填写密码');
|
||||
return false;
|
||||
}
|
||||
// if($('#code').val() != '' && $('#code').val().length > 3){
|
||||
// query.code = $('#code').val();
|
||||
// }else{
|
||||
// alert('请正确填写验证码');
|
||||
// return false;
|
||||
// }
|
||||
$.ajax({
|
||||
url:'/login/dologin',
|
||||
data:query,
|
||||
dataType:"json",
|
||||
type:"POST",
|
||||
success:function(data){
|
||||
if(data.code === 1){
|
||||
window.location.href=data.url;
|
||||
}else{
|
||||
alert(data.msg);
|
||||
$('#passcode').attr('src',$('#passcode').attr('src')+'?');
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,269 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/dn.css{$Think.VERSION_V}">
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
<style type="text/css">
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo" style="background: url({$Think.LOGO_PATH_NN}) center center no-repeat;"></div>
|
||||
<div class="box">
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box"><label>臺號</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box"><label>靴数</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0"><label>局数</label><input id="number" type="text" disabled="true"></div>
|
||||
<div class="item date">当前时间:<p></p> <span> 周四</span></div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="notice">
|
||||
<div class="scroll">
|
||||
<ul class="clearfix">
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="table-data">
|
||||
<ul class="lan-top clearfix">
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>庄</strong>
|
||||
<small>Banker</small>
|
||||
</h3>
|
||||
<p id="result_total_banker">0</p>
|
||||
</li>
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>闲</strong>
|
||||
<small>Player</small>
|
||||
</h3>
|
||||
<p id="result_total_player">0</p>
|
||||
</li>
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>最低限红</strong>
|
||||
<small>LowLimit</small>
|
||||
</h3>
|
||||
<p>{$scene_limit_money[0]}</p>
|
||||
</li>
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>最高限红</strong>
|
||||
<small>HighLimit</small>
|
||||
</h3>
|
||||
<p>{$scene_limit_money[1]}</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="canvas-box small" style="overflow: hidden;">
|
||||
<canvas id="canvas1"></canvas>
|
||||
<div class="countdown">
|
||||
<div class="num">0</div>
|
||||
<div class="inner">
|
||||
<div class="spiner"></div>
|
||||
<div class="filler"></div>
|
||||
<div class="masker"></div>
|
||||
</div>
|
||||
<div class="inner2">
|
||||
<div class="spiner"></div>
|
||||
<div class="filler"></div>
|
||||
<div class="masker"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div class="btn-box1">
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">接收下注</span>
|
||||
<span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span>
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<span onClick="resetNumberTab()">{:lang('reset_number')}</span>
|
||||
<span onclick="changeBoot()">换靴</span>
|
||||
<span onclick="resetBoot()">日结算</span>
|
||||
<span onclick="window.location.href='/login/logout'">退出</span>
|
||||
</div>
|
||||
</section>
|
||||
<section class="begincard">
|
||||
<div class="box">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list position-card" style=" margin:0px 30px;">
|
||||
<div class="card xuanzhuan">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="word">定位</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box1">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list banker-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="banker">庄</div>
|
||||
<div class="banker_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box2">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list player-1-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="player">闲1</div>
|
||||
<div class="player_1_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box3">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list player-2-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="player">闲2</div>
|
||||
<div class="player_2_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box4">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list player-3-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="player">闲3</div>
|
||||
<div class="player_3_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">修改上一局结果</div>
|
||||
<div class="update-ludan-content">
|
||||
选择结果:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">请选择</option>
|
||||
<option value="1-1">庄-平倍</option>
|
||||
<option value="1-2">庄-翻2倍</option>
|
||||
<option value="1-3">庄-翻3倍</option>
|
||||
<option value="1-4">庄-翻4倍</option>
|
||||
<option value="1-5">庄-翻5倍</option>
|
||||
<option value="2-1">闲-平倍</option>
|
||||
<option value="2-2">闲-翻2倍</option>
|
||||
<option value="2-3">闲-翻3倍</option>
|
||||
<option value="2-4">闲-翻4倍</option>
|
||||
<option value="2-5">闲-翻5倍</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">确定</a>
|
||||
<a id="cancel_update_ludan">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/reconnecting-websocket.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index_nn.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,131 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>模拟扫描端</title>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
庄1:<input name="banker_1" id="banker_1" ><button id="sub_1" onclick="submitResult('sub_1')">提交</button><br>
|
||||
庄2:<input name="banker_2" id="banker_2" ><button id="sub_2" onclick="submitResult('sub_2')">提交</button><br>
|
||||
|
||||
闲1:<input name="player_1" id="player_1" ><button id="sub_3" onclick="submitResult('sub_3')">提交</button><br>
|
||||
闲2:<input name="player_2" id="player_2" ><button id="sub_4" onclick="submitResult('sub_4')">提交</button><br>
|
||||
补牌庄:<input name="banker_3" id="banker_3" ><button id="sub_5" onclick="submitResult('sub_5')">提交</button><br>
|
||||
补牌闲:<input name="player_3" id="player_3" ><button id="sub_6" onclick="submitResult('sub_6')">提交</button><br><br>
|
||||
|
||||
是否最后一张牌: <input type="radio" id="endCard_Y" name="endCard">是 <input type="radio" id="endCard_N" name="endCard">否
|
||||
</body>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="is_scavenging" value="{$table.is_scavenging}">
|
||||
<input type="hidden" id="endNumber" value="0">
|
||||
<script>
|
||||
|
||||
// WebSocket 数据交互
|
||||
if(window.WebSocket){
|
||||
var webSocket = new WebSocket(websocketUrl);
|
||||
webSocket.onerror = function(event){
|
||||
layer.alert('与服务器连接断开,正在重连。。。',{icon:2,closeBtn:0});
|
||||
}
|
||||
webSocket.onopen = function (event) {
|
||||
var userid = $('#userid').val();
|
||||
var account = $('#account').val();
|
||||
var online_token = $('#online_token').val();
|
||||
if(parseInt(userid) > 0 && account != '' && online_token != ''){
|
||||
webSocket.send('{"connect":"scan","mode":"onlineLogin","appid":"80001","appsecret":"123456","table_id":"'+{$table.id}+'"}');
|
||||
}else{
|
||||
webSocket.close();
|
||||
layer.alert('与服务器连接断开,正在重连。。。',{icon:2,closeBtn:0});
|
||||
}
|
||||
};
|
||||
|
||||
webSocket.onmessage = function (event) {
|
||||
var data = $.parseJSON(event.data);
|
||||
if(data.sendMode == 'onlineLogin'){
|
||||
if(data.status === true){
|
||||
console.log(data)
|
||||
//登录成功
|
||||
setNumberInfo(data); // 设置铺信息
|
||||
}else{
|
||||
//登录失败
|
||||
webSocket.close();
|
||||
layer.alert(data.msg,{icon:2,closeBtn:0});
|
||||
}
|
||||
}else if(data.sendMode == 'sendScanResult'){
|
||||
console.log(data);
|
||||
}
|
||||
};
|
||||
|
||||
// 设置铺信息
|
||||
var setNumberInfo = function(data){
|
||||
$('#number_tab_id').val(data.round.number_tab_id); // 铺ID
|
||||
$('#number_tab_status').val(data.round.number_tab_status.betStatus); // 铺状态
|
||||
$('#boot_num').val(data.round.boot_num);//靴数
|
||||
$('#number').val(data.round.number_tab_number);// 局数
|
||||
};
|
||||
|
||||
// 点击提交结果
|
||||
var submitResult = function(id){
|
||||
var query = new Object();
|
||||
query.connect = "scan";
|
||||
query.mode = "sendScanResult";
|
||||
query.number_tab_id = parseInt($('#number_tab_id').val());
|
||||
query.table_id = parseInt($('#table_id').val());
|
||||
if(id == "sub_1"){
|
||||
// 庄第一张
|
||||
query.card = $('#banker_1').val();
|
||||
query.position = "21";
|
||||
}else if(id == "sub_2"){
|
||||
// 庄第二张
|
||||
query.card = $('#banker_2').val();
|
||||
query.position = "22";
|
||||
}else if(id == "sub_3"){
|
||||
// 闲第一张
|
||||
query.card = $('#player_1').val();
|
||||
query.position = "11";
|
||||
}else if(id == "sub_4"){
|
||||
// 闲第二张
|
||||
query.card = $('#player_2').val();
|
||||
query.position = "12";
|
||||
}else if(id == "sub_5"){
|
||||
// 庄第三张
|
||||
query.card = $('#banker_3').val();
|
||||
query.position = "23";
|
||||
}else if(id == "sub_6"){
|
||||
// 庄第三张
|
||||
query.card = $('#player_3').val();
|
||||
query.position = "13";
|
||||
}
|
||||
var endCard_Y = $('#endCard_Y').is(':checked');
|
||||
if(endCard_Y){
|
||||
query.is_end = 1;
|
||||
}else{
|
||||
query.is_end = 0;
|
||||
}
|
||||
if(query.card.length <= 0){
|
||||
layer.alert("扫牌失败,请重新扫牌!");
|
||||
return false;
|
||||
}
|
||||
query = JSON.stringify(query);
|
||||
webSocket.send(query);
|
||||
// location.reload();
|
||||
}
|
||||
}else{
|
||||
layer.alert('您的浏览器不支持WebSocket',{icon:2,closeBtn:0});
|
||||
};
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,192 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>模拟扫描端</title>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
起始牌:<input name="start" id="start" value="101"><button id="start_1" onclick="submitResult('start_1')">提交</button><br>
|
||||
<br/>
|
||||
1:<input name="banker_1" id="card1" value="102" ><button id="sub_1" onclick="submitResult('sub_1')">提交</button><br>
|
||||
2:<input name="banker_2" id="card2" value="103"><button id="sub_2" onclick="submitResult('sub_2')">提交</button><br>
|
||||
3:<input name="banker_3" id="card3" value="104"><button id="sub_3" onclick="submitResult('sub_3')">提交</button><br>
|
||||
4:<input name="banker_4" id="card4" value="105"><button id="sub_4" onclick="submitResult('sub_4')">提交</button><br>
|
||||
5:<input name="banker_5" id="card5" value="106"><button id="sub_5" onclick="submitResult('sub_5')">提交</button><br>
|
||||
<br/>
|
||||
6:<input name="player_1" id="card6" value="107"><button id="sub_6" onclick="submitResult('sub_6')">提交</button><br>
|
||||
7:<input name="player_2" id="card7" value="108"><button id="sub_7" onclick="submitResult('sub_7')">提交</button><br>
|
||||
8:<input name="player_1" id="card8" value="109"><button id="sub_8" onclick="submitResult('sub_8')">提交</button><br>
|
||||
9:<input name="player_2" id="card9" value="110"><button id="sub_9" onclick="submitResult('sub_9')">提交</button><br>
|
||||
10:<input name="player_1" id="card10" value="111"><button id="sub_10" onclick="submitResult('sub_10')">提交</button><br>
|
||||
<br/>
|
||||
11:<input name="player_1" id="card11" value="112"><button id="sub_11" onclick="submitResult('sub_11')">提交</button><br>
|
||||
12:<input name="player_2" id="card12" value="113"><button id="sub_12" onclick="submitResult('sub_12')">提交</button><br>
|
||||
13:<input name="player_1" id="card13" value="201"><button id="sub_13" onclick="submitResult('sub_13')">提交</button><br>
|
||||
14:<input name="player_2" id="card14" value="202"><button id="sub_14" onclick="submitResult('sub_14')">提交</button><br>
|
||||
15:<input name="player_1" id="card15" value="203"><button id="sub_15" onclick="submitResult('sub_15')">提交</button><br>
|
||||
<br/>
|
||||
16:<input name="player_1" id="card16" value="204"><button id="sub_16" onclick="submitResult('sub_16')">提交</button><br>
|
||||
17:<input name="player_2" id="card17" value="205"><button id="sub_17" onclick="submitResult('sub_17')">提交</button><br>
|
||||
18:<input name="player_1" id="card18" value="206"><button id="sub_18" onclick="submitResult('sub_18')">提交</button><br>
|
||||
19:<input name="player_2" id="card19" value="207"><button id="sub_19" onclick="submitResult('sub_19')">提交</button><br>
|
||||
20:<input name="player_1" id="card20" value="208"><button id="sub_20" onclick="submitResult('sub_20')">提交</button><br>
|
||||
<br/>
|
||||
是否最后一张牌:<input type="radio" id="endCard_Y" name="endCard">是 <input type="radio" id="endCard_N" name="endCard">否
|
||||
</body>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="is_scavenging" value="{$table.is_scavenging}">
|
||||
<input type="hidden" id="endNumber" value="0">
|
||||
<script>
|
||||
// WebSocket 数据交互
|
||||
if(window.WebSocket){
|
||||
var webSocket = new WebSocket(websocketUrl);
|
||||
webSocket.onerror = function(event){
|
||||
layer.alert('与服务器连接断开,正在重连。。。',{icon:2,closeBtn:0});
|
||||
}
|
||||
webSocket.onopen = function (event) {
|
||||
var userid = $('#userid').val();
|
||||
var account = $('#account').val();
|
||||
var online_token = $('#online_token').val();
|
||||
var table_id = $('#table_id').val();
|
||||
if(parseInt(userid) > 0 && account != '' && online_token != ''){
|
||||
webSocket.send('{"connect":"scan","mode":"onlineLogin","appid":"80001","appsecret":"123456","table_id":"'+table_id+'"}');
|
||||
}else{
|
||||
webSocket.close();
|
||||
layer.alert('与服务器连接断开,正在重连。。。',{icon:2,closeBtn:0});
|
||||
}
|
||||
};
|
||||
|
||||
webSocket.onmessage = function (event) {
|
||||
var data = $.parseJSON(event.data);
|
||||
console.log(data)
|
||||
if(data.sendMode == 'onlineLogin'){
|
||||
if(data.status === true){
|
||||
|
||||
//登录成功
|
||||
setNumberInfo(data); // 设置铺信息
|
||||
}else{
|
||||
//登录失败
|
||||
webSocket.close();
|
||||
layer.alert(data.msg,{icon:2,closeBtn:0});
|
||||
}
|
||||
}else if(data.sendMode == 'sendScanResult'){
|
||||
console.log(data);
|
||||
}
|
||||
};
|
||||
|
||||
// 设置铺信息
|
||||
var setNumberInfo = function(data){
|
||||
$('#number_tab_id').val(data.round.number_tab_id); // 铺ID
|
||||
$('#number_tab_status').val(data.round.number_tab_status.betStatus); // 铺状态
|
||||
$('#boot_num').val(data.round.boot_num);//靴数
|
||||
$('#number').val(data.round.number_tab_number);// 局数
|
||||
};
|
||||
|
||||
// 点击提交结果
|
||||
var submitResult = function(id){
|
||||
var query = new Object();
|
||||
query.connect = "scan";
|
||||
query.mode = "sendScanResult";
|
||||
query.number_tab_id = parseInt($('#number_tab_id').val());
|
||||
query.table_id = parseInt($('#table_id').val());
|
||||
// query.is_start = 0;
|
||||
if(id == 'start_1'){
|
||||
query.card = $('#start').val();
|
||||
query.position = '0';
|
||||
}
|
||||
if(id == "sub_1"){
|
||||
query.card = $('#card1').val();
|
||||
query.position = "1";
|
||||
}else if(id == "sub_2"){
|
||||
query.card = $('#card2').val();
|
||||
query.position = "2";
|
||||
}else if(id == "sub_3"){
|
||||
query.card = $('#card3').val();
|
||||
query.position = "3";
|
||||
}else if(id == "sub_4"){
|
||||
query.card = $('#card4').val();
|
||||
query.position = "4";
|
||||
}else if(id == "sub_5"){
|
||||
query.card = $('#card5').val();
|
||||
query.position = "5";
|
||||
}else if(id == "sub_6"){
|
||||
query.card = $('#card6').val();
|
||||
query.position = "6";
|
||||
}else if(id == "sub_7"){
|
||||
query.card = $('#card7').val();
|
||||
query.position = "7";
|
||||
}else if(id == "sub_8"){
|
||||
query.card = $('#card8').val();
|
||||
query.position = "8";
|
||||
}else if(id == "sub_9"){
|
||||
query.card = $('#card9').val();
|
||||
query.position = "9";
|
||||
}else if(id == "sub_10"){
|
||||
query.card = $('#card10').val();
|
||||
query.position = "10";
|
||||
}else if(id == "sub_11"){
|
||||
query.card = $('#card11').val();
|
||||
query.position = "11";
|
||||
}else if(id == "sub_12"){
|
||||
query.card = $('#card12').val();
|
||||
query.position = "12";
|
||||
}else if(id == "sub_13"){
|
||||
query.card = $('#card13').val();
|
||||
query.position = "13";
|
||||
}else if(id == "sub_14"){
|
||||
query.card = $('#card14').val();
|
||||
query.position = "14";
|
||||
}else if(id == "sub_15"){
|
||||
query.card = $('#card15').val();
|
||||
query.position = "15";
|
||||
}else if(id == "sub_16"){
|
||||
query.card = $('#card16').val();
|
||||
query.position = "16";
|
||||
}else if(id == "sub_17"){
|
||||
query.card = $('#card17').val();
|
||||
query.position = "17";
|
||||
}else if(id == "sub_18"){
|
||||
query.card = $('#card18').val();
|
||||
query.position = "18";
|
||||
}else if(id == "sub_19"){
|
||||
query.card = $('#card19').val();
|
||||
query.position = "19";
|
||||
}else if(id == "sub_20"){
|
||||
query.card = $('#card20').val();
|
||||
query.position = "20";
|
||||
}
|
||||
var endCard_Y = $('#endCard_Y').is(':checked');
|
||||
if(endCard_Y){
|
||||
query.is_end = 1;
|
||||
}else{
|
||||
query.is_end = 0;
|
||||
}
|
||||
console.log(query);
|
||||
if(query.card.length <= 0){
|
||||
layer.alert("扫牌失败,请重新扫牌!");
|
||||
return false;
|
||||
}
|
||||
query = JSON.stringify(query);
|
||||
webSocket.send(query);
|
||||
// location.reload();
|
||||
}
|
||||
}else{
|
||||
layer.alert('您的浏览器不支持WebSocket',{icon:2,closeBtn:0});
|
||||
};
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,160 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>模拟扫描端</title>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="{$Think.CONSOLE_STATIC_DOMAIN}static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
起始牌:<input name="start" id="start" value="101"><button id="start_1" onclick="submitResult('start_1')">提交</button><br>
|
||||
<br/>
|
||||
1:<input name="banker_1" id="card1" value="102" ><button id="sub_1" onclick="submitResult('sub_1')">提交</button><br>
|
||||
2:<input name="banker_2" id="card2" value="103"><button id="sub_2" onclick="submitResult('sub_2')">提交</button><br>
|
||||
3:<input name="banker_3" id="card3" value="104"><button id="sub_3" onclick="submitResult('sub_3')">提交</button><br>
|
||||
<br/>
|
||||
4:<input name="player_1" id="card4" value="107"><button id="sub_4" onclick="submitResult('sub_4')">提交</button><br>
|
||||
5:<input name="player_2" id="card5" value="108"><button id="sub_5" onclick="submitResult('sub_5')">提交</button><br>
|
||||
6:<input name="player_3" id="card6" value="109"><button id="sub_6" onclick="submitResult('sub_6')">提交</button><br>
|
||||
<br/>
|
||||
7:<input name="player_1" id="card7" value="112"><button id="sub_7" onclick="submitResult('sub_7')">提交</button><br>
|
||||
8:<input name="player_2" id="card8" value="113"><button id="sub_8" onclick="submitResult('sub_8')">提交</button><br>
|
||||
9:<input name="player_3" id="card9" value="201"><button id="sub_9" onclick="submitResult('sub_9')">提交</button><br>
|
||||
<br/>
|
||||
10:<input name="player_1" id="card10" value="204"><button id="sub_10" onclick="submitResult('sub_10')">提交</button><br>
|
||||
11:<input name="player_2" id="card11" value="205"><button id="sub_11" onclick="submitResult('sub_11')">提交</button><br>
|
||||
12:<input name="player_3" id="card12" value="206"><button id="sub_12" onclick="submitResult('sub_12')">提交</button><br>
|
||||
<br/>
|
||||
是否最后一张牌:<input type="radio" id="endCard_Y" name="endCard">是 <input type="radio" id="endCard_N" name="endCard">否
|
||||
</body>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="is_scavenging" value="{$table.is_scavenging}">
|
||||
<input type="hidden" id="endNumber" value="0">
|
||||
<script>
|
||||
// WebSocket 数据交互
|
||||
if(window.WebSocket){
|
||||
var webSocket = new WebSocket(websocketUrl);
|
||||
webSocket.onerror = function(event){
|
||||
layer.alert('与服务器连接断开,正在重连。。。',{icon:2,closeBtn:0});
|
||||
}
|
||||
webSocket.onopen = function (event) {
|
||||
var userid = $('#userid').val();
|
||||
var account = $('#account').val();
|
||||
var online_token = $('#online_token').val();
|
||||
var table_id = $('#table_id').val();
|
||||
if(parseInt(userid) > 0 && account != '' && online_token != ''){
|
||||
webSocket.send('{"connect":"scan","mode":"onlineLogin","appid":"80001","appsecret":"123456","table_id":"'+table_id+'"}');
|
||||
}else{
|
||||
webSocket.close();
|
||||
layer.alert('与服务器连接断开,正在重连。。。',{icon:2,closeBtn:0});
|
||||
}
|
||||
};
|
||||
|
||||
webSocket.onmessage = function (event) {
|
||||
var data = $.parseJSON(event.data);
|
||||
console.log(data)
|
||||
if(data.sendMode == 'onlineLogin'){
|
||||
if(data.status === true){
|
||||
|
||||
//登录成功
|
||||
setNumberInfo(data); // 设置铺信息
|
||||
}else{
|
||||
//登录失败
|
||||
webSocket.close();
|
||||
layer.alert(data.msg,{icon:2,closeBtn:0});
|
||||
}
|
||||
}else if(data.sendMode == 'sendScanResult'){
|
||||
console.log(data);
|
||||
}
|
||||
};
|
||||
|
||||
// 设置铺信息
|
||||
var setNumberInfo = function(data){
|
||||
$('#number_tab_id').val(data.round.number_tab_id); // 铺ID
|
||||
$('#number_tab_status').val(data.round.number_tab_status.betStatus); // 铺状态
|
||||
$('#boot_num').val(data.round.boot_num);//靴数
|
||||
$('#number').val(data.round.number_tab_number);// 局数
|
||||
};
|
||||
|
||||
// 点击提交结果
|
||||
var submitResult = function(id){
|
||||
var query = new Object();
|
||||
query.connect = "scan";
|
||||
query.mode = "sendScanResult";
|
||||
query.number_tab_id = parseInt($('#number_tab_id').val());
|
||||
query.table_id = parseInt($('#table_id').val());
|
||||
// query.is_start = 0;
|
||||
if(id == 'start_1'){
|
||||
query.card = $('#start').val();
|
||||
query.position = '0';
|
||||
}
|
||||
if(id == "sub_1"){
|
||||
query.card = $('#card1').val();
|
||||
query.position = "1";
|
||||
}else if(id == "sub_2"){
|
||||
query.card = $('#card2').val();
|
||||
query.position = "2";
|
||||
}else if(id == "sub_3"){
|
||||
query.card = $('#card3').val();
|
||||
query.position = "3";
|
||||
}else if(id == "sub_4"){
|
||||
query.card = $('#card4').val();
|
||||
query.position = "4";
|
||||
}else if(id == "sub_5"){
|
||||
query.card = $('#card5').val();
|
||||
query.position = "5";
|
||||
}else if(id == "sub_6"){
|
||||
query.card = $('#card6').val();
|
||||
query.position = "6";
|
||||
}else if(id == "sub_7"){
|
||||
query.card = $('#card7').val();
|
||||
query.position = "7";
|
||||
}else if(id == "sub_8"){
|
||||
query.card = $('#card8').val();
|
||||
query.position = "8";
|
||||
}else if(id == "sub_9"){
|
||||
query.card = $('#card9').val();
|
||||
query.position = "9";
|
||||
}else if(id == "sub_10"){
|
||||
query.card = $('#card10').val();
|
||||
query.position = "10";
|
||||
}else if(id == "sub_11"){
|
||||
query.card = $('#card11').val();
|
||||
query.position = "11";
|
||||
}else if(id == "sub_12"){
|
||||
query.card = $('#card12').val();
|
||||
query.position = "12";
|
||||
}
|
||||
var endCard_Y = $('#endCard_Y').is(':checked');
|
||||
if(endCard_Y){
|
||||
query.is_end = 1;
|
||||
}else{
|
||||
query.is_end = 0;
|
||||
}
|
||||
console.log(query);
|
||||
if(query.card.length <= 0){
|
||||
layer.alert("扫牌失败,请重新扫牌!");
|
||||
return false;
|
||||
}
|
||||
query = JSON.stringify(query);
|
||||
webSocket.send(query);
|
||||
// location.reload();
|
||||
}
|
||||
}else{
|
||||
layer.alert('您的浏览器不支持WebSocket',{icon:2,closeBtn:0});
|
||||
};
|
||||
</script>
|
||||
</html>
|
||||
@@ -0,0 +1,244 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>总控台</title>
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/reset.css{$Think.VERSION_V}">
|
||||
<link rel="stylesheet" type="text/css" href="/static/console/css/tc.css{$Think.VERSION_V}">
|
||||
<script type="text/javascript">
|
||||
var TableId = "{$table.id}";
|
||||
var websocketUrl="{$websocketUrl}";
|
||||
var ludan = false;
|
||||
var t;
|
||||
var c = "{$table.wait_time}";
|
||||
var lang = {$lang};
|
||||
</script>
|
||||
<style type="text/css">
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<audio id="audio"></audio>
|
||||
<section class="section">
|
||||
<div class="head box-sizing">
|
||||
<div class="logo" style="background: url({$Think.LOGO_PATH}) center center no-repeat;"></div>
|
||||
<div class="box">
|
||||
<div class="list clearfix">
|
||||
<div class="item input-box"><label>臺號</label><input type="text" disabled="true" value={$table.table_name}></div>
|
||||
<div class="item input-box"><label>靴数</label><input id="boot_num" type="text" disabled="true"></div>
|
||||
<div class="item input-box m0"><label>局数</label><input id="number" type="text" disabled="true"></div>
|
||||
<div class="item date">当前时间:<p></p> <span> 周四</span></div>
|
||||
<input type="hidden" id="online_token" value="{$online_token}">
|
||||
<input type="hidden" id="account" value="{$user.username}">
|
||||
<input type="hidden" id="userid" value="{$user.id}">
|
||||
<input type="hidden" id="number_tab_status">
|
||||
<input type="hidden" id="table_id" value="{$table.id}">
|
||||
<input type="hidden" id="number_tab_dt_id" value="">
|
||||
<input type="hidden" id="game_id" value="{$table.game_id}">
|
||||
<input type="hidden" id="boot_id" value="0">
|
||||
<input type="hidden" id="bet_type" value="{$table.bet_type}">
|
||||
</div>
|
||||
<div class="list">
|
||||
<div class="notice">
|
||||
<div class="scroll">
|
||||
<ul class="clearfix">
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
<li>{$memo.content}</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 导航结速-->
|
||||
<div class="footer">
|
||||
<div class="table-data">
|
||||
<ul class="lan-top clearfix">
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>庄</strong>
|
||||
<small>Banker</small>
|
||||
</h3>
|
||||
<p id="result_total_banker">0</p>
|
||||
</li>
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>闲</strong>
|
||||
<small>Player</small>
|
||||
</h3>
|
||||
<p id="result_total_player">0</p>
|
||||
</li>
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>最低限红</strong>
|
||||
<small>LowLimit</small>
|
||||
</h3>
|
||||
<p>{$scene_limit_money[0]}</p>
|
||||
</li>
|
||||
<li style="width:25%;">
|
||||
<h3 class="title">
|
||||
<strong>最高限红</strong>
|
||||
<small>HighLimit</small>
|
||||
</h3>
|
||||
<p>{$scene_limit_money[1]}</p>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="canvas-box small" style="overflow: hidden;">
|
||||
<canvas id="canvas1"></canvas>
|
||||
<div class="countdown">
|
||||
<div class="num">0</div>
|
||||
<div class="inner">
|
||||
<div class="spiner"></div>
|
||||
<div class="filler"></div>
|
||||
<div class="masker"></div>
|
||||
</div>
|
||||
<div class="inner2">
|
||||
<div class="spiner"></div>
|
||||
<div class="filler"></div>
|
||||
<div class="masker"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</section>
|
||||
<section class="control-box noselect">
|
||||
<div class="slide-btn">《</div>
|
||||
<div class="btn-box1">
|
||||
<span class="green_bg" id="start_bet" onclick="startBet()">接收下注</span>
|
||||
<span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span>
|
||||
</div>
|
||||
<div class="btn-box4">
|
||||
<span onclick="inCheckout()">开始洗牌</span>
|
||||
<span onclick="changeBoot()">换靴</span>
|
||||
<span onclick="resetBoot()">日结算</span>
|
||||
<span onclick="window.location.href='/login/logout'">退出</span>
|
||||
</div>
|
||||
</section>
|
||||
<section class="begincard">
|
||||
<div class="box">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list position-card" style=" margin:0px 30px;">
|
||||
<div class="card xuanzhuan">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="word">定位</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box1">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list banker-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="banker">庄</div>
|
||||
<div class="banker_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box2">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list player-1-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="player">闲1</div>
|
||||
<div class="player_1_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box3">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list player-2-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="player">闲2</div>
|
||||
<div class="player_2_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box4">
|
||||
<div class="result-box" id="openingElement" style="display:none;"><img id="openingPng" src="" /></div>
|
||||
<div class="list player-3-card">
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="face"></div>
|
||||
</div>
|
||||
<div style='position:relative;width:0;height:0' >
|
||||
<div class="player">闲3</div>
|
||||
<div class="player_3_result"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<div id="fade" class="black_overlay"></div>
|
||||
<div class="iframe-box" style="display: none;">
|
||||
<h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
|
||||
<iframe src="" frameborder="0" id="print_iframe"></iframe>
|
||||
</div>
|
||||
<div class="update-ludan" id="update_ludan">
|
||||
<div class="update-ludan-title">修改上一局结果</div>
|
||||
<div class="update-ludan-content">
|
||||
选择结果:
|
||||
<select id="update_ludan_result">
|
||||
<option value="">请选择</option>
|
||||
<option value="1-1">庄-平倍</option>
|
||||
<option value="1-2">庄-翻2倍</option>
|
||||
<option value="1-3">庄-翻3倍</option>
|
||||
<option value="1-4">庄-翻4倍</option>
|
||||
<option value="1-5">庄-翻5倍</option>
|
||||
<option value="2-1">闲-平倍</option>
|
||||
<option value="2-2">闲-翻2倍</option>
|
||||
<option value="2-3">闲-翻3倍</option>
|
||||
<option value="2-4">闲-翻4倍</option>
|
||||
<option value="2-5">闲-翻5倍</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="update-ludan-footer">
|
||||
<a id="confirm_update_ludan">确定</a>
|
||||
<a id="cancel_update_ludan">取消</a>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="/static/console/js/jquery-2.1.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/online/layer-v3.1.1/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/console/js/new_index_tc.js{$Think.VERSION_V}"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user