|
|
|
|
<extend name="Public/promote_base"/>
|
|
|
|
|
<block name="css">
|
|
|
|
|
<link href="__CSS__/20180207/data.css" rel="stylesheet">
|
|
|
|
|
<link href="__CSS__/20180207/game.css" rel="stylesheet">
|
|
|
|
|
<link href="__CSS__/game_detailed.css" rel="stylesheet">
|
|
|
|
|
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
|
|
|
|
|
<link href="__STATIC__/jqueryselect/css/layui.css" rel="stylesheet">
|
|
|
|
|
<script src="__STATIC__/jqueryselect/js/MySearch.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
<style>
|
|
|
|
|
body {
|
|
|
|
|
font: 400 14px/1.5 'Microsoft YaHei','微软雅黑',Tahoma,Verdana,Arial,'宋体',sans-serif;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.zclip embed {
|
|
|
|
|
margin-top: -14px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.trunk-list {
|
|
|
|
|
position: relative;
|
|
|
|
|
min-height: 66vh;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pagenation {
|
|
|
|
|
position: relative;
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 5vh;
|
|
|
|
|
bottom: 1%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.pic-prev:hover, .pic-next:hover {
|
|
|
|
|
background-color: #4ac5c3;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<style>
|
|
|
|
|
.layui-btn{
|
|
|
|
|
background-color: #5fb878;
|
|
|
|
|
}
|
|
|
|
|
.label{
|
|
|
|
|
padding: 2px 5px;
|
|
|
|
|
background: #5FB878;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
color: #fff;
|
|
|
|
|
display: block;
|
|
|
|
|
line-height: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
margin: 2px 5px 2px 0;
|
|
|
|
|
float: left;
|
|
|
|
|
}
|
|
|
|
|
i{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 18px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
line-height: 18px;
|
|
|
|
|
text-align: center
|
|
|
|
|
}
|
|
|
|
|
.label:hover{color: white;}
|
|
|
|
|
.label i:hover {
|
|
|
|
|
background-color: #009E94;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
}
|
|
|
|
|
.layui-form-select dl dd:hover {
|
|
|
|
|
background-color: #5FB878;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
.AD{
|
|
|
|
|
width: 210px;
|
|
|
|
|
margin-left: 40px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
max-height: 200px;
|
|
|
|
|
border: 2px solid #5fb878;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
padding: 1px 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#add_promote_data label {
|
|
|
|
|
width: 70px;
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#add_promote_data .AD {
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
margin-bottom: 2px;
|
|
|
|
|
overflow:scroll;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
<div class="page-list normal_list apply-my_game-list">
|
|
|
|
|
<div class="trunk-title">
|
|
|
|
|
<div class="location">
|
|
|
|
|
<div class="location-container">当前位置:<span>游戏管理></span><span>我的游戏</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<img src="__IMG__/20180207/icon_normal_game.png"><span class="title_main">游戏列表</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="trunk-content article">
|
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
|
<div class="tab">
|
|
|
|
|
<a href="{:U('index')}" class="">全部游戏</a>
|
|
|
|
|
<a href="{:U('index', array('type' => 10))}" class="">Android+ios游戏</a>
|
|
|
|
|
<a href="{:U('index', array('type' => 2))}" class="">IOS游戏</a>
|
|
|
|
|
<a href="{:U('index', array('type' => 1))}" class="">Android游戏</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" />
|
|
|
|
|
<img src="/Public/Home/images/hot.png" style="width: 20px;
|
|
|
|
|
height: 20px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 2px;top:0" />
|
|
|
|
|
</a>
|
|
|
|
|
-->
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
<div class="tab marg_top20" style="clear:both;display: flex;">
|
|
|
|
|
<div style="display: flex;">
|
|
|
|
|
<if condition="$promoteRole eq 1">
|
|
|
|
|
<div class="btn btn-role highlight" promote-role="1">
|
|
|
|
|
<p>本账号</p>
|
|
|
|
|
</div>
|
|
|
|
|
<else/>
|
|
|
|
|
<div class="btn btn-role" promote-role="1">
|
|
|
|
|
<p>本账号</p>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if condition="$thisParentPromoteId eq 0">
|
|
|
|
|
<if condition="$promoteRole eq 2">
|
|
|
|
|
<div class="btn btn-role highlight" style="border-left: 0;<?=(isMinPromote($pID)==0)?'border-right: 0;':''?>" promote-role="2">
|
|
|
|
|
<p>组长</p>
|
|
|
|
|
</div>
|
|
|
|
|
<else/>
|
|
|
|
|
<div class="btn btn-role" style="border-left: 0;<?=(isMinPromote($pID)==0)?'border-right: 0;':''?>" promote-role="2">
|
|
|
|
|
<p>组长</p>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<eq name="pID|isMinPromote" value="0">
|
|
|
|
|
<if condition="$promoteRole eq 3">
|
|
|
|
|
<div class="btn btn-role highlight" promote-role="3">
|
|
|
|
|
<p>推广员</p>
|
|
|
|
|
</div>
|
|
|
|
|
<else/>
|
|
|
|
|
<div class="btn btn-role" promote-role="3">
|
|
|
|
|
<p>推广员</p>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
</eq>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="zwm_examinediv">-->
|
|
|
|
|
<!-- <a class="btn_calc" href="javascript:;">审核通过</a>-->
|
|
|
|
|
<!-- <a class="btn_calc examine_a" href="{:U('my_game_ch')}">审核中</a>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<form class="marg_top20" action="{:U('my_game',array('row'=>I('get.row')))}" method="post"
|
|
|
|
|
enctype="multipart/form-data">
|
|
|
|
|
<div class="form-group normal_space fr">
|
|
|
|
|
<input type="submit" class="submit zwm_submit" value="查询">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group normal_space fr">
|
|
|
|
|
<select id="game_id" name="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.id}" title="{$vo.relation_game_name}"
|
|
|
|
|
<if condition="I('game_id') eq $vo['id']">selected</if>
|
|
|
|
|
>{$vo.relation_game_name} </option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fr">
|
|
|
|
|
<select id="promote_id" name="promote_id" class="reselect select_gallery" style="min-width:200px;width: 175px;">
|
|
|
|
|
<empty name="promoteData">
|
|
|
|
|
<option value="" selected="selected">请选择渠道</option>
|
|
|
|
|
<else/>
|
|
|
|
|
<option value="">请选择渠道</option>
|
|
|
|
|
<volist name="promoteData" id="vo">
|
|
|
|
|
<if condition="$vo.id eq $promoteId">
|
|
|
|
|
<option value="{$vo.id}" title="{$vo.account}({$vo.nickname})" selected="selected">
|
|
|
|
|
{$vo.account}({$vo.nickname})
|
|
|
|
|
</option>
|
|
|
|
|
<else/>
|
|
|
|
|
<option value="{$vo.id}" title="{$vo.account}({$vo.nickname})">
|
|
|
|
|
{$vo.account}({$vo.nickname})
|
|
|
|
|
</option>
|
|
|
|
|
</if>
|
|
|
|
|
</volist>
|
|
|
|
|
</empty>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group normal_space fr" style="display: none;">
|
|
|
|
|
<input id="promote_role" name="promote_role">
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="trunk-list zwm_trunklist">
|
|
|
|
|
|
|
|
|
|
<div class="mygame_bgtable">
|
|
|
|
|
<empty name="list_data">
|
|
|
|
|
<if condition="get_parent_id(PID) eq 0">
|
|
|
|
|
<ul class="game-ul">
|
|
|
|
|
<li class="game-li" style="text-align: center;">
|
|
|
|
|
<img src="__IMG__/20180207/icon_wushujv2.png"/>
|
|
|
|
|
<p style="line-height: 40px;color: #A5A5A5;">暂无数据</p>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<else/>
|
|
|
|
|
<ul class="game-ul">
|
|
|
|
|
<li class="game-li" style="text-align: center;">
|
|
|
|
|
<img src="__IMG__/20180207/icon_wushujv2.png"/>
|
|
|
|
|
<p style="line-height: 40px;color: #A5A5A5;">暂无数据</p>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</if>
|
|
|
|
|
<else/>
|
|
|
|
|
<ul class="game-ul">
|
|
|
|
|
<volist name="list_data" id="vo">
|
|
|
|
|
<li class="game-li">
|
|
|
|
|
<div class="media">
|
|
|
|
|
<div class="img-box" onclick="viewGameDetailed({$vo.id})">
|
|
|
|
|
<img src="__ROOT__{$vo.icon|get_cover='path'}"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="game-msg" style="width: calc(75% - 90px);">
|
|
|
|
|
<h5 class="game-title">{$vo.game_name}</h5>
|
|
|
|
|
<p><span>{$vo.features}</span></p>
|
|
|
|
|
<p>
|
|
|
|
|
<span>平台:<span>{:getSDKTypeName($vo['sdk_version'])}</span> </span>
|
|
|
|
|
<span>版本:<span>{$vo.version}</span> </span>
|
|
|
|
|
<span>大小:<span>{$vo.game_size}</span> </span>
|
|
|
|
|
<span>游戏类型:<span>{$vo.game_type_name}</span> </span>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<?php $httpHost = rtrim($_SERVER['HTTP_HOST'], '/');?>
|
|
|
|
|
<?php $qrcode = base64_encode(base64_encode('http://'.$httpHost.get_cover($vo['icon'],'path')));?>
|
|
|
|
|
<div class="game-operating" style="width: 25%;">
|
|
|
|
|
<if condition="$promoteRole == 1">
|
|
|
|
|
<span class="add-game" game-id="{$vo.id}" style="cursor: pointer;margin-right: 10px;"><u>添加下级游戏</u></span>
|
|
|
|
|
</if>
|
|
|
|
|
<?php $downloadUrl = get_apply_dow_url($vo['id'],$vo['promote_id']);?>
|
|
|
|
|
<span class="game-link" data-qrcode="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode($downloadUrl)),'logo'=>$qrcode])}" data-url="{$downloadUrl}" style="cursor: pointer;margin-right: 10px;"><u>复制下载链接</u></span>
|
|
|
|
|
<?php $flooringPageUrl = 'http://'.C('APPLY_DOWN_DOMAIN').U('Home/promitionofregestion',array('gid'=>$vo['id'],'pid'=>$vo['promote_id']));?>
|
|
|
|
|
<span class="game-link" data-qrcode="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode($flooringPageUrl)),'logo'=>$qrcode])}" data-url="{$flooringPageUrl}" style="cursor: pointer;margin-right: 10px;"><u>落地页链接</u></span>
|
|
|
|
|
<span class="down-game-btn" data-id="{$vo.id}" style="cursor: pointer;margin-right: 10px;color: #999"><u>下架</u></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
|
</volist>
|
|
|
|
|
</ul>
|
|
|
|
|
</empty>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" class="accc" value="{:PROMOTE_ACCOUNT}">
|
|
|
|
|
|
|
|
|
|
<div class="pagenation clearfix">
|
|
|
|
|
{$_page}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="page-explain promote-mychlid-explain pos_relat">
|
|
|
|
|
<div class="trunk-content article border_normal">
|
|
|
|
|
<table class="desccontent">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="title" style="width: 100px;display: inline-block;">温馨提示:</td>
|
|
|
|
|
<td class="det"><p>1.在您传输渠道包时,请勿使用QQ等即时通讯工具,以免渠道号丢失。推荐使用邮箱传输或分享下载链接。</p>
|
|
|
|
|
<p>2.游戏审核需要1个工作日,如需加速审核请联系商务》联系我们</p></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-box" id="add_game">
|
|
|
|
|
<div class="game-window-title">
|
|
|
|
|
<p style="width: calc(80% - 20px)">添加下级游戏</p>
|
|
|
|
|
<p class="add-game-close" style="width: calc(20% - 20px);text-align: right;"><i class="iconfont iconguanbi"></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content">
|
|
|
|
|
<div class="game-window-content-eveyone">
|
|
|
|
|
<label>添加游戏:</label>
|
|
|
|
|
<span name="add_game_name" id="add_game_name">11111</span>
|
|
|
|
|
<input name="add_game_id" id="add_game_id" style="display: none;">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content" style="width: auto;">
|
|
|
|
|
<div class="game-window-content-eveyone">
|
|
|
|
|
<label>游戏介绍:</label>
|
|
|
|
|
<span name="add_features" id="add_game_features" style="width: 330px;"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content">
|
|
|
|
|
<div class="game-window-content-eveyone" style="align-items: center;">
|
|
|
|
|
<label>设备类型:</label>
|
|
|
|
|
<span name="add_sdk_version" id="add_sdk_version" class="font-add"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content">
|
|
|
|
|
<div class="game-window-content-eveyone">
|
|
|
|
|
<label>添加下级:</label>
|
|
|
|
|
<div class="">
|
|
|
|
|
<div id="add_promote_data">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-btns" style="margin-top: 10px;">
|
|
|
|
|
<div class="game-window-btn-box">
|
|
|
|
|
<button class="game-window-btn btn-blue" id="add_game_save_btn" style="margin-right: 20px;">保存</button>
|
|
|
|
|
<button class="game-window-btn btn-gray" id="add_game_close_btn">取消</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-box" id="game_link">
|
|
|
|
|
<div class="game-window-title">
|
|
|
|
|
<p style="width: calc(80% - 20px)">复制结果</p>
|
|
|
|
|
<p class="add-game-close" style="width: calc(20% - 20px);text-align: right;"><i class="iconfont iconguanbi"></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content" style="text-align: center;width: auto;padding-bottom: 0px;">
|
|
|
|
|
<div class="game-window-content-eveyone" style="display: block;color: #3A97FF;font-size: 1.1rem;">
|
|
|
|
|
<label style="margin-right: 20px;">下载地址:</label>
|
|
|
|
|
<span id="game_link_address"></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <div class="game-window-btns" style="margin-top: 10px;">-->
|
|
|
|
|
<!-- <div class="game-window-btn-box">-->
|
|
|
|
|
<!-- <input class="game-window-btn btn-blue" type="button" id="download_copy" data-url="" value="复制">-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content" style="text-align: center;width: auto;padding-top: 5px;">
|
|
|
|
|
<div class="game-window-content-eveyone" style="display: block;color: #999;font-size: 1.1rem;">
|
|
|
|
|
<span>复制成功,ctrl+v粘贴即可</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content" style="text-align: center;width: auto;padding-bottom: 5px;">
|
|
|
|
|
<div class="game-window-content-eveyone" style="display: block;color: #999;font-size: 1.1rem;">
|
|
|
|
|
<img id="game_link_ercode" style="width: 200px;height: 200px;">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-window-content" style="text-align: center;width: auto;padding-top: 5px;">
|
|
|
|
|
<div class="game-window-content-eveyone" style="display: block;color: #999;font-size: 1.1rem;">
|
|
|
|
|
<span>下载地址二维码</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="game-window-bg"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<textarea id="game_link_address_copy" style="opacity: 0; position: relative;color: #fff;background-color: #fff;border: 0;"></textarea>
|
|
|
|
|
|
|
|
|
|
<div class="detail-body" style="display: none;">
|
|
|
|
|
<div class="detail-box">
|
|
|
|
|
<a href="javascript:;" class="game-detail-close jq-detail-close"><i class="iconfont iconguanbi" style="font-size: 40px;"></i></a>
|
|
|
|
|
<div class="game-detail-inner">
|
|
|
|
|
<div class="detail-list">
|
|
|
|
|
<dl>
|
|
|
|
|
<dt>
|
|
|
|
|
<img src="" id="game_icon">
|
|
|
|
|
</dt>
|
|
|
|
|
<dd class="game-title" id="game_name"></dd>
|
|
|
|
|
<dd class="game-word">
|
|
|
|
|
<span><b>版本:</b><span id="version"></span></span>
|
|
|
|
|
<span><b>类型:</b><span id="game_type_name"></span></span>
|
|
|
|
|
<span><b>大小:</b><span id="game_size"></span></span>
|
|
|
|
|
<span><b>更新时间:</b><span id="create_time"></span></span>
|
|
|
|
|
<span><b>下载:</b><span id="dow_num"></span></span>
|
|
|
|
|
</dd>
|
|
|
|
|
<dd class="game-tab">
|
|
|
|
|
<i>西游</i>
|
|
|
|
|
<i>回合</i>
|
|
|
|
|
<i>回合</i>
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="game-detail-outer">
|
|
|
|
|
<div class="game-detail-left fl">
|
|
|
|
|
<div class="detail-con game-synopsis panel panel-bordered">
|
|
|
|
|
<div class="panel-heading"><h3 class="panel-title">游戏简介</h3></div>
|
|
|
|
|
<p id="features"></p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="detail-con game-pic panel panel-bordered">
|
|
|
|
|
<div class="panel-heading"><h3 class="panel-title">游戏截图</h3></div>
|
|
|
|
|
<div class="pic-box">
|
|
|
|
|
<div class="game-slides">
|
|
|
|
|
<ul style="width: 1400px;" class="game-slide-li">
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<a href="javascript:;" class="pic-prev" style="left: 10px;">
|
|
|
|
|
<i class="iconfont iconfanhui" style="font-size: 30px;margin-left: 4px;color: #fff;"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a href="javascript:;" class="pic-next down-img" style="right: 10px;">
|
|
|
|
|
<i class="iconfont icongengduo" style="font-size: 30px;margin-left: -7px;color: #fff;"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class="game-detail-right fr">-->
|
|
|
|
|
<!-- <div class="detail-con game-date panel panel-bordered">-->
|
|
|
|
|
<!-- <div class="panel-heading"><h3 class="panel-title">游戏开服</h3></div>-->
|
|
|
|
|
<!-- <div class="date-box ">-->
|
|
|
|
|
<!-- <ul class="date-tit">-->
|
|
|
|
|
<!-- <li>时间</li>-->
|
|
|
|
|
<!-- <li>服务器名称</li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- <div class="list-outer ">-->
|
|
|
|
|
<!-- <ul class="date-list">-->
|
|
|
|
|
<!-- <li><span class="android"></span></li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- <ul class="date-list">-->
|
|
|
|
|
<!-- <li><span>09-06 16:00</span></li>-->
|
|
|
|
|
<!-- <li>天宫73区</li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- <ul class="date-list">-->
|
|
|
|
|
<!-- <li><span>09-07 16:00</span></li>-->
|
|
|
|
|
<!-- <li>天宫74区</li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- <ul class="date-list">-->
|
|
|
|
|
<!-- <li><span>09-09 16:00</span></li>-->
|
|
|
|
|
<!-- <li>天宫75区</li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- <ul class="date-list">-->
|
|
|
|
|
<!-- <li><span>09-10 16:00</span></li>-->
|
|
|
|
|
<!-- <li>天宫76区</li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- <div class="detail-con game-pack panel panel-bordered">-->
|
|
|
|
|
<!-- <div class="panel-heading"><h3 class="panel-title">游戏礼包</h3></div>-->
|
|
|
|
|
<!-- <div class="pack-box ">-->
|
|
|
|
|
<!-- <ul id="GamePackInfo">-->
|
|
|
|
|
<!-- <li class="">-->
|
|
|
|
|
<!-- <div class="pack-inner">-->
|
|
|
|
|
<!-- <p class="pack-tit">《天宫计》新手礼包</p>-->
|
|
|
|
|
<!-- <p class="pack-word">天女礼物礼包*1、悬赏令*1、铜币*5000</p>-->
|
|
|
|
|
<!-- <p class="pack-num">剩余:<b>82.2%</b></p>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<!-- <li class="current">-->
|
|
|
|
|
<!-- <div class="pack-inner">-->
|
|
|
|
|
<!-- <p class="pack-tit">《天宫计》媒体礼包</p>-->
|
|
|
|
|
<!-- <p class="pack-word">技能书礼包*1、宠物经验丹*1、铜币*5000</p>-->
|
|
|
|
|
<!-- <p class="pack-num">剩余:<b>83.3%</b></p>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </li>-->
|
|
|
|
|
<!-- </ul>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
<!-- </div>-->
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</block>
|
|
|
|
|
<block name='script'>
|
|
|
|
|
<script src="__STATIC__/zeroclipboard/jquery.zclip.min.js"></script>
|
|
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
highlight_subnav("{:U('Apply/index')}");
|
|
|
|
|
setValue('type', {$Think.request.type |default = '""'});
|
|
|
|
|
setValue('sdk_version', {$Think.request.sdk_version |default = '""'});
|
|
|
|
|
setValue('promote_id', {$Think.request.promote_id |default = '""'});
|
|
|
|
|
setValue('promote_role', {$Think.request.promote_role |default = 1});
|
|
|
|
|
setValue('row', '{:I("get.row",10)}');
|
|
|
|
|
|
|
|
|
|
function p_click(v, q) {
|
|
|
|
|
var username = $('.accc').val();
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '游戏推广',
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0.8,
|
|
|
|
|
area: ['80%', '90%'],
|
|
|
|
|
// content: 'http://192.168.0.206/union/commissioner/login?game_ids='+v+'&username='+username+(q == 1 ? '&quick=1' : '') //iframe的url
|
|
|
|
|
content: 'http://union.biekeng.com/union/commissioner/login?game_ids=' + v + '&username=' + username + (q == 1 ? '&quick=1' : '') //iframe的url
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('.btn-role').on('click', function () {
|
|
|
|
|
var thisElement = $(this);
|
|
|
|
|
|
|
|
|
|
if (!thisElement.hasClass('highlight')) {
|
|
|
|
|
var promoteRole = thisElement.attr('promote-role');
|
|
|
|
|
console.log(promoteRole);
|
|
|
|
|
|
|
|
|
|
setValue('promote_role', promoteRole);
|
|
|
|
|
|
|
|
|
|
$('.btn-role').removeClass('highlight');
|
|
|
|
|
thisElement.addClass('highlight');
|
|
|
|
|
|
|
|
|
|
if (promoteRole == 1) {
|
|
|
|
|
location.href = "{:U('my_game')}";
|
|
|
|
|
} else {
|
|
|
|
|
getPromoteListByRole(promoteRole);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function getPromoteListByRole(promoteRole)
|
|
|
|
|
{
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
url: "__URL__/getPromoteListByRole",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
data: {'promote_role': promoteRole},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
var html = '<option value="">请选择渠道</option>';
|
|
|
|
|
|
|
|
|
|
if (data.length > 0) {
|
|
|
|
|
$.each(data, function (index, item) {
|
|
|
|
|
var promoteTitle = item['account'] + '(' + item['nickname'] + ')';
|
|
|
|
|
|
|
|
|
|
html += '<option value="' + item['id'] + '" title="' + promoteTitle + '">';
|
|
|
|
|
html += promoteTitle;
|
|
|
|
|
html += '</option>';
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#promote_id').html(html);
|
|
|
|
|
$('#promote_id').val();
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.spread').click(function () {
|
|
|
|
|
var username = $('.accc').val();
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '游戏大全推广',
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0.8,
|
|
|
|
|
area: ['80%', '90%'],
|
|
|
|
|
content: 'http://union.biekeng.com/union/commissioner/login?username=' + username //iframe的url
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (navigator.userAgent.indexOf('Firefox') >= 0) {
|
|
|
|
|
$(".btn_erwei").text("右击保存图片");
|
|
|
|
|
}
|
|
|
|
|
var row = '{$row|default=10 }'; //获取后台传来的分页条数
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.jslooklaunch').on('click', function () {
|
|
|
|
|
var that = $(this);
|
|
|
|
|
var gamename = $.trim(that.attr('data-game'));
|
|
|
|
|
var launch = $.trim(that.attr('data-launch'));
|
|
|
|
|
var url = $.trim(that.attr('data-url'));
|
|
|
|
|
|
|
|
|
|
if (url) {
|
|
|
|
|
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: "【" + gamename + "】" + launch,
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0.8,
|
|
|
|
|
area: ['1062px', '80%'],
|
|
|
|
|
content: url,//iframe的url
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//打包失败提示
|
|
|
|
|
$(".js_sc").click(function () {
|
|
|
|
|
var applyid = $(this).attr('data-url');
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('Package/package')}",
|
|
|
|
|
type: 'post',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {applyid: applyid},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
if (data.status == 1) {
|
|
|
|
|
layer.msg('打包中!', {
|
|
|
|
|
icon: 6,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
window.location.reload();
|
|
|
|
|
}, 1500);
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg('<p class="zwm_tit">打包失败!</p><p class="zwm_detation">暂无渠道包</p>', {
|
|
|
|
|
icon: 5,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".js_ioscopy").click(function () {
|
|
|
|
|
var en = $(this).attr('enable_status');
|
|
|
|
|
if (en != '1') {
|
|
|
|
|
layer.msg("暂无下载内容", {icon: 2});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
//下载二维码
|
|
|
|
|
$(".btn_erwei").click(function () {
|
|
|
|
|
var img_url = "http://{$_SERVER['HTTP_HOST']}" + $(this).siblings("img").attr("src");
|
|
|
|
|
var $a = $("<a></a>").attr("href", img_url).attr("download", "img.png");
|
|
|
|
|
$a[0].click();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".js_androidcopy").click(function () {
|
|
|
|
|
var en = $(this).attr('enable_status');
|
|
|
|
|
if (en != '1') {
|
|
|
|
|
layer.msg("暂无下载内容", {icon: 2});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.down-game-btn').on({
|
|
|
|
|
click: function() {
|
|
|
|
|
var id = $(this).attr('data-id')
|
|
|
|
|
layer.confirm('确定要下架游戏?', {icon: 3, title:'提示'}, function(index){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('Promote/downGame')}",
|
|
|
|
|
data: {game_id: id, promote_id:{$promoteId}},
|
|
|
|
|
type: 'post',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function(response) {
|
|
|
|
|
layer.msg(response.msg, {time: 1000}, function() {
|
|
|
|
|
window.location.href = window.location.href
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//打包失败提示
|
|
|
|
|
$(".js_xz").click(function () {
|
|
|
|
|
var xz = $(this).attr('href');
|
|
|
|
|
if (xz == '#' || xz == '') {
|
|
|
|
|
layer.msg('暂无素材', {
|
|
|
|
|
icon: 7,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//打包失败提示
|
|
|
|
|
$(".js_xzb").click(function () {
|
|
|
|
|
var xz = $(this).attr('href');
|
|
|
|
|
var en = $(this).attr('enable_status');
|
|
|
|
|
if (xz == '#' || xz == '' || en != '1') {
|
|
|
|
|
$(this).attr('href', '#');
|
|
|
|
|
layer.msg('暂无渠道包', {
|
|
|
|
|
icon: 7,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//打包成功提示
|
|
|
|
|
$(".js_cxsc").click(function () {
|
|
|
|
|
var applyid = $(this).attr('data-url');
|
|
|
|
|
layer.msg('打包申请正在提交', {
|
|
|
|
|
icon: 16,
|
|
|
|
|
shade: [.3, '#000'],
|
|
|
|
|
time: 315360000000
|
|
|
|
|
});
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('Package/package')}",
|
|
|
|
|
type: 'post',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {applyid: applyid},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
|
|
|
|
|
if (data.status == 1) {
|
|
|
|
|
layer.msg('打包中!', {
|
|
|
|
|
icon: 6,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
window.location.reload();
|
|
|
|
|
}, 1500);
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg('<p class="zwm_tit">打包失败!</p><p class="zwm_detation">暂无渠道包</p>', {
|
|
|
|
|
icon: 5,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//打包失败提示
|
|
|
|
|
$(".js_ewm").click(function () {
|
|
|
|
|
|
|
|
|
|
layer.msg('暂无下载', {
|
|
|
|
|
icon: 7,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//点击小图标二维码显示大图片二维码
|
|
|
|
|
$(".js_erwei").click(function () {
|
|
|
|
|
var en = $(this).attr('enable_status');
|
|
|
|
|
if (en != '1') {
|
|
|
|
|
layer.msg('暂无下载', {
|
|
|
|
|
icon: 7,
|
|
|
|
|
time: 2000 //2秒关闭(如果不配置,默认是3秒)
|
|
|
|
|
});
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var that = $(this);
|
|
|
|
|
that.closest('table').find('.js_erwei').removeClass('active');
|
|
|
|
|
that.closest('table').find('.imgbig_erwei').hide();
|
|
|
|
|
|
|
|
|
|
var imgb = that.siblings('.imgbig_erwei');
|
|
|
|
|
if (that.hasClass('active')) {
|
|
|
|
|
that.removeClass('active');
|
|
|
|
|
imgb.hide();
|
|
|
|
|
} else {
|
|
|
|
|
that.addClass('active');
|
|
|
|
|
imgb.show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断但是最后两条信息时,点击小的二维码,大的二维码在上面显示
|
|
|
|
|
var index = that.closest('tr').index();
|
|
|
|
|
|
|
|
|
|
if (parseInt(row) - parseInt(index + 1) < 2) {
|
|
|
|
|
that.next().css({
|
|
|
|
|
top: 'auto',
|
|
|
|
|
bottom: '22px'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).on('click', function (event) {
|
|
|
|
|
var event = event || window.event;
|
|
|
|
|
var target = $(event.target);
|
|
|
|
|
|
|
|
|
|
if (target.hasClass('erwei_span') || target.closest('.erwei_span').length > 0) {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
imgb.hide();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
$('.download').click(function () {
|
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
|
var text = $(this).text();
|
|
|
|
|
if (text == '下载') {
|
|
|
|
|
if (href == '#' || href == 'javascript:;') {
|
|
|
|
|
layer.msg("暂无下载内容", {icon: 2});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.add-game').on('click', function () {
|
|
|
|
|
var thisElement = $(this);
|
|
|
|
|
var gameId = thisElement.attr('game-id');
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
url: "__URL__/getGameInfo",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
data: {'game_id': gameId},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
console.log(data);
|
|
|
|
|
$('#add_game_name').text(data.game_data.game_name);
|
|
|
|
|
$('#add_game_id').val(data.game_data.id);
|
|
|
|
|
$('#add_game_features').text(data.game_data.features);
|
|
|
|
|
$('#add_sdk_version').text(data.game_data.sdk_name);
|
|
|
|
|
console.log(data.game_data.sdk_version);
|
|
|
|
|
|
|
|
|
|
var tagData = [];
|
|
|
|
|
if (data.promote_data.length > 0) {
|
|
|
|
|
var html ='';
|
|
|
|
|
|
|
|
|
|
$.each(data.promote_data, function (index, item) {
|
|
|
|
|
var promoteName = item.account + '(' + (item.real_name ? item.real_name : '') +')';
|
|
|
|
|
var jsonData = {};
|
|
|
|
|
jsonData.name = promoteName;
|
|
|
|
|
jsonData.id = item.id;
|
|
|
|
|
tagData.push(jsonData);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$.myMethod("#add_promote_data",tagData,"add_promote_ids")
|
|
|
|
|
$(".sumbit").on("click",function(){
|
|
|
|
|
console.log($("form").serialize())
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#add_game').show();
|
|
|
|
|
$('.game-window-bg').show();
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.add-game-close').on('click', function () {
|
|
|
|
|
$(this).parent().parent('.game-window-box').hide();
|
|
|
|
|
$('.game-window-bg').hide();
|
|
|
|
|
delMyMethod();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#add_game_close_btn').on('click', function () {
|
|
|
|
|
$(this).parent().parent().parent('.game-window-box').hide();
|
|
|
|
|
$('.game-window-bg').hide();
|
|
|
|
|
delMyMethod();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function delMyMethod()
|
|
|
|
|
{
|
|
|
|
|
$('#add_promote_data').html('');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#add_game_save_btn').on('click', function () {
|
|
|
|
|
var gameId = $('#add_game_id').val();
|
|
|
|
|
var promoteIds = [];
|
|
|
|
|
|
|
|
|
|
$('input[name=add_promote_ids]').each(function (e) {
|
|
|
|
|
promoteIds.push($(this).val());
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
url: "__URL__/addGameToPromote",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
data: {'game_id': gameId,'promote_ids':promoteIds},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.status == 0) {
|
|
|
|
|
layer.msg(data.msg, {icon: 1});
|
|
|
|
|
setTimeout(function () {
|
|
|
|
|
location.reload();
|
|
|
|
|
}, 2000);
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(data.msg, {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
console.log(data);
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//查看游戏详情
|
|
|
|
|
function viewGameDetailed(id) {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
url: "__URL__/viewGameDetailed",
|
|
|
|
|
dataType: "json",
|
|
|
|
|
data: {'id': id},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
$('#game_icon').attr('src', data.icon ? data.icon : '');
|
|
|
|
|
$('#game_name').text(data.game_name ? data.game_name : '');
|
|
|
|
|
$('#version').text(data.version ? data.version : '无');
|
|
|
|
|
$('#game_type_name').text(data.game_type_name ? data.game_type_name : '无');
|
|
|
|
|
$('#game_size').text(data.game_size ? data.game_size : 0);
|
|
|
|
|
$('#create_time').text(data.create_time ? data.create_time : '无');
|
|
|
|
|
$('#dow_num').text(data.dow_num ? data.dow_num : 0);
|
|
|
|
|
$('#features').text(data.features ? data.features : '无');
|
|
|
|
|
|
|
|
|
|
gameScreenshotCount = data.screenshot.length; //游戏截图数量
|
|
|
|
|
|
|
|
|
|
if (gameScreenshotCount > 0) {
|
|
|
|
|
var html = '';
|
|
|
|
|
$.each(data.screenshot_url, function (index, item) {
|
|
|
|
|
html += '<li>';
|
|
|
|
|
html += '<img src="' + item + '">';
|
|
|
|
|
html += '</li>';
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.game-slide-li').html(html);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('.detail-body').show();
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('.game-detail-close').on('click', function () {
|
|
|
|
|
$('.detail-body').hide();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.pic-prev').on('click', function () {
|
|
|
|
|
var element = $('.game-slides').children('ul');
|
|
|
|
|
var oldLeft = element.position().left;
|
|
|
|
|
var newLeft = oldLeft + 280;
|
|
|
|
|
|
|
|
|
|
if (newLeft <= 0 && newLeft % 1 === 0) {
|
|
|
|
|
element.css('left', newLeft);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.pic-next').on('click', function () {
|
|
|
|
|
var element = $('.game-slides').children('ul');
|
|
|
|
|
var oldLeft = element.position().left;
|
|
|
|
|
var newLeft = oldLeft - 280;
|
|
|
|
|
var minLeft = -(gameScreenshotCount * 280 -560);
|
|
|
|
|
|
|
|
|
|
if (newLeft >= minLeft && newLeft % 1 === 0) {
|
|
|
|
|
element.css('left', newLeft);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.pack-inner').hover(function () {
|
|
|
|
|
var element = $(this);
|
|
|
|
|
|
|
|
|
|
$('.pack-inner').children('.pack-word').hide();
|
|
|
|
|
element.children('.pack-word').show();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.game-link').on('click', function () {
|
|
|
|
|
var url = $(this).attr('data-url');
|
|
|
|
|
var qrcode = $(this).attr('data-qrcode');
|
|
|
|
|
|
|
|
|
|
// $.ajax({
|
|
|
|
|
// type: "post",
|
|
|
|
|
// url: "__URL__/qrcodeNew",
|
|
|
|
|
// dataType: "json",
|
|
|
|
|
// data: {'url':url},
|
|
|
|
|
// success: function (data) {
|
|
|
|
|
// console.log(data);
|
|
|
|
|
// },
|
|
|
|
|
// error: function (result) {
|
|
|
|
|
// layer.msg('网络异常', {icon: 5});
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// $.get("__URL__/qrcodeNew/url/" + url,function(data,status){
|
|
|
|
|
// console.log(data);
|
|
|
|
|
// qrcode = data;
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
// $('#download_copy').attr('data-url',url);
|
|
|
|
|
$('#game_link_ercode').attr('src',qrcode);
|
|
|
|
|
$('#game_link_address').text(url);
|
|
|
|
|
$('#game_link_address_copy').text(url);
|
|
|
|
|
$('#game_link').show();
|
|
|
|
|
$('.game-window-bg').show();
|
|
|
|
|
|
|
|
|
|
var e = document.getElementById("game_link_address_copy");
|
|
|
|
|
e.select(); // 选择对象
|
|
|
|
|
document.execCommand("Copy"); // 执行浏览器复制命令
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// $("#download_copy").zclip({
|
|
|
|
|
// path:'__STATIC__/zeroclipboard/ZeroClipboard.swf', //记得把ZeroClipboard.swf引入到项目中
|
|
|
|
|
// copy: function(){
|
|
|
|
|
// var url = $(this).attr('data-url');
|
|
|
|
|
//
|
|
|
|
|
// return url;
|
|
|
|
|
// },
|
|
|
|
|
// beforeCopy: function () {
|
|
|
|
|
// $(this).addClass("proc");
|
|
|
|
|
// },
|
|
|
|
|
// afterCopy: function () {
|
|
|
|
|
// $(this).removeClass("copy");
|
|
|
|
|
// if ($(this).attr('data-url') == "") {
|
|
|
|
|
// layer.msg("暂无下载内容", {icon: 2});
|
|
|
|
|
// } else {
|
|
|
|
|
// layer.msg("复制成功", {icon: 1, time: 2000});
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
$('#download_copy').on('click', function () {
|
|
|
|
|
var e = document.getElementById("game_link_address_copy");
|
|
|
|
|
e.select(); // 选择对象
|
|
|
|
|
document.execCommand("Copy"); // 执行浏览器复制命令
|
|
|
|
|
layer.msg("复制成功", {icon: 1, time: 2000});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|