From 7d9b35e9e179106019f97532bde59c5e84dbc6e9 Mon Sep 17 00:00:00 2001 From: Lyric Wai <5h3ll3x@gmail.com> Date: Sun, 21 Jul 2024 17:32:21 +0900 Subject: [PATCH] Update Comments.vue --- 1000h-portal/components/Comments.vue | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/1000h-portal/components/Comments.vue b/1000h-portal/components/Comments.vue index fddce443..fbee6390 100644 --- a/1000h-portal/components/Comments.vue +++ b/1000h-portal/components/Comments.vue @@ -50,71 +50,71 @@ const items = ref([ mixinId: 31766, avatar: "/portal-static/avatars/31766.jpg", name: "阿信", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "发现自己发音错误很有帮助,之前是不知不觉,现在注意到了,开始纠正练习。", }, { mixinId: 39503702, avatar: "/portal-static/avatars/39503702.jpg", name: "二十初仲夏的树", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "五个月,语感和口语熟练度提高了很多,附带着阅读能力也提高了,感觉读多了以后大胆了很多,估计碰到外国人敢开口了,有时候甚至自己都能小小造句了。", }, { mixinId: 37300002, avatar: "/portal-static/avatars/37300002.jpg", name: "黄明英", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "跟着朗读,慢慢有停顿、升调降调感觉。", }, { mixinId: 39440639, avatar: "/portal-static/avatars/39440639.jpg", name: "朱国庆", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "App 帮助我解决发音问题,就像一位私人教练,随时纠正发音错误,很多旧的发音习惯得到了纠正,让我的英语发音比之前有了很大的提高。 ", }, { mixinId: 40303463, avatar: "/portal-static/images/avatar.png", name: "东心木", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "朗读更流利了,表达更地道了。", }, { avatar: "/portal-static/images/avatar.png", name: "匿名用户", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "在英语方面,提升了发音质量,同时提高了背诵速度及效果;在学习方面,养成了一定的学习习惯,同时也迫使自己不断的输出。", }, { avatar: "/portal-static/images/avatar.png", name: "匿名用户", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "跟着读了这些天,对学英语不再有恐惧感了,仿佛没有读不了的句子了,有这个软件,英语的学习计划也直接提前了。", }, { avatar: "/portal-static/images/avatar.png", name: "匿名用户", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "纠正发音、方便跟读、了解读音的轻重缓急。", }, { avatar: "/portal-static/images/avatar.png", name: "匿名用户", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "纠正了很多过去读错,混淆的音。翻译超快,有语音可以跟读练习真是太好用了!学到了很多自己没想到过的表达方式,还有很多新词。记录自己的练习,也让自身很有成就感,不再担心学英语有什么用,练起来,这个过程就足够有用了!", }, { avatar: "/portal-static/images/avatar.png", name: "匿名用户", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "自动音标生成、逐句跟读功能让练习很方便,快捷键也很好用,口语水平提高了不少。", }, { avatar: "/portal-static/images/avatar.png", name: "匿名用户", - hint: "连续打卡 1,000 天", + hint: "连续打卡", text: "听力更清晰,特别是在听背的熟练的说法时。", }, ]); @@ -127,11 +127,13 @@ const comments = computed(() => { if (!info) return item; + const sumHours = Number(info.recordings_duration) / 1000 / 60 / 60; + return { ...item, name: info.name, avatar: info.avatar_url, - hint: `连续打卡 ${Number(info.recordings_count).toLocaleString()} 天`, + hint: `连续打卡 ${sumHours.toFixed(0)} 小时`, }; }); });