用户信息
This commit is contained in:
		@@ -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()
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -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 == 3" src="https://cdn.cunwuyun.cn/qujing/bujige.png" alt="">
 | 
			
		||||
          </div>
 | 
			
		||||
          <div class="grade">{{ item.myRecord.score }}</div>
 | 
			
		||||
          <div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="card_bottom col_blue" @click="handleToTest(item.id)">参加考试</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) {
 | 
			
		||||
      if(!this.user.areaId) {
 | 
			
		||||
        this.showAuth = true;
 | 
			
		||||
@@ -212,6 +219,10 @@ export default {
 | 
			
		||||
          color: #0FC484;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .error {
 | 
			
		||||
          color: #E23C3C;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      .card_bottom {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user