From fd4c2935619a3c1d215de7930d6b6fb6725498da Mon Sep 17 00:00:00 2001 From: yanyan Date: Fri, 8 Mar 2024 11:43:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=91=E6=88=98=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/my/my.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/my/my.vue b/pages/my/my.vue index 482b2e1..970da93 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -4,7 +4,7 @@ {{name}} - 勋章:{{medalNum}} 挑战历史:3 + 勋章:{{medalNum}} 挑战历史:{{challengeNum}} @@ -81,6 +81,7 @@ data() { return { medalNum:0, + challengeNum:0, page: "", name:"", avatarUrl: uni.$http.baseUrl + "/profile//2024/01/18/6147d64a3b94d7b3d3cc35aaf8cbfe06.png", @@ -128,6 +129,16 @@ // uni.$showMsg('数据请求成功!') }, + async getChallengeTotal() { + + const { + data: res + } = await uni.$http.post('/small/questionFre/listAll',{userId:this.userId}) + if (!res.success) return uni.$showMsg() + this.challengeNum = res.data.length; + + // uni.$showMsg('数据请求成功!') + }, async getSwiperList() { const {