Browse Source

日常开发

林旭祥 2 weeks ago
parent
commit
a9d80f406c
2 changed files with 23 additions and 2 deletions
  1. 12 2
      src/views/game/index.vue
  2. 11 0
      src/views/train/index.vue

+ 12 - 2
src/views/game/index.vue

@@ -73,12 +73,13 @@
     </Transition>
     <div class="continueGame" v-if="resumeGame">举手继续游戏</div>
     <div class="resumeGame" v-if="resumeGame" @click="getResumeGame">继续游戏</div>
-    <div class="close" v-if="start" @click="getExitGame"></div>
+    <div class="closeGame" v-if="start" @click="getExitGame"></div>
     <ActionConfirmWindow ref="actionConfirmRef" @confirmExit="getExitGame({ type: 1 })" @confirmStart="getStartGame">
     </ActionConfirmWindow>
     <div class="time" v-if="timerNum > 0">
       <div>{{ timerNum }}</div>
     </div>
+    <div class="close" @click="getExit"></div>
   </div>
 </template>
 
@@ -551,7 +552,7 @@ $waiPadding: 6.51rem;
 
 }
 
-.close {
+.closeGame {
   z-index: 991;
   position: fixed;
   bottom: 35px;
@@ -613,6 +614,15 @@ $waiPadding: 6.51rem;
   }
 }
 
+.close {
+  position: absolute;
+  // right: calc($waiPadding - 3.2rem);
+  left: auto;
+  right: calc($waiPadding - 3.2rem);
+  top: auto;
+  bottom: calc($topPadding / 2 - 3.2rem / 4);
+}
+
 @media screen and (max-width: 1450px) {
   .menu {
     .li {

+ 11 - 0
src/views/train/index.vue

@@ -24,6 +24,7 @@
         </swiper-slide>
       </swiper>
     </div>
+    <div class="close" @click="getExit"></div>
     <OptionWindow ref="optionWindowRef" :projectList="projectList" />
   </div>
 </template>
@@ -325,6 +326,16 @@ $waiPadding: 6.51rem;
   }
 }
 
+
+.close {
+  position: absolute;
+  // right: calc($waiPadding - 3.2rem);
+  left: auto;
+  right: calc($waiPadding - 3.2rem);
+  top: auto;
+  bottom: calc($topPadding / 2 - 3.2rem / 4);
+}
+
 @media screen and (max-width: 1450px) {
   .menu {
     .li {