+
推荐
-
+
预计
-
{{
+ {{
_getAccomplishDays(store.sdict.words.length, tempPerDayStudyNumber)
}}天完成学习
diff --git a/src/pages/pc/word/components/Type.vue b/src/pages/pc/word/components/Type.vue
index a3f69a77..45e85802 100644
--- a/src/pages/pc/word/components/Type.vue
+++ b/src/pages/pc/word/components/Type.vue
@@ -33,9 +33,9 @@ const playBeep = usePlayBeep()
const playCorrect = usePlayCorrect()
const playKeyboardAudio = usePlayKeyboardAudio()
const playWordAudio = usePlayWordAudio()
-const ttsPlayAudio = useTTsPlayAudio()
+// const ttsPlayAudio = useTTsPlayAudio()
const volumeIconRef: any = $ref()
-const volumeTranslateIconRef: any = $ref()
+// const volumeTranslateIconRef: any = $ref()
let displayWord = $computed(() => {
return props.word.word.slice(input.length + wrong.length)
@@ -146,7 +146,7 @@ function play() {
defineExpose({del, showWord, hideWord, play})
-let tab = $ref(2)
+let tab = $ref(0)
diff --git a/src/stores/practice.ts b/src/stores/practice.ts
index c6142ba5..a2651201 100644
--- a/src/stores/practice.ts
+++ b/src/stores/practice.ts
@@ -3,7 +3,9 @@ import {defineStore} from "pinia"
export interface PracticeState {
step: number,
startDate: number,
+ //todo 删除
speed: number,
+ spend: number,
total: number,
index: number,//当前输入的第几个,用于和total计算进度
newWordNumber: number,
@@ -18,6 +20,7 @@ export const usePracticeStore = defineStore('practice', {
return {
step: 0,
speed: 0,
+ spend: 0,
startDate: Date.now(),
total: 0,
index: 0,
diff --git a/src/types.ts b/src/types.ts
index c58f8919..ef551285 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -140,7 +140,10 @@ export function getDefaultArticle(val: Partial = {}): Article {
export interface Statistics {
startDate: number,//开始日期
spend: number,//花费时间
+ //todo 这个写错了,上线记得删除掉
+ speed?: number,//花费时间
total: number//单词数量
+ new: number//新学单词数量
wrong: number//错误数
}
@@ -152,7 +155,9 @@ export interface DisplayStatistics extends Statistics {
export const DefaultDisplayStatistics: DisplayStatistics = {
startDate: Date.now(),
spend: -1,
+ speed: -1,
total: -1,
+ new: 0,
wrong: -1,
inputWordNumber: -1,
wrongWords: [],