fix: handle.js(tab_baccarat用的JS)补加路子珠特殊图标

This commit is contained in:
testadmin
2026-05-02 00:44:59 +08:00
parent 1c666a22be
commit 837030cf4f
+20 -3
View File
@@ -1932,7 +1932,7 @@ function cutRoad(roadType,ctb,unit,roadData,cols,ask,askroad){
}
$.each(new_roadData,function(i,v){
if(roadType=="showWay"){
SoloPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair)
SoloPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair,v.luck_six||0,v.dragon_seven||0,v.panda_eight||0)
}
})
}
@@ -1997,12 +1997,29 @@ function Font_tie(ctb,num,Font_x,Font_y,fontsize){
ctb.stroke();
}
}
function SoloPath(ctb,unit,x,y,type,corners){
function SoloPath(ctb,unit,x,y,type,corners,luck_six,dragon_seven,panda_eight){
ctb.beginPath();
ctb.lineWidth = 0.5;
ctb.strokeStyle = "#000";
var radius=unit/2||0;
if (game_id == 6){
var cx = radius+unit*(x-1);
var cy = radius+unit*(y-1);
if(game_id==1 && luck_six > 0){
var color='#1a8c3a';
var fonts="6";
ctb.strokeStyle = "#2eb553";
ctb.lineWidth = 2;
} else if(game_id==1 && dragon_seven > 0){
var color='#d4a017';
var fonts="7";
ctb.strokeStyle = "#e6b822";
ctb.lineWidth = 2;
} else if(game_id==1 && panda_eight > 0){
var color='#1a6ed8';
var fonts="8";
ctb.strokeStyle = "#4a9af5";
ctb.lineWidth = 2;
} else if (game_id == 6){
if(type==0){
var color='#5A5A5A';
var fonts="0";