|
|
@ -235,20 +235,6 @@
|
|
|
|
<span>游戏类型:<span>{$vo.game_type_name}</span> </span>
|
|
|
|
<span>游戏类型:<span>{$vo.game_type_name}</span> </span>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php switch ($vo['enable_status']) {
|
|
|
|
|
|
|
|
case 1:
|
|
|
|
|
|
|
|
$enableStatus = '已打包';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
$enableStatus = '准备打包';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
$enableStatus = '打包中';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case -1:
|
|
|
|
|
|
|
|
$enableStatus = '打包失败';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
$qrcode = get_cover($vo['icon'],'path');
|
|
|
|
$qrcode = get_cover($vo['icon'],'path');
|
|
|
@ -271,9 +257,9 @@
|
|
|
|
<span class="add-game" game-id="{$vo.id}" promote-type="3" style="cursor: pointer;margin-right: 10px;"><u>添加推广员游戏</u></span>
|
|
|
|
<span class="add-game" game-id="{$vo.id}" promote-type="3" style="cursor: pointer;margin-right: 10px;"><u>添加推广员游戏</u></span>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<?php $downloadUrl = get_apply_dow_url($vo['id'],$vo['promote_id']);?>
|
|
|
|
<?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}" data-status="{$enableStatus}" style="cursor: pointer;margin-right: 10px;"><u>复制下载链接</u></span>
|
|
|
|
<span class="game-link" data-qrcode="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode($downloadUrl)),'logo'=>$qrcode])}" data-url="{$downloadUrl}" data-status="{$vo.enable_status}" 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']));?>
|
|
|
|
<?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}" data-status="{$enableStatus}" style="cursor: pointer;margin-right: 10px;"><u>落地页链接</u></span>
|
|
|
|
<span class="game-link" data-qrcode="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode($flooringPageUrl)),'logo'=>$qrcode])}" data-url="{$flooringPageUrl}" data-status="{$vo.enable_status}" 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>
|
|
|
|
<span class="down-game-btn" data-id="{$vo.id}" style="cursor: pointer;margin-right: 10px;color: #999"><u>下架</u></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -988,36 +974,27 @@
|
|
|
|
$('.game-link').on('click', function () {
|
|
|
|
$('.game-link').on('click', function () {
|
|
|
|
var url = $(this).attr('data-url');
|
|
|
|
var url = $(this).attr('data-url');
|
|
|
|
var qrcode = $(this).attr('data-qrcode');
|
|
|
|
var qrcode = $(this).attr('data-qrcode');
|
|
|
|
var enableStatus = $(this).attr('data-status');
|
|
|
|
var enableStatus = parseInt($(this).attr('data-status'));
|
|
|
|
|
|
|
|
|
|
|
|
if (enableStatus != '已打包') {
|
|
|
|
if (enableStatus != 1) {
|
|
|
|
var iconIndex = 7;
|
|
|
|
var iconIndex = 7;
|
|
|
|
if (enableStatus == '打包失败') {
|
|
|
|
var enableStatusName = '';
|
|
|
|
iconIndex = 5;
|
|
|
|
|
|
|
|
|
|
|
|
switch (enableStatus) {
|
|
|
|
|
|
|
|
case 2:
|
|
|
|
|
|
|
|
case 3:
|
|
|
|
|
|
|
|
enableStatusName = '打包中';
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case -1:
|
|
|
|
|
|
|
|
iconIndex = 5;
|
|
|
|
|
|
|
|
enableStatusName = '打包失败';
|
|
|
|
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
layer.msg(enableStatus, {icon: iconIndex});
|
|
|
|
layer.alert(enableStatusName, {icon: iconIndex});
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// $.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);
|
|
|
|
// $('#download_copy').attr('data-url',url);
|
|
|
|
$('#game_link_ercode').attr('src',qrcode);
|
|
|
|
$('#game_link_ercode').attr('src',qrcode);
|
|
|
|
$('#game_link_address').text(url);
|
|
|
|
$('#game_link_address').text(url);
|
|
|
|