fix: 牛牛操作端刷新后恢复牌面显示 - showCardNn读取正确字段round.show_card
This commit is contained in:
@@ -596,7 +596,8 @@ var showCard = function(data){
|
|||||||
}
|
}
|
||||||
var showCardNn = function(data){
|
var showCardNn = function(data){
|
||||||
if(data.round.bet_status == 2){
|
if(data.round.bet_status == 2){
|
||||||
if (data.card_info.length == 0) {
|
var card_info_arr = data.round.show_card || [];
|
||||||
|
if (card_info_arr.length == 0) {
|
||||||
$('#show_dice').show();
|
$('#show_dice').show();
|
||||||
}
|
}
|
||||||
$(".begincard").fadeIn(function(){
|
$(".begincard").fadeIn(function(){
|
||||||
@@ -606,7 +607,7 @@ var showCardNn = function(data){
|
|||||||
$(".begincard .box3").animate({"top":"100%","opacity":"1"});
|
$(".begincard .box3").animate({"top":"100%","opacity":"1"});
|
||||||
$(".begincard .box4").animate({"top":"100%","opacity":"1"});
|
$(".begincard .box4").animate({"top":"100%","opacity":"1"});
|
||||||
});
|
});
|
||||||
card_number_info = data.card_info;
|
card_number_info = card_info_arr;
|
||||||
if(card_number_info.length > 0){
|
if(card_number_info.length > 0){
|
||||||
for(var i=0;i<card_number_info.length;i++){
|
for(var i=0;i<card_number_info.length;i++){
|
||||||
if(card_number_info[i]['order_num'] == 0){
|
if(card_number_info[i]['order_num'] == 0){
|
||||||
|
|||||||
Reference in New Issue
Block a user