Merge branches 'dev' and 'dev_zyx' of 47.111.118.107:/srv/git/platform into dev_zyx

master
zhengyongxing 5 years ago
commit 976a697b24

@ -0,0 +1,73 @@
<?php
namespace Admin\Controller;
class BehaviorLogController extends ThinkController
{
public function game()
{
$params = I('get.');
$ignoreData = ['p', 'row', 'timestart', 'timeend', 'promote_id'];
$map = [];
// if (isset($params['user_account'])) {
// $map['user_account'] = $params['user_account'];
// }
// if (isset($params['extend'])) {
// $map['extend'] = $params['extend'];
// }
// if (isset($params['game_name'])) {
// $map['game_name'] = $params['game_name'];
// }
// if (isset($params['server_name'])) {
// $map['server_name'] = $params['server_name'];
// }
// if (isset($params['sdk_version'])) {
// $map['sdk_version'] = $params['sdk_version'];
// }
// if (isset($params['user_nickname'])) {
// $map['user_nickname'] = $params['user_nickname'];
// }
// if (isset($params['game_player_id'])) {
// $map['game_player_id'] = $params['game_player_id'];
// }
foreach ($params as $k => $v) {
if (!in_array($k, $ignoreData)) {
$map[$k] = $v;
}
}
$p = $params['p'] ? $params['p'] : 1;
$row = $params['row'] ? $params['row'] : 10;
$startDate = empty($params['timestart']) ? date('Y-m-d', strtotime('-6 day', time())) : $params['timestart'];
$endDate = empty($params['timeend']) ? date('Y-m-d') : $params['timeend'];
$startTime = strtotime($startDate);
$endTime = strtotime($endDate) + 86399;
$map['create_time'] = array('BETWEEN', [$startTime, $endTime]);
if ($promoteId = I('promote_id')) {
if ($promoteId == 0) {
$map['promote_id'] = 0;
} else {
$promoteMap['chain'] = ['like', "%/$promoteId/%"];
$promoteIds = M('Promote', 'tab_')->where($promoteMap)->getField('id', true);
if(empty($promoteIds)) {
$promoteIds[] = $promoteIds;
}
$map['promote_id'] = ['in', $promoteIds];
}
}
$data = M('pay_info', 'tab_')->where($map)->order('id DESC')->page($p, $row)->select();
$count = M('pay_info', 'tab_')->where($map)->count();
$page = set_pagination($count, $row);
if ($page) {
$this->assign('_page', $page);
}
$this->assign('startDate', $startDate);
$this->assign('endDate', $endDate);
$this->assign('data', $data);
$this->display('index');
}
}

@ -86,7 +86,9 @@ class FileController extends AdminController
if (I('get.typee') == 1) {
$uploader->set('path', './Uploads/Ios/description');
}
if (strpos(I('type'),'video') !== false) {
$uploader->set('path', './Uploads/Video');
}
// var_dump($_POST);
// exit;
//用于断点续传,验证指定分块是否已经存在,避免重复上传

@ -346,6 +346,8 @@ class GameController extends ThinkController
$phone['back_describe'] = $sibling['back_describe'];
$phone['dow_icon'] = $sibling['dow_icon'];
$phone['back_map'] = $sibling['back_map'];
$phone['flooring_page_video'] = $sibling['flooring_page_video'];
$phone['supersign_status'] = $sibling['supersign_status'];
M('Game', 'tab_')->data($phone)->where(array('id' => $another['id']))->save();
//同时修改代充游戏折扣
$set_fidel['status'] = 1;

