任一存 2 лет назад
Родитель
Сommit
3a92677949
2 измененных файлов с 18 добавлено и 17 удалено
  1. 2 2
      game/src/components/PairUpOver.vue
  2. 16 15
      game/src/views/PlantTree.vue

+ 2 - 2
game/src/components/PairUpOver.vue

@@ -121,12 +121,12 @@ const emit = defineEmits(['replay'])
     background-size: contain;
     background-repeat: no-repeat;
     background-position: center center;
-    font-size: calc(28 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
+    font-size: calc(24 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
     font-family: Source Han Sans SC, Source Han Sans SC;
     font-weight: 800;
     color: #FFFFFF;
     line-height: calc(32 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
-    -webkit-text-stroke: calc(1 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef')) #4E3933;
+    // -webkit-text-stroke: calc(1 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef')) #4E3933;
     padding-bottom: calc(5 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
     >.highlight{
       position: absolute;

+ 16 - 15
game/src/views/PlantTree.vue

@@ -192,23 +192,24 @@ const stepList = [
 ]
 const currentStepIdx = ref(0)
 const lastPlayTimeStr = localStorage.getItem('plant-tree-last-time')
-if (process.env.VUE_APP_CLI_MODE !== 'dev') {
-  if (lastPlayTimeStr) {
-    const lastPlayTime = new Date(Number(lastPlayTimeStr))
-    const lastPlayYear = lastPlayTime.getFullYear()
-    const lastPlayMonth = lastPlayTime.getMonth()
-    const lastPlayDay = lastPlayTime.getDay()
+// if (process.env.VUE_APP_CLI_MODE !== 'dev') {
+if (lastPlayTimeStr) {
+  const lastPlayTime = new Date(Number(lastPlayTimeStr))
+  const lastPlayYear = lastPlayTime.getFullYear()
+  const lastPlayMonth = lastPlayTime.getMonth()
+  const lastPlayDay = lastPlayTime.getDay()
 
-    const currentTime = new Date()
-    const currentYear = currentTime.getFullYear()
-    const currentMonth = currentTime.getMonth()
-    const currentDay = currentTime.getDay()
+  const currentTime = new Date()
+  const currentYear = currentTime.getFullYear()
+  const currentMonth = currentTime.getMonth()
+  const currentDay = currentTime.getDay()
 
-    if (lastPlayYear === currentYear && lastPlayMonth === currentMonth && lastPlayDay === currentDay) {
-      currentStepIdx.value = 4
-    }
+  if (lastPlayYear === currentYear && lastPlayMonth === currentMonth && lastPlayDay === currentDay) {
+    currentStepIdx.value = stepList.length - 1
+    bonusPoint.value = 40
   }
 }
+// }
 const isOver = computed(() => {
   return currentStepIdx.value === stepList.length - 1
 })
@@ -362,12 +363,12 @@ function onClickTool(toolIdx) {
     border-radius: calc(35 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
     opacity: 1;
     border: calc(6 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef')) solid #FFFFFF;
-    font-size: calc(28 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
+    font-size: calc(24 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
     font-family: Source Han Sans SC, Source Han Sans SC;
     font-weight: 800;
     color: #FFFFFF;
     line-height: calc(32 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef'));
-    -webkit-text-stroke: calc(2 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef')) #4E3933;
+    // -webkit-text-stroke: calc(2 / v-bind('windowSizeWhenDesignForRef') * v-bind('windowSizeInCssForRef')) #4E3933;
   }
   >.common-info-group{
     position: absolute;