用户信息

This commit is contained in:
shijingjing
2023-02-16 08:54:41 +08:00
parent 77c65c4e80
commit de4f337f93
2 changed files with 14 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ export default {
this.$refs.OnlineClass.getList(); this.$refs.OnlineClass.getList();
} else { } else {
this.$refs.GeneralLawExam.getList(); this.$refs.GeneralLawExam.getList();
this.$refs.GeneralLawExam.getUserInfo()
} }
}, },
components: { components: {
@@ -46,6 +47,7 @@ export default {
this.$refs.OnlineClass.getList(); this.$refs.OnlineClass.getList();
} else if(v == 1) { } else if(v == 1) {
this.$refs.GeneralLawExam.getList(); this.$refs.GeneralLawExam.getList();
this.$refs.GeneralLawExam.getUserInfo()
} }
} }
} }

View File

@@ -23,7 +23,7 @@
<img v-show="item.myRecord.assessmentType == 2" src="https://cdn.cunwuyun.cn/qujing/jige.png" alt=""> <img v-show="item.myRecord.assessmentType == 2" src="https://cdn.cunwuyun.cn/qujing/jige.png" alt="">
<img v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/bujige.png" alt=""> <img v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/bujige.png" alt="">
</div> </div>
<div class="grade">{{ item.myRecord.score }}</div> <div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
</div> </div>
<div class="card_bottom col_blue" @click="handleToTest(item.id)">参加考试</div> <div class="card_bottom col_blue" @click="handleToTest(item.id)">参加考试</div>
</div> </div>
@@ -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) { handleToTest(id) {
if(!this.user.areaId) { if(!this.user.areaId) {
this.showAuth = true; this.showAuth = true;
@@ -212,6 +219,10 @@ export default {
color: #0FC484; color: #0FC484;
} }
.error {
color: #E23C3C;
}
} }
.card_bottom { .card_bottom {