游戏管理->混服管理 游戏管理->分成比例

master
chenxiaojun 5 years ago
commit 3a9afae16e

@ -1074,7 +1074,7 @@
uploaderImg.on( 'fileQueued', function( file ) { uploaderImg.on( 'fileQueued', function( file ) {
var html = ''; var html = '';
html += '<div id="' + file.id + '" class="item" style="margin-right: 10px;">'; html += '<div id="' + file.id + '" class="item" style="margin-right: 10px;">';
html += '<a href=""><img src="" style="width: 100px;height: 100px;"></a>'; html += '<a href="javascript:;"><img src="" style="width: 100px;height: 100px;"></a>';
html += '<h4 class="info">' + file.name + '</h4>'; html += '<h4 class="info">' + file.name + '</h4>';
html += '<p class="state">等待上传...</p>'; html += '<p class="state">等待上传...</p>';
html += '</div>'; html += '</div>';
@ -1129,13 +1129,6 @@
return false; return false;
}); });
if(!response.chunk){
var url = response.path + "/" +response.name;
// $("#file_name").val(response.name);
$("#file_url").val(url);
// $("#file_size").val(response.size);
}
//alert($("#file_name").val()+";"+$("#file_url").val()+";"+$("#file_size").val())
}); });
uploaderImg.on('uploadError', function(file) { uploaderImg.on('uploadError', function(file) {

@ -1145,7 +1145,7 @@
imgListData.push(<?=$value?>); imgListData.push(<?=$value?>);
html += '<div id="' + <?=$value?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">'; html += '<div id="' + <?=$value?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">';
html += '<a href=""><img src="<?=get_cover($value,"path")?>" style="width: 100px;height: 100px;"></a>'; html += '<a href="javascript:;"><img src="<?=get_cover($value,"path")?>" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info" style="text-align: center;">'; html += '<h4 class="info" style="text-align: center;">';
html += '<a href="javascript:;" class="jsdelzip table_click" style="float:none;display:inline-block;" img-id="' + <?=$value?> + '">删除</a>'; html += '<a href="javascript:;" class="jsdelzip table_click" style="float:none;display:inline-block;" img-id="' + <?=$value?> + '">删除</a>';
html += '</h4>'; html += '</h4>';
@ -1163,6 +1163,7 @@
$.each(imgListData,function(index, item) { $.each(imgListData,function(index, item) {
if (thisId == item) { if (thisId == item) {
imgListData.splice(index,1); imgListData.splice(index,1);
return false;
} }
}); });
@ -1176,7 +1177,7 @@
uploaderImg.on( 'fileQueued', function( file ) { uploaderImg.on( 'fileQueued', function( file ) {
var html = ''; var html = '';
html += '<div id="' + file.id + '" class="item" style="margin-right: 10px;">'; html += '<div id="' + file.id + '" class="item" style="margin-right: 10px;">';
html += '<a href=""><img src="" style="width: 100px;height: 100px;"></a>'; html += '<a href="javascript:;"><img src="" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info">' + file.name + '</h4>'; html += '<h4 class="info">' + file.name + '</h4>';
html += '<p class="state">等待上传...</p>'; html += '<p class="state">等待上传...</p>';
html += '</div>'; html += '</div>';
@ -1225,6 +1226,7 @@
$.each(imgListData,function(index, item) { $.each(imgListData,function(index, item) {
if (response.id == item) { if (response.id == item) {
imgListData.splice(index,1); imgListData.splice(index,1);
return false;
} }
}); });
setFlooringPageImgsVal(); setFlooringPageImgsVal();
@ -1232,13 +1234,6 @@
return false; return false;
}); });
if(!response.chunk){
var url = response.path + "/" +response.name;
// $("#file_name").val(response.name);
$("#file_url").val(url);
// $("#file_size").val(response.size);
}
//alert($("#file_name").val()+";"+$("#file_url").val()+";"+$("#file_size").val())
}); });
uploaderImg.on('uploadError', function(file) { uploaderImg.on('uploadError', function(file) {

@ -17,6 +17,9 @@ class ApplyService {
$ids = [$promoteId]; $ids = [$promoteId];
$list = M('promote', 'tab_')->field('id')->where('parent_id=' . $promoteId . ' or grand_id=' . $promoteId)->select(); $list = M('promote', 'tab_')->field('id')->where('parent_id=' . $promoteId . ' or grand_id=' . $promoteId)->select();
$ids = array_merge($ids, array_column($list, 'id')); $ids = array_merge($ids, array_column($list, 'id'));
M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $ids]])->delete();
$save['offline_status'] = 1;
M('apply', 'tab_')->where(['game_id' => $gameId, 'promote_id' => ['in', $ids]])->save($save);
} }
} }

