From 139d89e02910ee84f756ddd35312507973872932 Mon Sep 17 00:00:00 2001 From: testadmin Date: Mon, 11 May 2026 17:07:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20showPngDt=E6=94=B9=E7=94=A8#resultAreaIm?= =?UTF-8?q?g=E8=BE=93=E5=87=BAHTML(=E9=BE=99=E8=99=8E=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84=E6=A0=B9=E5=9B=A0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/handle/js/handle_b.js | 35 ++++++++++------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/public/static/handle/js/handle_b.js b/public/static/handle/js/handle_b.js index fe2a8aa..4d31547 100644 --- a/public/static/handle/js/handle_b.js +++ b/public/static/handle/js/handle_b.js @@ -484,8 +484,11 @@ $(function(){ $('#dragon_seven').val('0'); $('#panda_eight').val('0'); $('#dt_pair').val('0'); - $('#openingElement').show(); - showPng(3,0,0); + if(game_id == 1){ + showPng(3,0,0); + }else{ + showPngDt(3,0); + } } // Numpad 6(102)=幸运6(庄赢+标记,切换:2张牌→3张牌→取消) if(e.keyCode == 102){ @@ -635,27 +638,13 @@ function showPng(opening, pair,isVoice){ } function showPngDt (opening,isVoice){ - if(opening == 1) { - $('#openingPng').attr('src','/static/result_img/3in1/drogon.png'); - if(isVoice){ - mp3List = ['dragon_win.mp3']; - } - } - if(opening == 2) { - $('#openingPng').attr('src','/static/result_img/3in1/tiger.png'); - if(isVoice){ - mp3List = ['tiger_win.mp3']; - } - } - if(opening == 3) { - $('#openingPng').attr('src','/static/handle/result_img/3in1/tie.png'); - if(isVoice){ - mp3List = ['tie.mp3']; - } - } - if(isVoice){ - audioMp3(mp3List).Play(); - } + var winText = '', winColor = ''; + if(opening == 1){ winText = (lang.dragon||'龙')+'赢'; winColor = '#b20a00'; mp3List = ['dragon_win.mp3']; } + if(opening == 2){ winText = (lang.tiger||'虎')+'赢'; winColor = '#0543bc'; mp3List = ['tiger_win.mp3']; } + if(opening == 3){ winText = lang.tie||'和'; winColor = '#0A5101'; mp3List = ['tie.mp3']; } + if(isVoice){ audioMp3(mp3List).Play(); } + $("#resultAreaTimer").hide(); + $("#resultAreaImg").html('
'+winText+'
'); } function gameResult(data){