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){