fix: showPngDt改用#resultAreaImg输出HTML(龙虎结果不显示的根因)
This commit is contained in:
@@ -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('<div style="text-align:center;font-size:3vw;font-weight:bold;color:'+winColor+'">'+winText+'</div>');
|
||||
}
|
||||
|
||||
function gameResult(data){
|
||||
|
||||
Reference in New Issue
Block a user