Browse Source

日常开发

林旭祥 3 weeks ago
parent
commit
efe348b31a
1 changed files with 17 additions and 0 deletions
  1. 17 0
      src/views/game/index.vue

+ 17 - 0
src/views/game/index.vue

@@ -52,6 +52,7 @@
         <Fruit ref="fruitRef" @confirmExit="getExitGame"></Fruit>
       </div>
     </div>
+    <div class="close" v-if="currentGame" @click="getExitGame"></div>
   </div>
 </template>
 
@@ -212,6 +213,13 @@ const getExit = () => {
  */
 const getExitGame = () => {
   currentGame.value = "";
+  let obj = projectList.value.find((item: any) => {
+    return item.exam_name == currentGame.value
+  })
+  let myList = obj.area_test_id.split(",");
+  myList.forEach((item: any) => {
+    terminateBodypose(item);
+  })
 };
 
 onBeforeMount(async () => {
@@ -399,6 +407,15 @@ $waiPadding: 6.51rem;
 
 }
 
+.close {
+  z-index: 9999;
+  position: fixed;
+  bottom: 30px;
+  left: 50%;
+  margin-left: -1.6rem;
+}
+
+
 ::v-deep(.menu) {
   .swiper-horizontal {
     width: 100%;