|
@@ -22,28 +22,28 @@
|
|
|
<div class="gameWindow" v-if="currentGame">
|
|
|
<!---人体姿态识别-->
|
|
|
<div class="columns" v-if="currentGame == 'bodyposecontroller'">
|
|
|
- <div class="item">
|
|
|
+ <div class="item left">
|
|
|
<HumanBody ref="humanBodyLeftRef" type="left"></HumanBody>
|
|
|
</div>
|
|
|
- <div class="item">
|
|
|
+ <div class="item right">
|
|
|
<HumanBody ref="humanBodyRightRef" type="right"></HumanBody>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!---篮球投篮-->
|
|
|
<div class="columns" v-if="currentGame == 'game_basketball'">
|
|
|
- <div class="item">
|
|
|
+ <div class="item left">
|
|
|
<Basketball ref="basketballLeftRef" type="left"></Basketball>
|
|
|
</div>
|
|
|
- <div class="item">
|
|
|
+ <div class="item right">
|
|
|
<Basketball ref="basketballRightRef" type="right"></Basketball>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!---足球带球-->
|
|
|
<div class="columns" v-if="currentGame == 'game_football'">
|
|
|
- <div class="item">
|
|
|
+ <div class="item left">
|
|
|
<Football ref="footballLeftRef" type="left"></Football>
|
|
|
</div>
|
|
|
- <div class="item">
|
|
|
+ <div class="item right">
|
|
|
<Football ref="footballRightRef" type="right"></Football>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -186,8 +186,6 @@ const getInit = async () => {
|
|
|
}
|
|
|
}
|
|
|
if (e?.cmd == 'terminate_bodyposecontroller') {
|
|
|
- closeWS();
|
|
|
- getExit();
|
|
|
}
|
|
|
if (e?.type == 'disconnect') {
|
|
|
getExit();
|
|
@@ -413,7 +411,13 @@ $waiPadding: 6.51rem;
|
|
|
.item {
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
|
-
|
|
|
+ box-sizing: border-box;
|
|
|
+ }
|
|
|
+ .left{
|
|
|
+ border-right: 10px solid #07121a;
|
|
|
+ }
|
|
|
+ .right{
|
|
|
+ border-left: 10px solid #07121a;
|
|
|
}
|
|
|
}
|
|
|
|