@ -0,0 +1,464 @@
<extend name="Public/base"/>
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css"/>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<script type="text/javascript" src="__JS__/select2.min.js"></script>
<style>
.select2-container--default .select2-selection--single {
color: #000;
resize: none;
border-width: 1px;
border-style: solid;
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
height:28px;border-radius:3px;font-size:12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height:35px;
line-height:28px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height:26px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
height:26px;line-height:26px;font-size:12px;
}
.select2-results__option[aria-selected] {font-size:12px;}
</style>
<!-- 标题栏 -->
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">行为日志</h3>
<p class="description_text">说明:玩家在游戏里的行为日志</p>
</div>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
<div class="input-list">
<input type="text" name="{$model['search_key']|default='user_account'}" placeholder="玩家账号" class=""
value="{:I('user_account')}">
</div>
<div class="input-list">
<input type="text" name="extend" class="" value="{:I('extend')}" placeholder="CP订单号">
</div>
<div class="input-list">
<input type="text" readonly id="time-start" name="timestart" class="" value="{$startDate}"
placeholder="充值开始时间"/>
-
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" readonly id="time-end" name="timeend" class="" value="{$endDate}"
placeholder="充值结束时间"/>
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="game_name" name="game_name" class="select_gallery" >
<option value="">游戏名称</option>
<volist name=":getAllGame()" id="vo">
<option value="{$vo.game_name}" <?php echo $vo.relation_game_name == I('game_name') ? 'selected':''; ?> >{$vo.game_name}</option>
</volist>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="sdk_version" name="sdk_version" class="select_gallery" >
<option value="">设备类型</option>
<option value="1" <?php echo I('sdk_version') == 1 ? "selected" : ''?>>安卓</option>
<option value="2" <?php echo I('sdk_version') == 2 ? "selected" : ''?>>苹果</option>
</select>
</div>
<div class="input-list input-list-server search_label_rehab">
<select id="server_name" name="server_name" class="select_gallery" style="width:120px;">
<option value="">区服名称</option>
</select>
</div>
<div class="input-list">
<input type="text" name="game_player_name" class="" value="{:I('user_nickname')}" placeholder="角色名称">
</div>
<div class="input-list">
<input type="text" name="game_player_id" class="" value="{:I('game_player_id')}" placeholder="角色ID">
</div>
<br>
<div class="input-list search_item input-list-gamenoticestatus">
<select name="promote_level" style="color:#444" class="select_gallery" id="promote_level">
<option value="">请选择推广员等级</option>
<option value="1" <?php if ($_POST['promote_level'] == 1):?>selected<?php endif;?>>会长</option>
<option value="2" <?php if ($_POST['promote_level'] == 2):?>selected<?php endif;?>>部门长</option>
<option value="3" <?php if ($_POST['promote_level'] == 3):?>selected<?php endif;?>>组长</option>
<option value="4" <?php if ($_POST['promote_level'] == 4):?>selected<?php endif;?>>组员</option>
</select>
-
</div>
<div class="input-list search_item input-list-gamenoticestatus">
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
<option value="">请选择推广员</option>
</select>
</div>
<input type="hidden" name="" value="" class="sortBy">
<div class="input-list search_item">
<a class="sch-btn" href="javascript:;" id="search"
url="{:U('BehaviorLog/game','model='.$model['name'] . '&row='.I('row'),false)}">搜索</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list zdata_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th>CP订单号</th>
<th>充值时间</th>
<th>玩家账号</th>
<th>游戏名称</th>
<th>游戏区服</th>
<th>所属推广员</th>
<th>角色ID</th>
<th>角色名称</th>
<th>订单金额</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name="data">
<td colspan="9" class="text-center">aOh! 暂时还没有内容!</td>
<else/>
<volist name="data" id="vo">
<tr>
<td>{$vo.extend}</td>
<td>{:set_show_time($vo['create_time'])}</td>
<td>{$vo.user_account}</td>
<td>{$vo.game_name}</td>
<td>{$vo.server_name}</td>
<td>{$vo.promote_account}</td>
<td>{$vo.game_player_id}</td>
<td>{$vo.game_player_name}</td>
<td>{$vo.price}</td>
</tr>
</volist>
</empty>
<!-- <tr class="data_summary">
<td>汇总</td>
<td colspan="6">
当页充值:{:null_to_0(array_sum(array_column(array_status2value('pay_status','',$list_data),'pay_amount')))}
今日充值:{$ttotal}
昨日充值:{$ytotal}
累计充值:{$total}(此处只汇总充值成功的订单)
</td>
<td colspan="99" style="color: #a9a9a9;">
今日充值:今日平台所有推广员的累计充值(包括官方渠道)/
昨日充值:昨日平台所有推广员的累计充值(包括官方渠道)
</td>
</tr> -->
</tbody>
</table>
</div>
</div>
<div class="page">
<!-- <a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>7,'xlsname'=>'游戏订单_游戏充值'),I('get.')))}">导出</a> -->
{$_page|default=''}
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Spend/lists">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '
<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">
';
</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"
charset="UTF-8"></script>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script>
<volist name = ":I('get.')" id = "vo">
Think.setValue('{$key}', "{$vo}");
</volist>
$(".select_gallery").select2();
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('BehaviorLog/game')}');
$(function () {
//搜索功能
$("#search").click(function () {
var sdate = Date.parse($('#time-start').val()) / 1000;
var edate = Date.parse($('#time-end').val()) / 1000;
if (sdate > edate) {
layer.msg('开始时间必须小于等于结束时间');
return false;
}
if ((edate - sdate) > 2592000) {
layer.msg('时间间隔不能超过31天请重新选择日期');
return false;
}
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query += "&" + $('.jssearch').find('select').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
query = query.replace(/^&/g, '');
if (url.indexOf('?') > 0) {
url += '&' + query;
} else {
url += '?' + query;
}
window.location.href = url;
});
$(".paixu").click(function () {
var that = $(this);
$data_order = that.attr('data-order');
$order_type = '{$userarpu_order}';
if ($order_type == '' || $order_type == '4') {
$(".sortBy").attr('name', 'data_order');
val = '3,' + $data_order;
$(".sortBy").attr('value', val);
$("#search").click();
} else if ($order_type == '3') {
$(".sortBy").attr('name', 'data_order');
val = '4,' + $data_order;
$(".sortBy").attr('value', val);
$("#search").click();
}
});
//回车自动提交
$('.jssearch').find('input').keyup(function (event) {
if (event.keyCode === 13) {
$("#search").click();
}
});
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
showMeridian:true,
pickDate:true,
minView: 2,
autoclose: true,
pickTime:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var end = new Date($.trim($('#time-end').val())).getTime();
if (val>end) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$("#time-end").datetimepicker({
format:"yyyy-mm-dd",
language: "zh-CN",
showMeridian:true,
minView:2,
autoclose:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var start = new Date($.trim($('#time-start').val())).getTime();
if (val<start) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$(".budan").click(function () {
url = $(this).attr('href-hhh');
data = $(this).attr('href-data');
$.ajax({
type: 'post',
url: url,
data: {orderNo: data},
success: function (e) {
if (e.status == 1) {
layer.msg(e.msg, {icon: 1});
setTimeout(function () {
location.reload();
}, 1500);
} else {
layer.msg(e.msg, {icon: 2});
}
},
});
});
$(".budan2").click(function () {
url = $(this).attr('href-hhh');
data = $(this).attr('href-data');
$.ajax({
type: 'post',
url: url,
data: {orderNo: data},
success: function (e) {
if (e.status == 1) {
if (e.msg.length > 30) {
window.open(e.msg);
} else {
layer.msg(e.msg, {icon: 1});
setTimeout(function () {
location.reload();
}, 1500);
}
} else {
layer.msg(e.msg, {icon: 2});
}
},
});
});
$(".d_list").find(".drop-down11").hover(function () {
$(this).find(".nav-list").removeClass("hidden");
}, function () {
$(this).find(".nav-list").addClass("hidden");
});
$(".drop-down11 .nav-list li").find("a").each(function () {
var that = $(".drop-down11");
$(this).click(function () {
var text = $(this).text(), val = $(this).attr("value");
that.find(".sort-txt").text(text).attr("data", val);
that.find(".nav-list").addClass("hidden");
that.siblings('.hiddenvalue').val(val);
})
});
$(".d_list").find(".drop-down12").hover(function () {
$(this).find(".nav-list").removeClass("hidden");
}, function () {
$(this).find(".nav-list").addClass("hidden");
});
$(".drop-down12 .nav-list li").find("a").each(function () {
var that = $(".drop-down12");
$(this).click(function () {
var text = $(this).text(), val = $(this).attr("value");
that.find(".sort-txt").text(text).attr("data", val);
that.find(".nav-list").addClass("hidden");
that.siblings('.hiddenvalue').val(val);
})
});
$(".d_list").find(".drop-down13").hover(function () {
$(this).find(".nav-list").removeClass("hidden");
}, function () {
$(this).find(".nav-list").addClass("hidden");
});
$(".drop-down13 .nav-list li").find("a").each(function () {
var that = $(".drop-down13");
$(this).click(function () {
var text = $(this).text(), val = $(this).attr("value");
that.find(".sort-txt").text(text).attr("data", val);
that.find(".nav-list").addClass("hidden");
that.siblings('.hiddenvalue').val(val);
})
});
//下拉内容框
$(".drop-down2").on('click', function (event) {
var navlist = $(this).find('.i_list_li');
if (navlist.hasClass('hidden')) {
navlist.removeClass('hidden');
$('#i_list_id').focus().val('');
} else {
navlist.addClass('hidden');
}
$(document).one("click", function () {
navlist.addClass('hidden');
});
event.stopPropagation();
});
$('#i_list_id').on('keyup', function (event) {
var val = $.trim($(this).val()).toLowerCase();
$('#i_list_idh').val(val);
});
$("#i_list_li").find("a").each(function () {
$(this).click(function () {
var text = $.trim($(this).text()).toLowerCase();
$("#i_list_id").val(text);
$('#i_list_idh').val(text);
})
});
})
var promote_id = "{:I('promote_id')}";
$("#promote_level").change(function(){
$.ajax({
url:"{:U('Ajax/getPromotersByLevel')}",
type:"get",
data:{level:$("#promote_level option:selected").val()},
dataType:'json',
success:function(response){
str = '<option value="">请选择推广员</option><option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option>';
data = response.data;
for (var i in data){
str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>"
}
$("#promote_id").empty();
$("#promote_id").append(str);
$("#promote_id").select2();
}
})
});
$("#promote_level").change();
var game_server = "{:I('server_name')}";
$("#sdk_version").change(function(){
$.ajax({
url:"{:U('Ajax/getGmeServer')}",
type:"post",
data:{sdk_version:$("#sdk_version option:selected").val(), game_name:$("#game_name option:selected").val()},
dataType:'json',
success:function(data){
str = "<option value=''>请选择区服</option>";
for (var i in data){
str += "<option value='"+data[i].server_name+"' "+(game_server && data[i].server_name == game_server?'selected':'')+">"+data[i].server_name+"</option>"
}
$("#server_name").empty();
$("#server_name").append(str);
$("#server_name").select2();
}
})
});
$("#game_name").change(function(){
$("#sdk_version").change();
});
$("#game_name").change();
/**
* 初始化select2单选默认带搜索功能。
*/
//初始化页面加载
$(document).ready(function () {
});
</script>
</block>

@ -215,7 +215,7 @@
<textarea name="introduction" class="txt_area">{$data['introduction']}</textarea>
</td>
</tr>
<tr>
<td class="l">游戏资料中心:</td>
<td class="r">
@ -333,7 +333,7 @@
</div>
</div>
</span>
<span class="notice-text">横版游戏建议尺寸1691280*720px及以上竖版游戏建议尺寸916720*1280px及以上用于游戏详情页内展示</span>
<span class="notice-text">建议尺寸750*1334图片大小不超过3M</span>
</td>
</tr>
@ -355,6 +355,37 @@
<span class="notice-text">横版游戏建议尺寸1691280*720px及以上竖版游戏建议尺寸916720*1280px及以上用于游戏详情页内展示</span>
</td>
</tr>
<tr class="picbox">
<td class="l noticeinfo">落地页视频</td>
<td class="r">
<span class="table_btn table_upload">
<div id="uploaderVideo" class="wu-example">
<div class="btns">
<div id="pickerVideo" style="width: auto;float: left;margin-right: 20px;">上传视频</div>
</div>
<!--用来存放文件信息-->
<div id="video_thelist" class="uploader-list" style="float: left;">
<!-- <span id="up_status">
<notempty name="data.material_url">已上传</notempty>
</span> -->
<notempty name="data.flooring_page_video">
<?php $name = substr($data['flooring_page_video'],strripos($data['flooring_page_video'],'/',0)+1); ?>
<div id="beforeuploadvideo" class="item">
<h4 class="info">{$name}<a href="javascript:;" class="jsdelvideo table_click" style="float:none;display:inline-block;margin-left:10px;">删除</a></h4>
<video src="{$data['flooring_page_video']}" controls width="150px"></video>
</div>
</notempty>
</div>
</div>
<input type="hidden" id="video_url" name="flooring_page_video" value="{$data['flooring_page_video']}"/>
</span>
<span class="notice-text">视频大小不能超过20M支持格式mp4,3gp,wmv,asf,asx,mov,m4v,avi,flv,qlv</span>
</td>
</tr>
<notempty name="data.accredit_img">
<tr class="picbox">
<td class="l noticeinfo">知识产权</td>
@ -396,6 +427,7 @@
</volist></span>
</td>
</tr>
<tr>
<td class="l">下载状态:</td>
@ -422,6 +454,7 @@
</td>
</if>
</tr>
<tr>
<td class="l">下载端口:</td>
<td class="r" >
@ -466,6 +499,32 @@
<input type="text" class="txt " name="supersign_url" value="{$data['supersign_url']}" placeholder="请输入超级签URL" >
</td>
</tr>
<tr>
<td class="l">超级签状态:</td>
<if condition="$data['supersign_status'] eq 1">
<td class="r" >
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="supersign_status" > 关闭
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="supersign_status" checked="checked"> 开启
</label></span>
</td>
<else/>
<td class="r" >
<span class="form_radio table_btn">
<label>
<input type="radio" class="inp_radio" value="0" name="supersign_status" checked="checked"> 关闭
</label>
<label>
<input type="radio" class="inp_radio" value="1" name="supersign_status" > 开启
</label></span>
</td>
</if>
</tr>
</tbody>
</table>
</div>
@ -726,7 +785,6 @@
</table>
</div>
<div class="form-item cf">
<input type="hidden" name='id' value="{$data['id']}" />
<input type="hidden" name='type' value="{$_GET['type']}" />
@ -1092,6 +1150,103 @@
}
});
//上传落地页视频
var uploaderVideo = WebUploader.create({
// 选完文件后,是否自动上传。
auto: true,
// swf文件路径
swf: '__STATIC__/webuploader/Uploader.swf',
// 文件接收服务端。
server: backEndUrl,
// 选择文件的按钮。可选。
// 内部根据当前运行是创建可能是input元素也可能是flash.
pick: {id:'#pickerVideo'},
fileSingleSizeLimit:20*1024*1024, //设定单个文件大小
// dnd: true,
paste: document.body,
accept: {
title: '视频',
extensions: 'mp4,3gp,wmv,asf,asx,mov,m4v,avi,flv,qlv',
mimeTypes: '.mp4,.3gp,.wmv,.asf,.asx,.mov,.m4v,.avi,.flv,.qlv',
},
// 不压缩image, 默认如果是jpeg文件上传前会压缩一把再上传
resize: false,
disableGlobalDnd: true,
fileNumLimit:1,
threads:3,
compress: false,
prepareNextFile: true,
formData: function(){return $.extend(true, {}, userInfo);},
duplicate: true
});
// 当有文件被添加进队列的时候
uploaderVideo.on( 'fileQueued', function( file ) {
$("#up_status").remove();
$("#video_thelist").html( '<div id="' + file.id + '" class="item">' +
'<h4 class="info">' + file.name + '</h4>' +
'<p class="state">等待上传...</p>' +
'</div>' );
});
// 文件上传过程中创建进度条实时显示。
uploaderVideo.on( 'uploadProgress', function(file, percentage) {
var $li = $( '#'+file.id ),
$percent = $li.find('.progress .progress-bar');
// 避免重复创建
if ( !$percent.length ) {
$percent = $('<div class="progress progress-striped active">' +
'<div class="progress-bar" role="progressbar" style="width: 0%">' +
'</div>' +
'</div>').appendTo( $li ).find('.progress-bar');
}
$li.find('p.state').text('上传中');
$percent.css( 'width', percentage * 100 + '%' );
$percent.text( (percentage * 100).toFixed(0) + '%' );
});
$('#beforeuploadvideo').children('.info').children('.jsdelvideo').click(function() {
$("#video_url").val('');
$('#beforeuploadvideo').remove();
return false;
});
uploaderVideo.on( 'uploadSuccess', function( file , response) {
$( '#'+file.id ).find('p.state').text('已上传').fadeOut(800);
//alert(JSON.stringify(response));
$('#'+file.id).find('h4.info').append('<a href="javascript:;" class="jsdelvideo table_click" style="float:none;display:inline-block;margin-left:10px;">删除</a>');
var url = response.path + "/" +response.name;
$('#'+file.id).find('h4.info').after("<video src="+url+" controls width=\"150px\"></video>");
$("#video_url").val(url);
$('#'+file.id).find('.jsdelvideo').on('click',function() {
console.log(file);
$("#video_url").val('');
$('#'+file.id).remove();
uploaderVideo.removeFile( file.id );
return false;
});
});
/**
* 验证文件格式以及文件大小
*/
uploaderVideo.on("error",function (type){
if (type=="Q_TYPE_DENIED"){
layer.msg("不支持该视频格式");
}else if(type=="F_EXCEED_SIZE"){
layer.msg("视频大小不能超过20M");
}
});
uploaderVideo.on( 'uploadError', function( file ) {
$( '#'+file.id ).find('p.state').text('上传出错');
});
uploaderVideo.on( 'uploadComplete', function(file) {
$( '#'+file.id ).find('.progress').fadeOut();
});
var uploaderFile = WebUploader.create({
// 选完文件后,是否自动上传。
auto: true,
@ -1179,7 +1334,7 @@
uploaderFile.on( 'uploadComplete', function(file) {
$( '#'+file.id ).find('.progress').fadeOut();
});
//游戏截图
var uploaderImg = WebUploader.create({
// 选完文件后,是否自动上传。
@ -1215,7 +1370,7 @@
});
var imgListData = [];
@ -1392,7 +1547,7 @@
);
}
</script>
<script type="text/javascript">
var uploaderImgScreen = WebUploader.create({
// 选完文件后,是否自动上传。
@ -1407,6 +1562,7 @@
id:'#screenshot',
multiple:true
},
fileSingleSizeLimit:3*1024*1024, //设定单个文件大小
// dnd: false,
paste: document.body,
accept: {
@ -1425,8 +1581,8 @@
formData: function(){return $.extend(true, {}, userInfo);},
chunked:false,
duplicate: true
});
});
var imgListScreenData = [];
<?php if (!empty($data['screenshot_data'])) :?>
var html = '';
@ -1434,7 +1590,7 @@
<?php foreach ($data['screenshot_data'] as $value1) { ?>
<?php $value1 = (int)$value1; ?>
imgListScreenData.push(<?=$value1?>);
html += '<div id="' + <?=$value1?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">';
html += '<a href="javascript:;"><img src="<?=get_cover($value1,"path")?>" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info" style="text-align: center;">';
@ -1446,7 +1602,7 @@
html += '</div>';
<?php }?>
$('#screenshot_thelist').html(html);
$('#screenshot_thelist').children().children('h4').children('.jsdelzip').on('click', function() {
var thisId = $(this).attr('img-id');
$(this).parent().parent().remove();
@ -1460,7 +1616,7 @@
setScreenshotVal();
});
<?php endif ;?>
<?php endif ;?>
var thisIndex1 = 0;
var imgScreenList = $("#screenshot_thelist");
uploaderImgScreen.on( 'fileQueued', function( file ) {
@ -1500,6 +1656,15 @@
$percent.text( (percentage * 100).toFixed(0) + '%' );
});
/**
* 验证文件格式以及文件大小
*/
uploaderVideo.on("error",function (type){
if(type=="F_EXCEED_SIZE"){
layer.msg("视频大小不能超过3M");
}
});
uploaderImgScreen.on( 'uploadSuccess', function( file , response) {
imgListScreenData.push(Number(response.id));
console.log(imgListScreenData)
@ -1525,7 +1690,7 @@
return false;
});
});
function setScreenshotVal()
{
var screen_shot = '';
@ -1537,8 +1702,8 @@
}
</script>
<script>
<script>
var uploaderImgCover = WebUploader.create({
// 选完文件后,是否自动上传。
auto: true,
@ -1570,8 +1735,8 @@
formData: function(){return $.extend(true, {}, userInfo);},
chunked:false,
duplicate: true
});
});
var imgListCoverData = [];
<?php if (!empty($data['cover_data'])) :?>
var html = '';
@ -1579,7 +1744,7 @@
<?php foreach ($data['cover_data'] as $value2) { ?>
<?php $value2 = (int)$value2; ?>
imgListCoverData.push(<?=$value2?>);
html += '<div id="' + <?=$value2?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">';
html += '<a href="javascript:;"><img src="<?=get_cover($value2,"path")?>" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info" style="text-align: center;">';
@ -1591,7 +1756,7 @@
html += '</div>';
<?php }?>
$('#cover_thelist').html(html);
$('#cover_thelist').children().children('h4').children('.jsdelzip').on('click', function() {
var thisId = $(this).attr('img-id');
$(this).parent().parent().remove();
@ -1605,7 +1770,7 @@
setCoverVal();
});
<?php endif ;?>
<?php endif ;?>
var thisIndex2 = 0;
var imgCoverList = $("#cover_thelist");
uploaderImgCover.on( 'fileQueued', function( file ) {
@ -1666,7 +1831,7 @@
return false;
});
});
function setCoverVal()
{
var cover = '';
@ -1676,7 +1841,7 @@
cover = cover.substring(0, cover.length - 1);
$('input[name=cover]').val(cover);
}
</script>
<script>
var iconInfo = {userId:"kazaff", md5:"",icon:1}; //用户会话信息
@ -1711,8 +1876,8 @@
formData: function(){return $.extend(true, {}, iconInfo);},
chunked:false,
duplicate: true
});
});
var imgListIconData = [];
<?php if (!empty($data['icon_data'])) :?>
var html = '';
@ -1720,7 +1885,7 @@
<?php foreach ($data['icon_data'] as $value3) { ?>
<?php $value3 = (int)$value3; ?>
imgListIconData.push(<?=$value3?>);
html += '<div id="' + <?=$value3?> + '" class="item flooring_page_img_box" style="margin-right: 10px;">';
html += '<a href="javascript:;"><img src="<?=get_cover($value3,"path")?>" style="width: 100px;height: 100px;cursor: move;"></a>';
html += '<h4 class="info" style="text-align: center;">';
@ -1732,7 +1897,7 @@
html += '</div>';
<?php }?>
$('#icon_thelist').html(html);
$('#icon_thelist').children().children('h4').children('.jsdelzip').on('click', function() {
var thisId = $(this).attr('img-id');
$(this).parent().parent().remove();
@ -1746,7 +1911,7 @@
setIconVal();
});
<?php endif ;?>
<?php endif ;?>
var thisIndex2 = 0;
var imgIconList = $("#icon_thelist");
uploaderImgIcon.on( 'fileQueued', function( file ) {
@ -1816,7 +1981,7 @@
}
});
function setIconVal()
{
var icon = '';
@ -1826,6 +1991,6 @@
icon = icon.substring(0, icon.length - 1);
$('input[name=icon]').val(icon);
}
</script>
</block>