@ -49,8 +49,18 @@ class ApplyController extends BaseController
$this->display($model['tem_list']); $this->display($model['tem_list']);
} }
public function gameSpecialList()
{
$this->index(1);
}
public function gameList()
{
$this->index(2);
}
//首页 $type-查询的游戏平台类型 0-全部 10-安卓+ios 2-ios 1-安卓 //首页 $type-查询的游戏平台类型 0-全部 10-安卓+ios 2-ios 1-安卓
public function index($p = 0, $type = 0) public function index($serverType = 1)
{ {
$promoteId = empty(I('promote_id')) ? PID : I('promote_id');//搜索的渠道ID $promoteId = empty(I('promote_id')) ? PID : I('promote_id');//搜索的渠道ID
$promoteRole = empty(I('promote_role')) ? 1 : I('promote_role');//渠道角色 $promoteRole = empty(I('promote_role')) ? 1 : I('promote_role');//渠道角色
@ -65,6 +75,7 @@ class ApplyController extends BaseController
$map['tab_game.online_status'] = 1;//开发者游戏上线状态 $map['tab_game.online_status'] = 1;//开发者游戏上线状态
$map['tab_game.down_port'] = 1;//游戏端口 第三方接口不能申请 $map['tab_game.down_port'] = 1;//游戏端口 第三方接口不能申请
$map['tab_game.game_status'] = 1;//游戏状态 $map['tab_game.game_status'] = 1;//游戏状态
$map['tab_game.server_type'] = $serverType;//专服游戏
if (!empty(I('game_id'))) { if (!empty(I('game_id'))) {
$thisRelationGameName = M('Game', 'tab_')->where(array('id' => I('game_id')))->getField('relation_game_name'); $thisRelationGameName = M('Game', 'tab_')->where(array('id' => I('game_id')))->getField('relation_game_name');
@ -72,6 +83,7 @@ class ApplyController extends BaseController
$map['tab_game.relation_game_name'] = ['like', $thisRelationGameName]; $map['tab_game.relation_game_name'] = ['like', $thisRelationGameName];
} }
$type = I('get.type', 0);
$group = ''; $group = '';
switch ($type) { switch ($type) {
case 1: case 1:
@ -114,7 +126,7 @@ class ApplyController extends BaseController
break; break;
} }
$page = intval($p); $page = intval(I('get.p', 0));
$page = $page ? $page : 1; //默认显示第一页数据 $page = $page ? $page : 1; //默认显示第一页数据
if (isset($_REQUEST['row'])) { if (isset($_REQUEST['row'])) {
@ -180,10 +192,12 @@ class ApplyController extends BaseController
$this->assign('promoteData', getAllPromoteListByType($promoteRole)); $this->assign('promoteData', getAllPromoteListByType($promoteRole));
// $this->assign('addPermission', $addPermission); // $this->assign('addPermission', $addPermission);
$this->assign('type', $type); $this->assign('type', $type);
$this->assign('myGame', ($serverType == 1) ? 'specialMyGameList' : 'myGameList');
$this->assign('game', ($serverType == 1) ? 'gameSpecialList' : 'gameList');
$this->meta_title = "申请游戏"; $this->meta_title = "申请游戏";
$this->display(); $this->display('index');
} }
//查看游戏详情 //查看游戏详情
@ -471,8 +485,17 @@ class ApplyController extends BaseController
} }
public function specialMyGameList()
{
$this->my_game(1);
}
public function myGameList()
{
$this->my_game(2);
}
public function my_game($type = -1, $p = 0) public function my_game($serverType = 1)
{ {
//渠道可申请游戏 //渠道可申请游戏
if (empty($_REQUEST['promote_id'])) { if (empty($_REQUEST['promote_id'])) {
@ -493,6 +516,7 @@ class ApplyController extends BaseController
} }
$map['tab_apply.promote_id'] = $promoteId; $map['tab_apply.promote_id'] = $promoteId;
$map['tab_game.server_type'] = $serverType;//游戏服务器类型
if ($_REQUEST['game_id'] != null) { if ($_REQUEST['game_id'] != null) {
$relationGameName = M('Game', 'tab_')->where(array('id' => $_REQUEST['game_id']))->getField('relation_game_name'); $relationGameName = M('Game', 'tab_')->where(array('id' => $_REQUEST['game_id']))->getField('relation_game_name');
@ -508,7 +532,7 @@ class ApplyController extends BaseController
// $map['tab_apply.status'] = 1; // $map['tab_apply.status'] = 1;
// $map['tab_game.game_status'] = 1;//游戏状态 // $map['tab_game.game_status'] = 1;//游戏状态
// empty(I('sdk_version')) || $map['tab_game.sdk_version'] = I('sdk_version'); // empty(I('sdk_version')) || $map['tab_game.sdk_version'] = I('sdk_version');
$page = intval($p); $page = intval(I('get.p', 0));
$page = $page ? $page : 1; //默认显示第一页数据 $page = $page ? $page : 1; //默认显示第一页数据
if (isset($_REQUEST['row'])) { if (isset($_REQUEST['row'])) {
@ -561,7 +585,6 @@ class ApplyController extends BaseController
$this->assign("url", $url); $this->assign("url", $url);
$this->assign("count", $count); $this->assign("count", $count);
$this->assign("row", $row); $this->assign("row", $row);
$this->assign('model', $model);
$this->assign('promoteId', $promoteId); $this->assign('promoteId', $promoteId);
$this->assign('thisParentPromoteId', getParentPromoteId(PID)); $this->assign('thisParentPromoteId', getParentPromoteId(PID));
$this->assign('parentPromoteId', getParentPromoteId($promoteId)); $this->assign('parentPromoteId', getParentPromoteId($promoteId));
@ -569,8 +592,11 @@ class ApplyController extends BaseController
$this->assign('promoteRole', $promoteRole); $this->assign('promoteRole', $promoteRole);
$this->assign('promoteData', getAllPromoteListByType($promoteRole)); $this->assign('promoteData', getAllPromoteListByType($promoteRole));
$this->assign('list_data', $data); $this->assign('list_data', $data);
$this->assign('serverType', $serverType);
$this->assign('myGame', ($serverType == 1) ? 'specialMyGameList' : 'myGameList');
$this->assign('game', ($serverType == 1) ? 'gameSpecialList' : 'gameList');
$this->meta_title = "我的游戏"; $this->meta_title = "我的游戏";
$this->display(); $this->display('my_game');
} }

@ -0,0 +1,106 @@
<?php
namespace Home\Controller;
use Admin\Model\PromoteModel;
use Think\Controller;
use User\Api\PromoteApi;
/**
* 游戏分成比例控制器
*/
class GameDivideController extends BaseController
{
//首页
public function index()
{
$parentId = getParentPromoteId(PID);
if ($parentId > 0) {
$this->error('权限异常');
}
$securityCode = empty(session('game_divide_second_pwd')) ? '' : session('game_divide_second_pwd');
$model = new PromoteApi();
$res = $model->verify_er_User(PID, $securityCode);
if (!empty($securityCode) && $res) {
$map['tab_game.online_status'] = 1;//开发者游戏上线状态
$map['tab_game.down_port'] = 1;//游戏端口 第三方接口不能申请
$map['tab_game.game_status'] = 1;//游戏状态
empty(I('relation_game_id')) || $map['relation_game_id'] = I('relation_game_id');
empty(I('sdk_version')) || $map['sdk_version'] = I('sdk_version');
empty(I('server_type')) || $map['server_type'] = I('server_type');
$minRatio = floatval(I('min_ratio', 0));
$maxRatio = floatval(I('max_ratio', 0));
if (!empty($minRatio) && empty($maxRatio)) {
$map['ratio'] = ['egt', $minRatio];
} elseif (empty($minRatio) && !empty($maxRatio)) {
$map['ratio'] = ['elt', $maxRatio];
} elseif (!empty($minRatio) && !empty($maxRatio)) {
$map['ratio'] = ['between', [$minRatio, $maxRatio]];
}
$page = intval(I('get.p', 0));
$page = $page ? $page : 1; //默认显示第一页数据
if (isset($_REQUEST['row'])) {
$row = $_REQUEST['row'];
} else {
$row = 10;
}
$data = M('Game', 'tab_')
->field('id,icon,game_name,game_type_name,sdk_version,server_type,discount,ratio')
->where($map)
->order('sort desc')
->page($page, $row)
->select();
$count = M('Game', 'tab_')
->where($map)
->count();
//分页
$parameter['p'] = I('get.p', 1);
$parameter['row'] = I('get.row');
empty(I('relation_game_id')) || $parameter['relation_game_id'] = I('relation_game_id');
empty(I('sdk_version')) || $parameter['sdk_version'] = I('sdk_version');
empty(I('server_type')) || $parameter['server_type'] = I('server_type');
empty($minRatio) || $parameter['min_ratio'] = $minRatio;
empty($maxRatio) || $parameter['max_ratio'] = $maxRatio;
$page = set_pagination($count, $row, $parameter);
if ($page) {
$this->assign('_page', $page);
}
$this->assign('dataList', $data);
$this->assign('count', $count);
$this->assign('serverType', I('server_type', 0));
}
$this->meta_title = "分成比例";
$this->display();
}
public function verifyPassword()
{
$password = I('post.password');
$model = new PromoteApi();
$res = $model->verify_er_User(PID, $password);
if ($res) {
session('game_divide_second_pwd', $password);
$data['status'] = 1;
$data['msg'] = '验证成功';
$this->ajaxReturn($data);
} else {
$data['status'] = 0;
$data['msg'] = '安全密码不正确';
$this->ajaxReturn($data);
}
}
}

@ -90,6 +90,7 @@ class PromoteCoinController extends BaseController
$this->assign('data', $data); $this->assign('data', $data);
$this->assign('count', $count); $this->assign('count', $count);
$this->meta_title = '我的平台币';
$this->display(); $this->display();
} }
@ -198,6 +199,7 @@ class PromoteCoinController extends BaseController
$this->assign('count', $count); $this->assign('count', $count);
$this->assign('gameId', I('get.game_id')); $this->assign('gameId', I('get.game_id'));
$this->assign('setDate', date("Y-m-d")); $this->assign('setDate', date("Y-m-d"));
$this->meta_title = '交易明细';
$this->display(); $this->display();
} }
@ -258,6 +260,7 @@ class PromoteCoinController extends BaseController
} }
$this->assign('data', $data); $this->assign('data', $data);
$this->meta_title = '查看明细';
$this->display(); $this->display();
} }

