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 {