diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 95cf5c1..326dbf7 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -33,6 +33,7 @@ export default { this.$refs.OnlineClass.getList(); } else { this.$refs.GeneralLawExam.getList(); + this.$refs.GeneralLawExam.getUserInfo() } }, components: { @@ -46,6 +47,7 @@ export default { this.$refs.OnlineClass.getList(); } else if(v == 1) { this.$refs.GeneralLawExam.getList(); + this.$refs.GeneralLawExam.getUserInfo() } } } diff --git a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue index 4650a32..3e18ead 100644 --- a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue +++ b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue @@ -23,7 +23,7 @@ -
{{ item.myRecord.score }}
+
{{ item.myRecord.score }}
参加考试
@@ -95,6 +95,13 @@ export default { } }) }, + getUserInfo() { + this.$instance.post(`/app/appwechatuserqujing/check`).then(res=> { + if(res?.data) { + this.$store.commit('setUser', res.data) + } + }) + }, handleToTest(id) { if(!this.user.areaId) { this.showAuth = true; @@ -212,6 +219,10 @@ export default { color: #0FC484; } + .error { + color: #E23C3C; + } + } .card_bottom {