|
@@ -26,42 +26,53 @@
|
|
<div class="columns" v-if="currentGame == 'bodyposecontroller'">
|
|
<div class="columns" v-if="currentGame == 'bodyposecontroller'">
|
|
<template v-if="currentGameArea.length == 2">
|
|
<template v-if="currentGameArea.length == 2">
|
|
<div class="item left">
|
|
<div class="item left">
|
|
- <HumanBody ref="humanBodyLeftRef" type="left" :currentGameArea="currentGameArea[0]" :areaStateList="areaStateList"></HumanBody>
|
|
|
|
|
|
+ <HumanBody ref="humanBodyLeftRef" type="left" :currentGameArea="currentGameArea[0]"
|
|
|
|
+ :areaStateList="areaStateList"></HumanBody>
|
|
</div>
|
|
</div>
|
|
<div class="item right">
|
|
<div class="item right">
|
|
- <HumanBody ref="humanBodyRightRef" type="right" :currentGameArea="currentGameArea[1]" :areaStateList="areaStateList"></HumanBody>
|
|
|
|
|
|
+ <HumanBody ref="humanBodyRightRef" type="right" :currentGameArea="currentGameArea[1]"
|
|
|
|
+ :areaStateList="areaStateList"></HumanBody>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<template v-else>
|
|
<template v-else>
|
|
- <HumanBody ref="humanBodyLeftRef" type="left" :currentGameArea="currentGameArea[0]" :areaStateList="areaStateList"></HumanBody>
|
|
|
|
|
|
+ <HumanBody ref="humanBodyLeftRef" type="left" :currentGameArea="currentGameArea[0]"
|
|
|
|
+ :areaStateList="areaStateList"></HumanBody>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
<!---篮球投篮-->
|
|
<!---篮球投篮-->
|
|
<div class="columns" v-if="currentGame == 'game_basketball'">
|
|
<div class="columns" v-if="currentGame == 'game_basketball'">
|
|
<div class="item left">
|
|
<div class="item left">
|
|
- <Basketball ref="basketballLeftRef" type="left" :currentGameArea="currentGameArea[0]" :areaStateList="areaStateList"></Basketball>
|
|
|
|
|
|
+ <Basketball ref="basketballLeftRef" type="left" :currentGameArea="currentGameArea[0]"
|
|
|
|
+ :areaStateList="areaStateList"></Basketball>
|
|
</div>
|
|
</div>
|
|
<div class="item right">
|
|
<div class="item right">
|
|
- <Basketball ref="basketballRightRef" type="right" :currentGameArea="currentGameArea[1]" :areaStateList="areaStateList"></Basketball>
|
|
|
|
|
|
+ <Basketball ref="basketballRightRef" type="right" :currentGameArea="currentGameArea[1]"
|
|
|
|
+ :areaStateList="areaStateList"></Basketball>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!---足球带球-->
|
|
<!---足球带球-->
|
|
<div class="columns" v-if="currentGame == 'game_football'">
|
|
<div class="columns" v-if="currentGame == 'game_football'">
|
|
<div class="item left">
|
|
<div class="item left">
|
|
- <Football ref="footballLeftRef" type="left" :currentGameArea="currentGameArea[0]" :areaStateList="areaStateList"></Football>
|
|
|
|
|
|
+ <Football ref="footballLeftRef" type="left" :currentGameArea="currentGameArea[0]"
|
|
|
|
+ :areaStateList="areaStateList">
|
|
|
|
+ </Football>
|
|
</div>
|
|
</div>
|
|
<div class="item right">
|
|
<div class="item right">
|
|
- <Football ref="footballRightRef" type="right" :currentGameArea="currentGameArea[1]" :areaStateList="areaStateList"></Football>
|
|
|
|
|
|
+ <Football ref="footballRightRef" type="right" :currentGameArea="currentGameArea[1]"
|
|
|
|
+ :areaStateList="areaStateList">
|
|
|
|
+ </Football>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!---切水果-->
|
|
<!---切水果-->
|
|
<div class="columns" v-if="currentGame == 'game_fruit'">
|
|
<div class="columns" v-if="currentGame == 'game_fruit'">
|
|
- <Fruit ref="fruitRef" @confirmExit="getExitGame" :currentGameArea="currentGameArea[0]" :areaStateList="areaStateList"></Fruit>
|
|
|
|
|
|
+ <Fruit ref="fruitRef" @confirmExit="getExitGame" :currentGameArea="currentGameArea[0]"
|
|
|
|
+ :areaStateList="areaStateList">
|
|
|
|
+ </Fruit>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Transition>
|
|
</Transition>
|
|
<div class="close" v-if="start" @click="getExitGame"></div>
|
|
<div class="close" v-if="start" @click="getExitGame"></div>
|
|
- <ActionConfirmWindow ref="actionConfirmRef" @confirmExit="getExitGame(1)" @confirmStart="getStartGame">
|
|
|
|
|
|
+ <ActionConfirmWindow ref="actionConfirmRef" @confirmExit="getExitGame({ type: 1 })" @confirmStart="getStartGame">
|
|
</ActionConfirmWindow>
|
|
</ActionConfirmWindow>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -238,8 +249,8 @@ const getExit = () => {
|
|
/**
|
|
/**
|
|
* 退出游戏
|
|
* 退出游戏
|
|
*/
|
|
*/
|
|
-const getExitGame = (type: any) => {
|
|
|
|
- if (type == 1) {
|
|
|
|
|
|
+const getExitGame = (data: any) => {
|
|
|
|
+ if (data.type == 1) {
|
|
//浮窗退出
|
|
//浮窗退出
|
|
console.log("currentGameArea.value", currentGameArea.value)
|
|
console.log("currentGameArea.value", currentGameArea.value)
|
|
currentGameArea.value.forEach((item: any) => {
|
|
currentGameArea.value.forEach((item: any) => {
|