fix: handle_b.js 路子珠修正(tab_baccarat 实际加载的JS)
根因:tab_b.html 加载 handle_b.js(不是 handle.js) - 字段名 lucky_six → luck_six(匹配 Waybill 返回) - 判断值 ==1 → >0(后端存 2/3 不是 1) - 补加 dragon_seven/panda_eight
This commit is contained in:
@@ -1433,7 +1433,7 @@ function cutRoad(roadType,ctb,unit,roadData,cols,ask,askroad){
|
||||
}else if(roadType=="bigeyeWay"){
|
||||
BigeyePath(ctb,unit,v.show_x-cut,v.show_y,v.result)
|
||||
}else if(roadType=="showWay"){
|
||||
SoloPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.pair,v.lucky_six)
|
||||
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)
|
||||
}else if(roadType=="bigWay"){
|
||||
BigPath(ctb,unit,v.show_x-cut,v.show_y,v.result,v.tie_num,v.pair)
|
||||
}else if(roadType=="sanxingWay"){
|
||||
@@ -1453,21 +1453,29 @@ function Font_tie(ctb,num,Font_x,Font_y,fontsize){
|
||||
ctb.stroke();
|
||||
}
|
||||
}
|
||||
function SoloPath(ctb,unit,x,y,type,corners,luckySix){
|
||||
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(type==1){
|
||||
if(game_id==1 && luck_six > 0){
|
||||
var color='#1a8c3a', fonts="6";
|
||||
ctb.strokeStyle = "#2eb553";
|
||||
ctb.lineWidth = 2;
|
||||
}else if(game_id==1 && dragon_seven > 0){
|
||||
var color='#d4a017', fonts="7";
|
||||
ctb.strokeStyle = "#e6b822";
|
||||
ctb.lineWidth = 2;
|
||||
}else if(game_id==1 && panda_eight > 0){
|
||||
var color='#1a6ed8', fonts="8";
|
||||
ctb.strokeStyle = "#4a9af5";
|
||||
ctb.lineWidth = 2;
|
||||
}else if(type==1){
|
||||
var color='#b20a00';
|
||||
if(game_id == 2){
|
||||
var fonts = lang.dragon;
|
||||
}else{
|
||||
if(luckySix == 1){
|
||||
var fonts = 6;
|
||||
}else{
|
||||
var fonts = lang.banker;
|
||||
}
|
||||
var fonts = lang.banker;
|
||||
}
|
||||
ctb.strokeStyle = "#ff4a68";
|
||||
}else if(type==2){
|
||||
|
||||
Reference in New Issue
Block a user