diff --git a/src/App.vue b/src/App.vue index edc0079..88214bd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,13 +1,9 @@ @@ -68,11 +76,37 @@ button{ import buttom from './components/buttom.vue'; import move from './components/move.vue'; import check from './components/check.vue'; -import { ref } from 'vue'; -const show=ref(false); -const result=ref("") -const chenge=(shows:boolean,results:"胜利"|"失败")=>{ - show.value=shows; - result.value=results; +import shows from './components/shows.vue'; +import { onMounted, ref } from 'vue'; +import gsap from 'gsap'; +const f5=()=>{ + location.replace(location.href) } +const show = ref(false); //check +const result = ref(''); //check +const score = ref(0); +const max = ref(0); +const changeWin = (shows: boolean, results: '胜利' | '失败') => { + //move + show.value = shows; + result.value = results; +}; +const changeScore = (newScore: number) => { + score.value = newScore; +}; +const changeMax = (newMax: number) => { + max.value = newMax; +}; +const tables=ref() +onMounted(()=>{ + gsap.fromTo(tables.value!,{ + opacity:0.3, + scale:0.8 + },{ + ease:"power1.out", + duration:0.8, + opacity:1, + scale:1 + }) +}) diff --git a/src/assets/main.css b/src/assets/main.css index 7b6aff6..b289468 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,3 +1,5 @@ body{ - background-color: #fcf6e3; + background-color: #f3f0e5; + width: 100vw; + height: 100vh;padding: 0;margin: 0; } \ No newline at end of file diff --git a/src/components/buttom.vue b/src/components/buttom.vue index d716146..63f876d 100644 --- a/src/components/buttom.vue +++ b/src/components/buttom.vue @@ -1,61 +1,73 @@ diff --git a/src/components/check.vue b/src/components/check.vue index baa8d9f..04c156e 100644 --- a/src/components/check.vue +++ b/src/components/check.vue @@ -1,33 +1,44 @@