@extends('vip.layouts') @section('seo_title') {{ trans('menu.prizeRecord') }} @endsection @section('content') @push('dataTableJS') //获取树形菜单 var menu = []; $.ajax({ type: 'get', url: '/admin/game/GameList', data: {}, dataType: 'json', async: false, success: function (json) { menu = json; } }); //获取表头 var tit=function (game){ var header=[]; $.ajax({ type: 'post', url: '/admin/game/open?data=1&game='+ game, data: {}, dataType: 'json', async: false, success: function (json) { header=json.data.dataCols } }); return header; } //layui.tree({ //elem: '#tree' //传入元素选择器 //, click: function (item) { //点击节点回调 ////layer.msg('当前节名称:' + item.id); // //// 加载中... //var loadIndex = layer.load(2, {shade: false}); // ////tit(item.gameCode); //// 刷新表格 //tableIns.reload({ // where: { // game: item.gameCode // }, // page: { // curr: 1 //重新从第 1 页开始 // }, // cols:tit(item.gameCode) //}) // ////window.location='/admin/game/open?data=1&game='+ item.gameCode // // //// 关闭加载 //layer.close(loadIndex); // //} //, nodes: menu.data //}); //重置表单 $('.reset').on('click',function(){ $('input').val(''); $('#trade_type').val(''); // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; }); var height = document.documentElement.clientHeight; $('.menu').css({height: (height-30)}); $(document).on('click','.addTo',function(){ var gameName=$(this).attr('game'); openWin('/admin/game/add?game='+gameName) }); $('body').delegate('.layui-table-body [data-field="open_time"]','mouseover',function(){ $(this).css('cursor','pointer'); }); $('body').delegate('.layui-table-body [data-field="open_time"] input','mouseout',function(){ var val = $(this).val(); $(this).parent().text(val); $(this).remove(); }); /*$('body').delegate('.layui-table-body [data-field="open_time"]','click',function(e){ var no = $(this).prev('td').text(); var game_name = $('.addTo').attr('game'); var time = $(this).text(); var str = ''; var _this = $(this); //获取游戏开奖状态 $.ajax({ type: 'post', url: '/admin/game/getGameStatus', data: {info_no:no,name:game_name}, async: false, success: function (data) { if(data.status == 2) { layer.msg('本期游戏已开奖,不能修改开奖时间'); }else{ _this.find('div').empty(); _this.find('div').append(str); laydate.render({ elem: '.open_time_'+ no ,type: 'datetime' ,done: function(value){ $('.open_time_'+no).val(value); $.ajax({ type: 'post', url: '/admin/game/updateGameOpenTime', data: {open_time:value,info_no:no,name:game_name}, async: false, success: function (data) { if(data==1) { layer.msg('修改成功'); _this.find('div').empty(); _this.find('div').text(value); }else{ layer.msg('修改失败'); } } }); } }); } } }); });*/ @endpush
@if(checkRriv('/admin/game/add'))@endif
提交 重置 @if(checkRriv('/admin/game/checkok')) {{trans('gamemenu.checkok_no')}} {{trans('gamemenu.checkok_status')}} @endif
@include('game.'.$game)
@endsection