@ -118,37 +118,31 @@
<eq name="type" value="0"> <eq name="type" value="0">
<a href="javascript:;" class="current">全部游戏</a> <a href="javascript:;" class="current">全部游戏</a>
<else/> <else/>
<a href="{:U('index')}" class="">全部游戏</a> <a href="{:U($game)}" class="">全部游戏</a>
</eq> </eq>
<eq name="type" value="10"> <eq name="type" value="10">
<a href="javascript:;" class="current">Android+ios游戏</a> <a href="javascript:;" class="current">Android+ios游戏</a>
<else/> <else/>
<a href="{:U('index', array('type' => 10))}" class="">Android+ios游戏</a> <a href="{:U($game, array('type' => 10))}" class="">Android+ios游戏</a>
</eq> </eq>
<eq name="type" value="2"> <eq name="type" value="2">
<a href="javascript:;" class="current">IOS游戏</a> <a href="javascript:;" class="current">IOS游戏</a>
<else/> <else/>
<a href="{:U('index', array('type' => 2))}" class="">IOS游戏</a> <a href="{:U($game, array('type' => 2))}" class="">IOS游戏</a>
</eq> </eq>
<eq name="type" value="1"> <eq name="type" value="1">
<a href="javascript:;" class="current">Android游戏</a> <a href="javascript:;" class="current">Android游戏</a>
<else/> <else/>
<a href="{:U('index', array('type' => 1))}" class="">Android游戏</a> <a href="{:U($game, array('type' => 1))}" class="">Android游戏</a>
</eq> </eq>
<a href="{:U('my_game')}" class="">我的游戏</a> <a href="{:U($myGame)}" class="">我的游戏</a>
</div> </div>
<div class="tab marg_top20" style="clear:both;display: flex;"> <div class="tab marg_top20" style="clear:both;display: flex;">
<!-- <if condition="C('LAUNCH_SWITCH') eq 1">-->
<!-- <a href="#" class="btn_calc" id="batch_application" style="color:#fff;border: 1px solid #3A97FF;">批量申请</a>-->
<!-- <else/>-->
<!-- <a href="#" class="examine_a examine_aon" id="gapply" style="color:#fff;border: 1px solid #3A97FF;background: #3A97FF;">批量申请</a>-->
<!-- </if>-->
<div style="display: flex;"> <div style="display: flex;">
<if condition="$promoteRole eq 1"> <if condition="$promoteRole eq 1">
<div class="btn btn-role highlight" promote-role="1"> <div class="btn btn-role highlight" promote-role="1">
@ -186,7 +180,7 @@
</div> </div>
</div> </div>
<form action="{:U('index',array('row'=>I('get.row'),'type'=>$type))}" method="post" enctype="multipart/form-data" <form action="{:U($game,array('row'=>I('get.row'),'type'=>$type))}" method="post" enctype="multipart/form-data"
class="marg_top20"> class="marg_top20">
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询"> <input type="submit" class="submit" value="查询">
@ -434,7 +428,7 @@
thisElement.addClass('highlight'); thisElement.addClass('highlight');
if (promoteRole == 1) { if (promoteRole == 1) {
location.href = "{:U('index', array('type' => $type))}"; location.href = "{:U($game, array('type' => $type))}";
} else { } else {
getPromoteListByRole(promoteRole); getPromoteListByRole(promoteRole);
} }
@ -640,7 +634,7 @@
success: function (res) { success: function (res) {
if (res.status) { if (res.status) {
$(obj).attr("onclick", "").html("<span style='color:#26C7DB'>申请成功</span>").addClass("proc wait"); $(obj).attr("onclick", "").html("<span style='color:#26C7DB'>申请成功</span>").addClass("proc wait");
location.href = "{:U('index')}"; location.href = "{:U($game)}";
} else { } else {
layer.msg(res.msg, {icon: 2}); layer.msg(res.msg, {icon: 2});
} }
@ -800,7 +794,7 @@
} }
//导航高亮 //导航高亮
highlight_subnav('{:U("Apply / index")}'); highlight_subnav('{:U("Apply/".$game)}');
//查看游戏详情 //查看游戏详情
function viewGameDetailed(id) { function viewGameDetailed(id) {

@ -99,10 +99,10 @@
<div class="trunk-content article"> <div class="trunk-content article">
<div class="trunk-search clearfix"> <div class="trunk-search clearfix">
<div class="tab"> <div class="tab">
<a href="{:U('index')}" class="">全部游戏</a> <a href="{:U($game)}" class="">全部游戏</a>
<a href="{:U('index', array('type' => 10))}" class="">Android+ios游戏</a> <a href="{:U($game, array('type' => 10))}" class="">Android+ios游戏</a>
<a href="{:U('index', array('type' => 2))}" class="">IOS游戏</a> <a href="{:U($game, array('type' => 2))}" class="">IOS游戏</a>
<a href="{:U('index', array('type' => 1))}" class="">Android游戏</a> <a href="{:U($game, array('type' => 1))}" class="">Android游戏</a>
<a href="javascript:;" class="current">我的游戏</a> <a href="javascript:;" class="current">我的游戏</a>
<!-- <a href="javascript:void(0);" title="集成推广多款游戏,生成游戏大全推广页" style="background:#ffffff;width:68px;height:68px; position:relative" onmouseover="this.style.background='#E3E5E4'" onmouseout="this.style.background='#ffffff'" class="spread"><img src="/Public/Home/images/generalization.png" /> <!-- <a href="javascript:void(0);" title="集成推广多款游戏,生成游戏大全推广页" style="background:#ffffff;width:68px;height:68px; position:relative" onmouseover="this.style.background='#E3E5E4'" onmouseout="this.style.background='#ffffff'" class="spread"><img src="/Public/Home/images/generalization.png" />
<img src="/Public/Home/images/hot.png" style="width: 20px; <img src="/Public/Home/images/hot.png" style="width: 20px;
@ -156,7 +156,7 @@
<!-- <a class="btn_calc" href="javascript:;">审核通过</a>--> <!-- <a class="btn_calc" href="javascript:;">审核通过</a>-->
<!-- <a class="btn_calc examine_a" href="{:U('my_game_ch')}">审核中</a>--> <!-- <a class="btn_calc examine_a" href="{:U('my_game_ch')}">审核中</a>-->
<!-- </div>--> <!-- </div>-->
<form class="marg_top20" action="{:U('my_game',array('row'=>I('get.row')))}" method="post" <form class="marg_top20" action="{:U($myGame,array('row'=>I('get.row')))}" method="post"
enctype="multipart/form-data"> enctype="multipart/form-data">
<div class="form-group normal_space fr"> <div class="form-group normal_space fr">
<input type="submit" class="submit zwm_submit" value="查询"> <input type="submit" class="submit zwm_submit" value="查询">
@ -488,7 +488,7 @@
<script src="__STATIC__/layer/layer.js"></script> <script src="__STATIC__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script> <script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
highlight_subnav("{:U('Apply/index')}"); highlight_subnav("{:U('Apply/'.$game)}");
setValue('type', {$Think.request.type |default = '""'}); setValue('type', {$Think.request.type |default = '""'});
setValue('sdk_version', {$Think.request.sdk_version |default = '""'}); setValue('sdk_version', {$Think.request.sdk_version |default = '""'});
setValue('promote_id', {$Think.request.promote_id |default = '""'}); setValue('promote_id', {$Think.request.promote_id |default = '""'});
@ -522,7 +522,7 @@
thisElement.addClass('highlight'); thisElement.addClass('highlight');
if (promoteRole == 1) { if (promoteRole == 1) {
location.href = "{:U('my_game')}"; location.href = "{:U($myGame)}";
} else { } else {
getPromoteListByRole(promoteRole); getPromoteListByRole(promoteRole);
} }

@ -0,0 +1,315 @@
<extend name="Public/promote_base"/>
<block name="css">
<link rel="stylesheet" href="__CSS__/20170831/select2.min.css" type="text/css"/>
<link href="__CSS__/20180207/data.css" rel="stylesheet">
<link href="__CSS__/20180207/game.css" rel="stylesheet">
<link href="__CSS__/20180207/finance.css" rel="stylesheet">
<link href="__CSS__/game_detailed.css" rel="stylesheet">
<link href="__CSS__/detailed.css?v=1.1" rel="stylesheet">
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
<style type="text/css">
.trunk-list {
position: relative;
min-height: 66vh;
}
.pagenation {
text-align: center;
line-height: 5vh;
}
.lwx_dialog_prompt .layui-layer-content {
padding-top: 15px;
}
.lwx_dialog_title {
margin: 0;
padding: 0;
}
.launch_platform_prompt .layui-layer-input, .lwx_dialog_input, .lwx_dialog_select, .lwx_dialog_textarea {
display: block;
width: 220px;
height: 32px;
margin: 0 auto;
line-height: 32px;
padding: 0 5px;
border: 1px solid #ccc;
box-shadow: 1px 1px 5px rgba(0, 0, 0, .1) inset;
color: #333;
}
.lwx_dialog_select {
width: 272px;
}
.lwx_dialog_textarea {
height: 64px;
width: 260px;
margin-top: 10px;
resize: none;
}
.lwx_dialog_input {
width: 260px;
margin-top: 10px;
}
.launch_platform_prompt .layui-layer-btn, .lwx_dialog_prompt .layui-layer-btn {
text-align: center;
padding-bottom: 25px;
}
.launch_platform_prompt .layui-layer-btn .layui-layer-btn0, .lwx_dialog_prompt .layui-layer-btn .layui-layer-btn0 {
width: 81%;
line-height: 32px;
height: 32px;
margin: 0;
}
.lwx_dialog_notice {
position: absolute;
bottom: 6px;
left: 20px;
font-size: 12px;
color: #999;
}
.lwx_dialog_prompt .select2-container, .select2-container--default .select2-selection--single {
width: 272px !important;
}
.applycbtn {
display: block;
color: #50B370;
}
textarea {
font-family: inherit;
}
.trunk-content {
margin: 0 2%;
}
.pic-prev:hover, .pic-next:hover {
background-color: #4ac5c3;
}
.add-disable {
color: #999;
}
.input-number {
width: 80px;
text-align: center;
}
.input-security {
width: 500px;
height: 2.5rem;
padding-left: 10px;
border-radius: 5px;
border: 0;
}
.btn-security {
width: 300px;
height: 2.4rem;
border: 0;
border-radius: 5px;
background-color: #358fe4;
color: #fff;
}
.btn-security-close {
width: 300px;
height: 2.4rem;
border: 0;
border-radius: 5px;
background-color: #fff;
color: #999;
}
</style>
</block>
<block name="body">
<div class="page-list normal_list apply-index-list">
<div class="trunk-title">
<div class="location">
<div class="location-container">当前位置:<span>游戏管理></span><span>分成比例</span></div>
</div>
<if condition="isset($dataList)">
<img src="__IMG__/20180207/icon_normal_game.png"><span class="title_main">分成比例</span>
<else/>
<span class="title_main">安全密码</span>
</if>
</div>
<div class="trunk-content article">
<if condition="isset($dataList)">
<div class="trunk-search clearfix">
<div class="tab marg_top20" style="clear:both;display: flex;"></div>
<form action="{:U('index',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data"
class="marg_top20" style="float: left;">
<div class="form-group normal_space fl">
<select id="relation_game_id" name="relation_game_id" class="reselect select_gallery" style="min-width:200px;width: 175px;">
<option value="">请选择游戏</option>
<volist name=":get_promote_serach_game()" id="vo">
<option value="{$vo.relation_game_id}" title="{$vo.relation_game_name}">{$vo.relation_game_name}</option>
</volist>
</select>
</div>
<div class="form-group normal_space fl">
<select id="sdk_version" name="sdk_version" class="reselect select_gallery" style="width:215px;">
<option value="0">请选择设备类型</option>
<volist name=":getSDKType()" id="vo" key="k">
<option value="{$k}">{$vo}</option>
</volist>
</select>
</div>
<div class="form-group normal_space fl">
<label class="form-title select-title" style="position: relative;">分成比例:</label>
<div class="select-time">
<input type="text" id="min_ratio" class="txt input-number" name="min_ratio" placeholder="" value="{:I('min_ratio')}">
</div>
<label class="form-title select-title zhi_color">&nbsp;&nbsp;</label>
<div class="select-time">
<input type="text" id="max_ratio" class="txt input-number" name="max_ratio" placeholder="" value="{:I('max_ratio')}">
</div>
</div>
<div class="form-group normal_space fl">
<div style="display: flex;">
<div class="btn btn-role <if condition='$serverType eq 0'>highlight</if>" server-type="0">
<p>全部</p>
</div>
<div class="btn btn-role <if condition='$serverType eq 2'>highlight</if>" style="border-left: 0;border-right: 0;" server-type="2">
<p>混服</p>
</div>
<div class="btn btn-role <if condition='$serverType eq 1'>highlight</if>" server-type="1">
<p>专服</p>
</div>
</div>
</div>
<div class="form-group normal_space fl" style="display: none;">
<input id="server_type" name="server_type">
</div>
<div class="form-group normal_space fl">
<input type="submit" class="submit" value="查询">
</div>
</form>
</div>
<div class="trunk-list">
<div class="div_bgtab">
<table class="table normal_table zwm_tab">
<tr class="odd <if condition='get_parent_id(PID) eq 0'>pid</if> zwm_tr">
<th>游戏图标</th>
<th>游戏名称</th>
<th>游戏类型</th>
<th>平台</th>
<th>混服情况</th>
<th>玩家折扣</th>
<th>分成比例</th>
</tr>
<empty name="dataList">
<tr>
<td colspan="7" style="text-align: center;height: 45vh;">
<img src="__IMG__/20180207/icon_wushujv2.png"/>
<p style="line-height: 40px;color: #A5A5A5;">暂无数据</p>
</td>
</tr>
<else/>
<volist name="dataList" id="vo">
<tr>
<td><img src="__ROOT__{$vo.icon|get_cover='path'}" style="width: 50px;height: 50px;border-radius: 8px;"/></td>
<td>{$vo.game_name}</td>
<td>{$vo.game_type_name}</td>
<td>{:getSDKTypeName($vo['sdk_version'])}</td>
<td><?=($vo['server_type']==1)?'专服':'混服'?></td>
<td><?=($vo['discount']==10)?'----':($vo['discount'].'折')?></td>
<td>{$vo.ratio}%</td>
</tr>
</volist>
</empty>
</table>
</div>
<div class="pagenation clearfix">
{$_page}
</div>
</div>
<else/>
<div class="trunk-search clearfix" style="display: grid;">
<div class="tab detailed-box" style="margin-top: 40px;align-items: center;">
<label class="detailed-title detailed-label" style="margin-right: 20px;">安全密码:</label>
<div class="detailed-content-box">
<input class="input-security" id="security_password" type="password" placeholder="安全密码">
</div>
</div>
<div class="tab detailed-box">
<label class="detailed-title detailed-label" style="margin-right: 20px;"></label>
<div class="detailed-content-box" style="display: flex;width: 100%;">
<button class="btn-security" style="margin-right: 20px;">确定</button>
<button class="btn-security-close">取消</button>
</div>
</div>
</div>
</if>
</div>
</div>
</block>
<block name="script">
<script src="__STATIC__/zeroclipboard/jquery.zclip.min.js"></script>
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
<script type="text/javascript">
setValue('relation_game_id', {$Think.request.relation_game_id |default = '""'});
setValue('sdk_version', {$Think.request.sdk_version |default = '""'});
setValue('server_type', {$Think.request.server_type |default = 0});
setValue('row', '{:I("row",10)}');
$('.btn-role').on('click', function () {
var thisElement = $(this);
if (!thisElement.hasClass('highlight')) {
var serverType = thisElement.attr('server-type');
console.log(serverType);
setValue('server_type', serverType);
$('.btn-role').removeClass('highlight');
thisElement.addClass('highlight');
}
});
$(document).ready(function () {
$(".select_gallery").select2();
$('.btn-security').on('click', function () {
var password = $('#security_password').val();
$.ajax({
type: "post",
url: "__URL__/verifyPassword",
dataType: "json",
data: {'password': password},
success: function (data) {
if (data.status == 1) {
window.location.reload();
} else {
layer.msg(data.msg, {icon: 5});
}
},
error: function (result) {
layer.msg('网络异常', {icon: 5});
}
});
});
});
</script>
</block>

@ -70,7 +70,11 @@
<div class="subNav jssubNav"><i class="prev_icon icon_fenbao"></i><span>游戏管理</span><i class="arrow_icon"></i></div> <div class="subNav jssubNav"><i class="prev_icon icon_fenbao"></i><span>游戏管理</span><i class="arrow_icon"></i></div>
<div class="navContent jsnavContent"> <div class="navContent jsnavContent">
<!-- <a href="{:U('Apply/app_index')}" class="<if condition='CONTROLLER_NAME eq Apply and ACTION_NAME eq app_index '>active</if> ">APP列表</a>--> <!-- <a href="{:U('Apply/app_index')}" class="<if condition='CONTROLLER_NAME eq Apply and ACTION_NAME eq app_index '>active</if> ">APP列表</a>-->
<a href="{:U('Apply/index')}" class="<if condition='CONTROLLER_NAME eq Apply and (ACTION_NAME eq index or ACTION_NAME eq my_game or ACTION_NAME eq my_game_ch or ACTION_NAME eq child_game ) '>active</if> ">专服管理</a> <a href="{:U('Apply/gameSpecialList')}" class="<if condition='CONTROLLER_NAME eq Apply and (ACTION_NAME eq gameSpecialList or ACTION_NAME eq specialMyGameList) '>active</if> ">专服管理</a>
<a href="{:U('Apply/gameList')}" class="<if condition='CONTROLLER_NAME eq Apply and (ACTION_NAME eq gameList or ACTION_NAME eq myGameList) '>active</if> ">混服管理</a>
<if condition="getParentPromoteId(PID) eq 0">
<a href="{:U('GameDivide/index')}" class="<if condition='CONTROLLER_NAME eq GameDivide and (ACTION_NAME eq index) '>active</if> ">分成比例</a>
</if>
</div> </div>
<!-- <eq name="parent_id" value="0"> <!-- <eq name="parent_id" value="0">

@ -231,7 +231,7 @@ class UserController extends BaseController
$userData = M('User', 'tab_')->where($whereUser)->find(); $userData = M('User', 'tab_')->where($whereUser)->find();
if (!empty($userData)) { if (!empty($userData)) {
if (empty($userData['promote_id'])) { if (empty($userData['promote_id']) && empty($userData['promote_account'])) {
$saveData['promote_id'] = $promoteId; $saveData['promote_id'] = $promoteId;
$saveData['promote_account'] = $promoteData['account']; $saveData['promote_account'] = $promoteData['account'];

@ -119,7 +119,7 @@ class PromoteApi extends Api{
return $this->model->verifyUser($uid,$password_in); return $this->model->verifyUser($uid,$password_in);
} }
public function verify_er_User($uid, $password_in){ public function verify_er_User($uid, $password_in){
return $this->model->verifyUser($uid,$password_in); return $this->model->verify_er_User($uid,$password_in);
} }

@ -61,4 +61,9 @@ INSERT INTO `tab_promote_quick_menu` VALUES ('18', '1', '1', '1569720739');
-- 2019-10-01 -- 2019-10-01
alter table tab_game_source add column `original_url` varchar(255) NOT NULL default '' COMMENT '原包路径'; alter table tab_game_source add column `original_url` varchar(255) NOT NULL default '' COMMENT '原包路径';
alter table tab_game_source add column `org_plist_url` varchar(255) NOT NULL default '' COMMENT '原包Plist路径'; alter table tab_game_source add column `org_plist_url` varchar(255) NOT NULL default '' COMMENT '原包Plist路径';
-- ----------------------------
-- 2019-10-08 cxj
-- ----------------------------
ALTER TABLE `tab_game` ADD COLUMN `server_type` tinyint(2) NOT NULL DEFAULT 1 COMMENT '1-专服 2-混服' AFTER `support_ratio`;
Loading…
Cancel
Save