fixed some bug

This commit is contained in:
wzdwc
2021-04-23 14:56:04 +08:00
parent 10bc48eee2
commit cc36ead66c
9 changed files with 37 additions and 22 deletions
+5 -1
View File
@@ -3,7 +3,7 @@
<div class="shadow"
@click="show = false"></div>
<div class="body">
<div class="title">record</div>
<div class="title">record <i>({{gameList[currGameIndex - 1].gameId}})</i></div>
<div class="record-context">
<ul class = 'td'>
<div class="lo">
@@ -150,6 +150,10 @@
height: 30px;
padding: 5px 10px;
border-bottom: 1px solid #fff;
i {
font-size: 12px;
font-style: normal;
}
}
.td{
+6 -2
View File
@@ -26,8 +26,8 @@
<div class="counter"
:class="{isAction: actionUserId === sit.player.userId,
'close-time-out': time > 0 && time < 10 && actionUserId === sit.player.userId }"
v-show="sit.player.counter || sit.player.actionCommand === 'allin'">
{{ sit.player.counter }}
v-show="sit.player.counter >= 0 || sit.player.actionCommand === 'allin'">
{{ sit.player.counter || 0 }}
</div>
<div class="action-size"
v-show="sit.player.actionSize > 0">
@@ -285,7 +285,11 @@
}
.user-name {
width: 45 / 3.75vw;
color: #fff;
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.count-down {
+7 -6
View File
@@ -349,6 +349,7 @@
},
transports: ['websocket'],
});
log('#init,', this.socket);
this.socket.on('connect', () => {
const id: string = this.socket.id;
log('#connect,', id, this.socket);
@@ -481,7 +482,7 @@
// 系统事件
this.socket.on('disconnect', (msg: IMsg) => {
this.$plugin.toast('room is disconnect');
this.socketInit();
// this.socketInit();
log('#disconnect', msg);
});
@@ -599,11 +600,11 @@
} catch (e) {
console.log(e);
}
document.addEventListener('visibilitychange', () => {
if (!document.hidden) {
this.socketInit();
}
});
// document.addEventListener('visibilitychange', () => {
// if (!document.hidden) {
// this.socketInit();
// }
// });
}
}
</script>