|
|
|
@ -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 |
|
|
|
|