Merge branch 'hotfix/game_qrcode' of wmtx/platform into master

修改落地页二维码图标问题
master
万盟天下 5 years ago committed by Gogs
commit 26597a95d2

@ -199,7 +199,7 @@
<li class="game-li" data-game-id="{$game.id}">
<div class="media">
<div class="img-box" style="cursor: pointer;">
<img src="__ROOT__{$game.icon|get_cover='path'}" />
<img src="__ROOT__{$game.icon|get_cover='path'}" onerror="javascript:this.src='__IMG__/game_icon.png';"/>
</div>
<div class="game-msg" style="width: calc(92% - 90px);">
<h5 class="game-title">
@ -594,7 +594,7 @@
function isImg(src) {
var img = new Image();
img.src = src;
if (img.fileSize > 0) {
if (img.width > 0 && img.height>0) {
return true
}
return false
@ -602,7 +602,7 @@
function getGameLogo(obj) {
var logo = null;
var logoSrc = $(obj).parents('.game-li').eq(0).find('.img-box').children('img').attr('src');
var logoSrc = $(obj).parents('.game-li').eq(0).find('.img-box').children('img').attr('src')
if (isImg(logoSrc)) {
logo = $(obj).parents('.game-li').eq(0).find('.img-box').children('img')[0]
} else {

Loading…
Cancel
Save