diff --git a/src/components/Backgorund.vue b/src/components/Backgorund.vue index e682caef..551af423 100644 --- a/src/components/Backgorund.vue +++ b/src/components/Backgorund.vue @@ -102,6 +102,7 @@ onMounted(() => { canvas { width: 100vw; height: 100vh; + opacity: 0; } } diff --git a/src/components/DictListPanel.vue b/src/components/DictListPanel.vue index b4887402..88a0f9e6 100644 --- a/src/components/DictListPanel.vue +++ b/src/components/DictListPanel.vue @@ -5,8 +5,6 @@ import {$computed, $ref} from "vue/macros"; import {dictionaryResources} from "@/assets/dictionary.ts"; import {groupBy} from "lodash-es"; import {useBaseStore} from "@/stores/base.ts"; -import {useSettingStore} from "@/stores/setting.ts"; -import {useRuntimeStore} from "@/stores/runtime.ts"; import DictList from "@/components/list/DictList.vue"; import DictGroup from "@/components/list/DictGroup.vue"; @@ -15,8 +13,6 @@ const emit = defineEmits<{ selectDict: [val: { dict: any, index: number }] }>() const store = useBaseStore() -const settingStore = useSettingStore() -const runtimeStore = useRuntimeStore() let currentLanguage = $ref('my') let currentTranslateLanguage = $ref('common') @@ -143,7 +139,7 @@ const groupedByCategoryAndTag = $computed(() => { gap: 6rem; &.active { - $main: rgb(64,158,255); + $main: rgb(64, 158, 255); border-bottom: 2px solid $main; } diff --git a/src/components/slide/SlideHorizontal.vue b/src/components/slide/SlideHorizontal.vue index aa5c4b98..a1b0aee8 100644 --- a/src/components/slide/SlideHorizontal.vue +++ b/src/components/slide/SlideHorizontal.vue @@ -27,7 +27,7 @@ const props = defineProps({ type: Boolean, default: true }, - anim: { + slide: { type: Boolean, default: true } @@ -65,17 +65,17 @@ onMounted(() => { }) function touchStart(e) { - if (!props.anim) return + if (!props.slide) return slideTouchStart(e, wrapperEl.value, state) } function touchMove(e) { - if (!props.anim) return + if (!props.slide) return slideTouchMove(e, wrapperEl.value, state, judgeValue, canNext, null, SlideType.HORIZONTAL) } function touchEnd(e) { - if (!props.anim) return + if (!props.slide) return slideTouchEnd(e, state, canNext, () => { }) diff --git a/src/pages/mobile/DictManage.vue b/src/pages/mobile/DictManage.vue index 1c487212..73e21d0b 100644 --- a/src/pages/mobile/DictManage.vue +++ b/src/pages/mobile/DictManage.vue @@ -1,15 +1,107 @@ \ No newline at end of file diff --git a/src/pages/mobile/Setting.vue b/src/pages/mobile/Setting.vue new file mode 100644 index 00000000..495dab06 --- /dev/null +++ b/src/pages/mobile/Setting.vue @@ -0,0 +1,71 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mobile/index.vue b/src/pages/mobile/index.vue index b3c94b7b..7a92656a 100644 --- a/src/pages/mobile/index.vue +++ b/src/pages/mobile/index.vue @@ -4,6 +4,7 @@ import SlideHorizontal from "@/components/slide/SlideHorizontal.vue"; import SlideItem from "@/components/slide/SlideItem.vue"; import Home from "@/pages/mobile/Home.vue"; import DictManage from "@/pages/mobile/DictManage.vue"; +import Setting from "@/pages/mobile/Setting.vue"; let state = $ref({ baseIndex: 0 @@ -13,7 +14,7 @@ let state = $ref({
@@ -21,7 +22,9 @@ let state = $ref({ - 3 + + +
diff --git a/src/pages/mobile/practice/practice-word/TypingWord.vue b/src/pages/mobile/practice/practice-word/TypingWord.vue index 8cd52e99..213bd75f 100644 --- a/src/pages/mobile/practice/practice-word/TypingWord.vue +++ b/src/pages/mobile/practice/practice-word/TypingWord.vue @@ -283,12 +283,6 @@ onMounted(() => { />
- - - - - { padding: 0 10rem; align-items: center; justify-content: space-between; - gap: 10rem; + + .right { + display: flex; + gap: 10rem; + } } :deep(.word) {