fix: 开牌结果改用HTML文字显示,庄对红色/闲对蓝色
- showPng()不再用PNG图片,改为HTML文字渲染 - 庄对永远红色(#b20a00),闲对永远蓝色(#0543bc) - 版本号 v10.0.3 → v10.0.4
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
//应用公共文件
|
||||
|
||||
// 版本号
|
||||
define('VERSION_V','?ver=v10.0.3');
|
||||
define('VERSION_V','?ver=v10.0.4');
|
||||
|
||||
// 加密秘钥
|
||||
const UC_AUTH_KEY = 'L=<z|6aMF8s.Z_CE~K)e}c[VuG9hlJ#gp02t"1&`';
|
||||
|
||||
@@ -618,99 +618,20 @@ function loginout(){
|
||||
});
|
||||
};
|
||||
function showPng(opening, pair,isVoice){
|
||||
if(opening == 1 && pair == 0) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/banker.png');
|
||||
if(isVoice){
|
||||
mp3List = ['banker_win.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 1 && pair == 1) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/banker_bpair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['banker_win.mp3','banker_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 1 && pair == 2) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/banker_ppair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['banker_win.mp3','player_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 1 && pair == 3) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/banker_bpair_ppair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['banker_win.mp3','banker_pair.mp3','player_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 2 && pair == 0) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/player.png');
|
||||
if(isVoice){
|
||||
mp3List = ['player_win.mp3'];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if(opening == 2 && pair == 1) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/player_bpair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['player_win.mp3','banker_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 2 && pair == 2) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/player_ppair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['player_win.mp3','player_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 2 && pair == 3) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/player_bpair_ppair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['player_win.mp3','banker_pair.mp3','player_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 3 && pair == 0) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/tie.png');
|
||||
if(isVoice){
|
||||
mp3List = ['tie.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 3 && pair == 1) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/tie_bpair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['tie.mp3','banker_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 3 && pair == 2) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/tie_ppair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['tie.mp3','player_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(opening == 3 && pair == 3) {
|
||||
$('#openingPng').attr('src','/static/result_img/3in1/tie_bpair_ppair.png');
|
||||
if(isVoice){
|
||||
mp3List = ['tie.mp3','banker_pair.mp3','player_pair.mp3'];
|
||||
}
|
||||
|
||||
}
|
||||
if(isVoice){
|
||||
audioMp3(mp3List).Play();
|
||||
}
|
||||
var imgSrc = $('#openingPng').attr('src');
|
||||
if(imgSrc){
|
||||
$("#resultAreaTimer").hide();
|
||||
$("#resultAreaImg").html('<img src="'+imgSrc+'"/>');
|
||||
}
|
||||
var winText = '', winColor = '', pairHtml = '';
|
||||
var bpLabel = (lang.banker_pair || lang.banker+'对');
|
||||
var ppLabel = (lang.player_pair || lang.player+'对');
|
||||
if(opening == 1){ winText = lang.banker+'赢'; winColor = '#b20a00'; mp3List = ['banker_win.mp3']; }
|
||||
if(opening == 2){ winText = lang.player+'赢'; winColor = '#0543bc'; mp3List = ['player_win.mp3']; }
|
||||
if(opening == 3){ winText = lang.tie; winColor = '#0A5101'; mp3List = ['tie.mp3']; }
|
||||
if(pair == 1 || pair == 3) { pairHtml += '<span style="color:#b20a00">' + bpLabel + '</span> '; if(isVoice) mp3List.push('banker_pair.mp3'); }
|
||||
if(pair == 2 || pair == 3) { pairHtml += '<span style="color:#0543bc">' + ppLabel + '</span>'; if(isVoice) mp3List.push('player_pair.mp3'); }
|
||||
if(isVoice){ audioMp3(mp3List).Play(); }
|
||||
var html = '<div style="text-align:center"><div style="font-size:3vw;font-weight:bold;color:'+winColor+'">'+winText+'</div>';
|
||||
if(pairHtml) html += '<div style="font-size:2vw;margin-top:4px">'+pairHtml+'</div>';
|
||||
html += '</div>';
|
||||
$("#resultAreaTimer").hide();
|
||||
$("#resultAreaImg").html(html);
|
||||
}
|
||||
|
||||
function showPngDt (opening,isVoice){
|
||||
|
||||
Reference in New Issue
Block a user