@ -36,6 +36,11 @@ class DownloadController extends BaseController {
1 => '汇款中',
2 => '已汇款',
];
public static $payStatus = [
0 => '下单未支付',
1 => '充值成功',
];
/**
* excel
@ -84,7 +89,7 @@ class DownloadController extends BaseController {
$res = M('promote','tab_')->where($map1)->field('id,account,nickname')->select();
$childPromoteIds = '';
if(empty($res)) {
$map['tab_downloadlog.admin_id'] = PID;
$map['tab_downloadlog.promote_id'] = PID;
}else {
foreach ($res as $rsKey => $rsValue) {
$id = $rsValue['id'];
@ -92,7 +97,7 @@ class DownloadController extends BaseController {
}
$childPromoteIds = rtrim($childPromoteIds, ',');
$childPromoteIds .= ',' . PID;
$map['tab_downloadlog.admin_id'] = ['in', $childPromoteIds];
$map['tab_downloadlog.promote_id'] = ['in', $childPromoteIds];
}
$levelPromote = $this->getLevelPromote();
$queryPromote = $this->getQueryPromote($levelPromote);
@ -105,7 +110,7 @@ class DownloadController extends BaseController {
$map = [];
if (count($childPromoteIds) > 0) {
$map = ['admin_id' => ['in', $childPromoteIds]];
$map = ['promote_id' => ['in', $childPromoteIds]];
} else {
$map['_string'] = '1<>1';
}
@ -130,7 +135,7 @@ class DownloadController extends BaseController {
$rs = M('downloadlog','tab_')->where($map)->order('tab_downloadlog.addtime desc')
->page($page, $row)->select();
foreach ($rs as $key => $value) {
$pid = intval($value['admin_id']);
$pid = intval($value['promote_id']);
$getNameRs = M('promote','tab_')->field("real_name")->where(['id' => $pid])->find();
$rs[$key]['actor'] = $getNameRs['real_name'];
}
@ -236,7 +241,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'dy_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/dailySummary',
'dataname' => '每日概况',
'status' => 0,
@ -291,7 +296,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'withdrawRecord'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Finance/withdrawRecord',
'dataname' => '提现记录',
'status' => 0,
@ -338,7 +343,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'withdrawDtl_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Finance/withdrawDtl',
'dataname' => '提现明细',
'status' => 0,
@ -384,7 +389,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'finance_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Finance/index',
'dataname' => '结算中心',
'status' => 0,
@ -456,7 +461,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'settlementDtl_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Finance/settlementDtl',
'dataname' => '结算明细',
'status' => 0,
@ -512,7 +517,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'test_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/TestResource/index',
'dataname' => '申请测试资源',
'status' => 0,
@ -572,7 +577,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'test_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/TestResource/lists',
'dataname' => '申请测试资源记录',
'status' => 0,
@ -619,7 +624,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'test_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/TestResource/supportNumberList',
'dataname' => '扶持号管理',
'status' => 0,
@ -682,7 +687,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'orderlist_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/CoinOrder/order_list',
'dataname' => '平台币充值',
'status' => 0,
@ -779,7 +784,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'zc_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/arpu',
'dataname' => 'ARPU统计',
'status' => 0,
@ -865,7 +870,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'zc_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/registe',
'dataname' => '注册明细数据',
'status' => 0,
@ -928,7 +933,7 @@ class DownloadController extends BaseController {
$type = "/Home/Promote/children/promote_type/".$promoteType;
$data = [
'logid' => 'promote_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => $type,
'dataname' => '渠道管理',
'status' => 0,
@ -987,7 +992,7 @@ class DownloadController extends BaseController {
$type = "/Home/PromoteCoin/transferLogs";
$data = [
'logid' => 'cr_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => $type,
'dataname' => '平台币转移',
'status' => 0,
@ -1049,7 +1054,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'pt_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => "/Home/PromoteCoin/coinRecord",
'dataname' => '我的平台币明细',
'status' => 0,
@ -1112,7 +1117,7 @@ class DownloadController extends BaseController {
$type = "/Home/PromoteCoin/myCoin";
$data = [
'logid' => 'pt_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => $type,
'dataname' => '我的平台币',
'status' => 0,
@ -1204,14 +1209,20 @@ class DownloadController extends BaseController {
empty(I('game_player_name')) || $map['tab_spend.game_player_name'] = ['like', '%' . I('game_player_name') . '%'];
empty(I('user_account')) || $map['tab_spend.user_account'] = ['like', '%' . I('user_account') . '%'];
empty(I('pay_order_number')) || $map['tab_spend.pay_order_number'] = I('pay_order_number');
$map['tab_spend.pay_status'] = 1;
// $map['tab_spend.pay_status'] = 1;
$map['tab_spend.is_check'] = ['neq', 2];
if (isset($_REQUEST['pay_status']) && $_REQUEST['pay_status'] !== '') {
$payStatus = intval(I('pay_status'));
if (in_array($payStatus, array_keys(self::$payStatus))) {
$map['tab_spend.pay_status'] = $payStatus;
}
}
$conditions = json_encode($map,TRUE);
$addtime = time();
$data = [
'logid' => 'cz_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/recharge',
'dataname' => '充值明细数据',
'status' => 0,
@ -1322,7 +1333,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'wj_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/userRecharges',
'dataname' => '充值玩家数据',
'status' => 0,
@ -1420,7 +1431,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data1 = [
'logid' => 'tg_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/achievement',
'dataname' => '推广员业绩',
'status' => 0,
@ -1554,7 +1565,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'js_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/userRoles',
'dataname' => '角色查询数据',
'status' => 0,
@ -1636,7 +1647,7 @@ class DownloadController extends BaseController {
$nowTime = date('Y-m-d');
$begtime1 = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
$endtime1 = $nowTime;
$map["apply_time"] = ["between",[strtotime($begtime1),strtotime($endtime1)]];
$map["apply_time"] = ["between",[strtotime($begtime1),strtotime($endtime1) + 3600*24]];
}
if(!empty($begtime) && !empty($endtime)) {
$map["apply_time"] = ["between",[strtotime($begtime),strtotime($endtime) + 3600 * 24]];
@ -1651,7 +1662,7 @@ class DownloadController extends BaseController {
$addtime = time();
$data = [
'logid' => 'hz_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Query/summary',
'dataname' => '数据汇总数据',
'status' => 0,
@ -3114,7 +3125,9 @@ class DownloadController extends BaseController {
'游戏订单',
'订单金额',
'支付方式',
'充值状态',
'游戏名称',
'设备类型',
'区服',
'角色名',
'部门长',
@ -3184,6 +3197,8 @@ class DownloadController extends BaseController {
// $value1['user_account'] = substr_replace($value1['user_account'],'************',3,12);
$value1['user_account'] = $this->encryption($value1['user_account']);
$value1['pay_order_number'] = $this->encryption($value1['pay_order_number']);
$value1['pay_status'] = isset(self::$payStatus[$value1['pay_status']]) ? self::$payStatus[$value1['pay_status']] : "未知状态";
$value1['sdk_version'] = getSDKTypeName($value1['sdk_version']);
switch ($value1['level']) {
case 3:
$value1['p_p_pro_account'] = $promoteData[$value1['parent_id']]['account'];
@ -3212,7 +3227,9 @@ class DownloadController extends BaseController {
$csvData["pay_order_number"] = $value1["pay_order_number"];
$csvData["pay_amount"] = $value1["pay_amount"];
$csvData["pay_way"] = $value1["pay_way"];
$csvData['pay_status'] = $value1['pay_status'];
$csvData["game_name"] = $value1["game_name"];
$csvData["sdk_version"] = $value1['sdk_version'];
$csvData["server_name"] = $value1["server_name"];
$csvData["game_player_name"] = $value1["game_player_name"];
$csvData["p_p_proinfo"] = $value1["p_p_proinfo"];
@ -3239,7 +3256,9 @@ class DownloadController extends BaseController {
$csvData1["pay_order_number"] = "--";
$csvData1["pay_amount"] = $income;
$csvData1["pay_way"] = "--";
$csvData1['pay_status'] = "--";
$csvData1["game_name"] = "--";
$csvData1["sdk_version"] = "--";
$csvData1["server_name"] = "--";
$csvData1["game_player_name"] = "--";
$csvData1["p_p_proinfo"] = "--";
@ -3278,7 +3297,7 @@ class DownloadController extends BaseController {
$conditions = json_encode($map,TRUE);
$data = [
'logid' => 'remitrecord_'.time(),
'admin_id' => PID,
'promote_id' => PID,
'type' => '/Home/Finance/withdrawRecord',
'dataname' => '汇款证明',
'status' => 0,

@ -177,7 +177,9 @@ class HomeController extends Controller
'game_score',
'recommend_level',
'game_size',
'introduction'
'introduction',
'flooring_page_video',
'supersign_status'
];
$map = ['id' => intval($gameId)];
$game = M('game', 'tab_')->field($columns)->where($map)->find();
@ -207,8 +209,15 @@ class HomeController extends Controller
}
$game['flooring_page_imgs'] = $imageUrls;
$screenshotIds = explode(',', $game['screenshot']) ?? [];
$screenshotUrls = [];
foreach ($screenshotIds as $screenshotId) {
$screenshotUrls[] = get_cover($screenshotId, 'path');
}
$game['screenshot'] = $screenshotUrls;
$isNewIos = false;
if ($gameSource['is_new_sdk'] == 1) {
if ($gameSource['is_new_sdk'] == 1) {
$isNewIos = true;
}

@ -22,6 +22,11 @@ class QueryController extends BaseController
2 => '微信',
];
public static $payStatus = [
0 => '下单未支付',
1 => '充值成功',
];
public function recharge($p = 0)
{
$page = intval(I('p', 1));
@ -85,8 +90,14 @@ class QueryController extends BaseController
}
}
}
if (isset($_REQUEST['pay_status']) && $_REQUEST['pay_status'] !== '') {
$payStatus = intval(I('pay_status'));
if (in_array($payStatus, array_keys(QueryController::$payStatus))) {
$map['tab_spend.pay_status'] = $payStatus;
}
}
$map['tab_spend.pay_time'] = ['between', [$begTime, $endTime - 1]];
$map['tab_spend.pay_status'] = 1;
$map['tab_spend.is_check'] = ['neq', 2];
$data = [];
@ -161,6 +172,8 @@ class QueryController extends BaseController
break;
}
$list['user_account'] = substr($list['user_account'], 0, 2) . '******' . substr($list['user_account'], 8);
$list['pay_status'] = isset(QueryController::$payStatus[$list['pay_status']]) ? QueryController::$payStatus[$list['pay_status']] : '未知状态';
$list['sdk_version'] = getSDKTypeName($list['sdk_version']);
//订单隐藏算法
$orderLen = strlen($list['pay_order_number']);
@ -210,6 +223,7 @@ class QueryController extends BaseController
$this->assign('serverData', $serverData['data']);
$this->assign('ownId', $ownId);
$this->assign('payWayData', QueryController::$payWay);
$this->assign('payStatusData', QueryController::$payStatus);
$this->meta_title = "订单查询";
$this->display();
}

@ -32,6 +32,8 @@
<input type="hidden" name="desc" value="{$game['features']}">
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
<input type="hidden" name="isNewIos" value="<?php if($isNewIos):?>1<?php else:?>0<?php endif;?>">
<input type="hidden" name="supersign_status" value="{$game['supersign_status']}" id="supersign_status">
<?php if ($isWechat):?>
<?php if ($isAndroid):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
@ -42,6 +44,31 @@
<div class="home">
<div class="home-fiexd" <?php if (empty($game['flooring_page_video'])):?> style="height: 0" <?php endif;?> >
<div class="home-fiexdBox">
<?php if (!empty($game['flooring_page_video'])):?>
<div class="home-video">
<video id="shakeVideo" src="{$game['flooring_page_video']}" autoplay controls muted webkit-playsinline="true" playsinline="true"></video>
</div>
<?php endif;?>
<div class="fiexd-heard">
<div class="fiexd-heardBox" style="display: none;">
<!-- <div>完成</div>-->
<img src="{$game['icon']}" alt="" style="ma">
<div class="fiexd-pay">
<!-- <span>App购买</span>-->
<div class="download">下载</div>
</div>
</div>
</div>
</div>
</div>
<div class="home-box">
<div class="heard">
<div style="height: 2.5rem;width: 2.5rem">
@ -86,7 +113,7 @@
</div>
<div class="slide_list">
<ul class="slide-box">
<volist name="game['flooring_page_imgs']" id="item">
<volist name="game['screenshot']" id="item">
<li class="slide-item">
<img src="{$item}" alt="">
</li>
@ -203,18 +230,33 @@
</div>
</div>
<div class="window" style="display: none;">
<div class="window" style="display: none;z-index: 1000">
<div class="containner">
<div class="containner-box">
<div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div>
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div>
<?php if ($game['dow_status'] ==1):?>
<?php if ($game['supersign_status'] ==1):?>
<div class="blue-btn" onclick="location.href='mobile.php/Ssg/pay/game_id/{$game[\'id\']}/promote_id/{$promoteId}'">¥10至尊下载</div>
<div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div>
<?php else:?>
<div class="blue-btn" onclick="layer.msg('该游戏已关闭超级签下载');">¥10至尊下载</div>
<?php endif;?>
<div class="gray-btn down-link" down-link="{$downloadUrl}">普通下载</div>
<?php else:?>
<div class="blue-btn" onclick="layer.msg('该游戏已关闭下载');">¥10至尊下载</div>
<div class="gray-btn down-link" onclick="layer.msg('该游戏已关闭下载');return false;" down-link="{$downloadUrl}">普通下载</div>
<?php endif;?>
</div>
</div>
</div>
<div class="second" style="display: none;">
<div class="second" style="display: none;z-index: 1000">
<div class="second-box">
<div class="title">升级IOS9后游戏打不开怎么办</div>
<div class="carousel">
@ -272,9 +314,10 @@
<?php
?>
<input type="hidden" id="dow_status" name="dow_status" value="{$game['dow_status']}">
<input type="hidden" id="cur_url" name="cur_url" value="{$cur_url}">
<input type="hidden" id="is_new_sdk" name="is_new_sdk" value="{$is_new_sdk}">
<div class="safari" style="display: none">
<div class="safari" style="display: none;z-index: 1000">
<div class="safari-heard">
<div>请选择在“Safari”中打开</div>
<img src="__IMG__/arror.png" alt="">
@ -291,6 +334,32 @@
</html>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script>
$(window).scroll(function () {
var v = ($(this).scrollTop()) / 100;
//为什么除以100是因为我希望当$(this).scrollTop()为100的过程中
//透明度由0变为1$(this).scrollTop()/100得到的值正好与opacity的范围[0,1]相符合。
$(".fiexd-heardBox").show();
$('.fiexd-heard').css('backgroundColor', 'rgba(255, 255, 255,' + v + ')');
var t = $(window).scrollTop();
if (t < 10) {
console.log(111)
$(".fiexd-heardBox").hide();
}
})
</script>
<script>
<?php if(!empty($game['flooring_page_video'])):?>
var video = document.getElementById("shakeVideo");
video.play();
document.addEventListener('WeixinJSBridgeReady',function(){
video.play();
},false);
<?php endif;?>
function is_tip_safari() {
var isTipSafari = false;
@ -347,6 +416,11 @@
});
});
$('.down-link').on('click', function () {
var dow_status = parseInt($('#dow_status').val());
if (dow_status == 0) {
layer.msg('该游戏已关闭下载');
return false;
}
var isTipSafari = is_tip_safari();
if (isTipSafari) {
$('.safari').show();
@ -433,6 +507,7 @@
document.body.style.overflow = 'hidden';
});
$(".window").click(function(){
var dow_status = parseInt($('#dow_status').val());
var isTipSafari = is_tip_safari();
if (isTipSafari) {
$('.safari').show();
@ -442,6 +517,12 @@
document.body.style.overflow = 'auto';
});
$(".gray-btn").click(function(){
var dow_status = parseInt($('#dow_status').val());
if (dow_status == 0) {
layer.msg('该游戏已关闭下载');
$(".window").hide();
return false;
}
var isTipSafari = is_tip_safari();
if (isTipSafari) {
$('.safari').show();
@ -452,7 +533,7 @@
// swiperGet();
document.body.style.overflow = 'hidden';
$(".window").hide();
})
});
$(".second").click(function(){
var isTipSafari = is_tip_safari();
if (isTipSafari) {
@ -535,3 +616,4 @@
</script>

@ -22,6 +22,7 @@
<input type="hidden" name="desc" value="{$game['features']}">
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
<input type="hidden" name="isNewIos" value="<?php if($isNewIos):?>1<?php else:?>0<?php endif;?>">
<input type="hidden" id="dow_status" name="dow_status" value="{$game['dow_status']}">
<?php if ($isWechat):?>
<?php if ($isAndroid):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
@ -45,6 +46,11 @@
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript">
$('.down-link').on('click', function () {
var dow_status = parseInt($('#dow_status').val());
if (dow_status == 0) {
layer.msg('该游戏已关闭下载');
return false;
}
if ($('.bn-rule').length > 0) {
$('.bn-rule').css('display','block')
$('.bn-rule').css('z-index','12')

@ -144,6 +144,19 @@
</select>
</div>
<div class="form-group normal_space">
<select id="pay_status" name="pay_status" class="reselect select_gallery" style="min-width:130px;">
<option value="-1">充值状态</option>
<foreach name="payStatusData" item="vo" key="k">
<if condition="$k eq I('pay_status',-1)">
<option value="{$k}" selected>{$vo}</option>
<else/>
<option value="{$k}">{$vo}</option>
</if>
</foreach>
</select>
</div>
<div class="form-group normal_space">
<input type="submit" class="submit" id='submit' url="{:U('Query/recharge','model='.$model['name'],false)}"
value="查询">
@ -169,8 +182,10 @@
<th>玩家账号</th>
<th>游戏订单</th>
<th>支付方式</th>
<th>充值状态</th>
<th>订单金额</th>
<th>游戏名称</th>
<th>设备类型</th>
<th>区服</th>
<th>角色名</th>
<th>部门长</th>
@ -192,8 +207,10 @@
<td title="玩家ID{$vo.user_id}">{$vo.user_account}</td>
<td>{$vo.pay_order_number}</td>
<td>{:get_pay_way($vo['pay_way'])}</td>
<td>{$vo.pay_status}</td>
<td>{$vo.pay_amount}</td>
<td>{$vo.game_name}</td>
<td>{$vo.sdk_version}</td>
<td>{$vo.server_name}</td>
<td>{$vo.game_player_name}</td>
<td>{$vo.p_p_pro_account}({$vo.p_p_pro_real_name})</td>
@ -210,6 +227,7 @@
<td>合计</td>
<td>--</td>
<td>--</td>
<td>--</td>
<td>{$income}</td>
<td>--</td>
<td>--</td>

@ -308,9 +308,9 @@ class SsgController extends BaseController {
$this->assign("app_qq", $appqq);
$this->display();
}
public function getGamaList()
{
$user = session("user_auth");
$game_name = I("game_name", false);
$type = I("type",false);
@ -318,8 +318,9 @@ class SsgController extends BaseController {
if($game_name){
$map["game_name"] = array("like","%{$game_name}%");
}
$map["sdk_version"]=2;
$map["game_status"]=1;
$map["sdk_version"] = 2;
$map["game_status"] = 1;
$map["supersign_status"] = 1;
$game_list = M("game", "tab_")->field("*, id as game_id")->where($map)->select();
for ($i=0; $i < count($game_list); $i++) {
$game_list[$i]["game_icon"] = get_cover($game_list[$i]["icon"], 'path');

@ -617,9 +617,6 @@ MODIFY COLUMN `type` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '类型 0
-- user表注册类型添加7虚拟
ALTER TABLE `tab_user` MODIFY COLUMN `register_type` tinyint(2) DEFAULT '1' COMMENT '注册方式 0游客1账号 2 手机 3微信 4QQ 5百度 6微博 7虚拟';
ALTER TABLE `tab_game_source` add COLUMN `is_new_sdk` tinyint(2) DEFAULT '0' COMMENT '是否新SDK(IOS)';
--1 2019-12-03 ---
ALTER TABLE tab_game MODIFY COLUMN `game_score` double(3,1) DEFAULT '0' COMMENT '游戏评分';
@ -652,3 +649,10 @@ CREATE TABLE `tab_server_notice` (
INSERT INTO `sys_model` ( `name`, `title`, `extend`, `relation`, `need_pk`, `field_sort`, `field_group`, `attribute_list`, `attribute_alias`, `template_list`, `template_add`, `template_edit`, `list_grid`, `list_row`, `search_key`, `search_list`, `create_time`, `update_time`, `status`, `engine_type`)
VALUES ('ServerNotice', '游戏区服预告', '0', '', '1', '{\"1\":[\"289\",\"288\",\"290\",\"291\",\"293\",\"292\",\"287\",\"286\",\"282\",\"281\",\"283\",\"284\",\"285\",\"280\"]}', '1:基础', '', '', '', '', '', 'id:编号\r\ngame_name:游戏名称\r\nserver_name:区服名称\r\nshow_status|get_info_status:区服状态\r\nstart_time|set_show_time:开服时间\r\nserver_version:运营平台\r\ndevelopers:开发商\r\nid:操作:[EDIT]&id=[id]|编辑,ServerNotice/del?ids=[id]|删除', '10', '', '', '1480318911', '1493879217', '1', 'MyISAM');
--- liuweiwen 2019-12-09
ALTER TABLE tab_game ADD `flooring_page_video` varchar(150) NOT NULL DEFAULT '' COMMENT '落地页视频';
ALTER TABLE tab_game ADD `supersign_status` tinyint(1) DEFAULT '1' COMMENT '超级签开关1-开启0-关闭';
-- 新旧IOS打包标识
ALTER TABLE `tab_game_source` add COLUMN `is_new_sdk` tinyint(2) DEFAULT '0' COMMENT '是否新SDK(IOS)';

@ -1,3 +1,4 @@
.home{
width: 100%;
font-family:PingFang SC;
@ -5,6 +6,67 @@
.home-box{
padding: 0.5rem 0.37rem 0 0.31rem;
}
.home-fiexd{
height: 4.22rem;
width: 100%;
background-color: #fff;
}
.home-fiexdBox{
position: fixed;
width: 100%;
top: 0;
left: 0;
z-index: 999;
}
.home-video{
width: 100%;
height: 4.22rem;
background-color: #fff;
}
.home-video video{
width: 100%;
height: 100%;
}
.fiexd-heard{
width: 100%;
height: 1.2rem;
background: rgba(255, 255, 255, 0);
}
.fiexd-heardBox{
padding: 0 0.3rem;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.32rem;
color: #007AFF;
line-height: 1.2rem;
}
.fiexd-heardBox>img{
width: 0.6rem;
height: 0.6rem;
border-radius: 0.1rem;
}
.fiexd-pay{
display: flex;
align-items: center;
}
.fiexd-pay>span{
color: #A9A9A9;
font-size: 0.2rem;
margin-right: 0.14rem;
}
.fiexd-pay>div{
width: 1.5rem;
height: 0.6rem;
background-color: #007AFF;
border-radius: 0.3rem;
color: 0.32rem;
text-align: center;
line-height: 0.6rem;
color: #fff;
font-weight: 500;
margin-top: 0.3rem;
}
.heard{
width: 100%;
display: flex;
@ -511,3 +573,5 @@
font-weight: 500;
}

Loading…
Cancel
Save