|
|
@@ -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;
|