From f0d4c6531542eec7ff90d70369a5eb9bc0696814 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 21 Feb 2023 09:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppMine/AppMine.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/project/qujing/AppMine/AppMine.vue b/src/project/qujing/AppMine/AppMine.vue index d8fc8bc..7291b00 100644 --- a/src/project/qujing/AppMine/AppMine.vue +++ b/src/project/qujing/AppMine/AppMine.vue @@ -17,7 +17,7 @@

{{ user.realName }}

{{ user.nickName }}

-

共累计学习238分钟

+

共累计学习{{studyDuration || 0}}分钟

个人信息

@@ -48,7 +48,8 @@ export default { customNavigation: true, data() { return { - user: {} + user: {}, + studyDuration: '' } }, computed: { @@ -98,6 +99,13 @@ export default { } }) }, + getStudyDuration() { + this.$instance.post(`/app/appwechatuserqujing/queryStudyDuration`).then(res=> { + if(res?.data) { + this.studyDuration = res.data.studyDuration + } + }) + }, approve() { if (!this.token) { this.$refs.login.show(); @@ -147,6 +155,7 @@ export default { onShow() { this.getAuth() this.getUserInfo() + this.getStudyDuration() }, onShareAppMessage() { return {