我的游戏更新

master
chenxiaojun 5 years ago
parent 699820eab7
commit 07ee1fc43e

@ -235,6 +235,21 @@
<span>游戏类型:<span>{$vo.game_type_name}</span>&nbsp;&nbsp;</span> <span>游戏类型:<span>{$vo.game_type_name}</span>&nbsp;&nbsp;</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');
if (stripos($qrcode,'http') === false) { if (stripos($qrcode,'http') === false) {
@ -254,9 +269,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}" 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="{$enableStatus}" 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}" 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="{$enableStatus}" 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>
@ -971,6 +986,17 @@
$('.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');
if (enableStatus != '已打包') {
var iconIndex = 7;
if (enableStatus == '打包失败') {
iconIndex = 5;
}
layer.msg(enableStatus, {icon: iconIndex});
return false;
}
// $.ajax({ // $.ajax({
// type: "post", // type: "post",

Loading…
Cancel
Save