| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- $.ajaxSetup({
- headers: {
- 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
- }
- });
- function type(url,data) {
- // var header = [];
- //
- // switch (kind) {
- // case 1:
- // header = [ //表头
- // //{checkbox: true, fixed: 'left'},
- // {field: 'name', title: '游戏', width: 100}
- // , {field: 'closeinfo', title: '关闭原因', width: 500, edit: 'text'}
- // , {field: 'LAY_CHECKED', title: '是否关闭', width: 130, templet: '#switchTpl', unresize: true}
- // ]
- // break;
- // case 2:
- // header = [ //表头
- // // {checkbox: true, fixed: 'left'},
- // {field: 'id', title: 'ID', width: 140, sort: true, fixed: 'left'}
- // , {field: 'order_id', title: '订单号', width: 250, sort: true, fixed: 'left'}
- // , {field: 'game_name', title: '游戏', width: 100}
- // , {field: 'game_no', title: '期数', width: 200, sort: true}
- // , {field: 'money', title: '下注金额', width: 120, sort: true}
- // , {field: 'prize_money', title: '赢取金额', width: 120, sort: true}
- // , {field: 'get_money', title: '输赢结果', width: 120, sort: true}
- // , {field: 'money_time', title: '开奖时间', width: 200}
- // , {field: 'account_name', title: '投注账号', width: 100}
- // , {field: 'settle_status', title: '状态', templet: '#sexTpl', width: 100}
- // , {fixed: 'right', title: '查看', width: 100, align: 'center', toolbar: '#barDemo'}
- // ]
- // break;
- // case 3:
- // header = [ //表头
- // // {checkbox: true, fixed: 'left'},
- // {field: 'info_identity', title: '游戏', width: 100}
- // , {field: 'info_no', title: '期数', width: 200, sort: true}
- // , {field: 'open_time', title: '期数', width: 200, sort: true}
- // , {field: 'status', title: '赢取金额', templet: '#sexTpl', width: 120, sort: true}
- // , {fixed: 'right', title: '查看', width: 100, align: 'center', toolbar: '#barDemo'}
- // ]
- // break;
- // }
- var returnData = []
- $.ajax({
- type: 'get',
- url: url,
- data: data,
- async: false,
- dataType: 'json',
- success: function (json) {
- returnData = json;
- },
- error: function (req) {
- }
- });
- return returnData;
- }
- function getData(url, data) {
- var returnData = []
- $.ajax({
- type: 'get',
- url: url,
- data: data,
- async: false,
- dataType: 'json',
- success: function (json) {
- returnData = json;
- },
- error: function (req) {
- }
- });
- return returnData;
- };
|