From ef27f31fb93343007387bc26daa9da71037a2754 Mon Sep 17 00:00:00 2001 From: yanyan Date: Mon, 18 Mar 2024 11:22:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpkg/complete/complete.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/subpkg/complete/complete.vue b/subpkg/complete/complete.vue index f2b76a2..37cfe17 100644 --- a/subpkg/complete/complete.vue +++ b/subpkg/complete/complete.vue @@ -88,7 +88,6 @@ return { "questionFreId":"8eefa1161f4643ccaed9404949911a39", "roleId":"8ad2af376ec64f519147030497086a96", - "userId":"", "sceneId": "", questionList: [], recordList: [], @@ -136,6 +135,7 @@ this.getQuestionList() this.getRecordList() this.editUserMedal(); + this.updateScore(); this.getQR(); }, computed: { @@ -169,6 +169,15 @@ //uni.$showMsg('数据请求成功!') }, + async updateScore() { + const { + data: res + } = await uni.$http.post('/small/questionAnswer/updateUserScore', { + questionFreId: this.questionFreId, + userId: this.userId + }) + if (!res.success) return uni.$showMsg() + }, async getRecordList() { const { data: res @@ -183,8 +192,8 @@ data: res } = await uni.$http.post('/small/wechat/editUserMedal', { medal: this.sceneId, - guid: "2752c89b6ca843558991f888f8949da2", - // guid: this.userId, + guid: this.userId, + // guid: "2752c89b6ca843558991f888f8949da2", }) if (!res.success) return uni.$showMsg() // this.recordList = res.data