Browse Source

更新分数

h5_css
yanyan 3 years ago
parent
commit
ef27f31fb9
  1. 15
      subpkg/complete/complete.vue

15
subpkg/complete/complete.vue

@ -88,7 +88,6 @@
return { return {
"questionFreId":"8eefa1161f4643ccaed9404949911a39", "questionFreId":"8eefa1161f4643ccaed9404949911a39",
"roleId":"8ad2af376ec64f519147030497086a96", "roleId":"8ad2af376ec64f519147030497086a96",
"userId":"",
"sceneId": "", "sceneId": "",
questionList: [], questionList: [],
recordList: [], recordList: [],
@ -136,6 +135,7 @@
this.getQuestionList() this.getQuestionList()
this.getRecordList() this.getRecordList()
this.editUserMedal(); this.editUserMedal();
this.updateScore();
this.getQR(); this.getQR();
}, },
computed: { computed: {
@ -169,6 +169,15 @@
//uni.$showMsg('数据请求成功!') //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() { async getRecordList() {
const { const {
data: res data: res
@ -183,8 +192,8 @@
data: res data: res
} = await uni.$http.post('/small/wechat/editUserMedal', { } = await uni.$http.post('/small/wechat/editUserMedal', {
medal: this.sceneId, medal: this.sceneId,
guid: "2752c89b6ca843558991f888f8949da2", guid: this.userId,
// guid: this.userId, // guid: "2752c89b6ca843558991f888f8949da2",
}) })
if (!res.success) return uni.$showMsg() if (!res.success) return uni.$showMsg()
// this.recordList = res.data // this.recordList = res.data

Loading…
Cancel
Save