bug
This commit is contained in:
		@@ -7,7 +7,6 @@
 | 
			
		||||
 | 
			
		||||
    <p class="all_test">全部考试</p>
 | 
			
		||||
    <div class="card_list" v-if="testList.length">
 | 
			
		||||
      <!-- @scrolltolower="scrolltLower" -->
 | 
			
		||||
      <scroll-view :style="{height: height + 'px'}" scroll-y>
 | 
			
		||||
        <div class="card" v-for="item in testList" :key="item.id">
 | 
			
		||||
          <div class="card_top">
 | 
			
		||||
@@ -19,10 +18,10 @@
 | 
			
		||||
              <span>{{ item.passNumber }}</span>人通过/<span>{{ item.examinationNumber }}</span>人参与
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="result" v-if="item.myRecord">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 0" src="https://cdn.cunwuyun.cn/qujing/youxiu.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 1" src="https://cdn.cunwuyun.cn/qujing/lianghao.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 2" src="https://cdn.cunwuyun.cn/qujing/jige.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/bujige.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 0" src="https://cdn.cunwuyun.cn/qujing/xuefuwuche.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 1" src="https://cdn.cunwuyun.cn/qujing/caigaobadou.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 2" src="https://cdn.cunwuyun.cn/qujing/hege.png" alt="">
 | 
			
		||||
              <img class="result-img" v-show="item.myRecord.assessmentType == 3" src="https://cdn.cunwuyun.cn/qujing/buhege.png" alt="">
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
@@ -83,6 +82,7 @@ export default {
 | 
			
		||||
      current: 1,
 | 
			
		||||
      testList: [],
 | 
			
		||||
      testId: '',
 | 
			
		||||
      studyDuration: '',
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  computed: {
 | 
			
		||||
@@ -98,7 +98,6 @@ export default {
 | 
			
		||||
        }
 | 
			
		||||
      }).then(res=> {
 | 
			
		||||
        if(res?.data) {
 | 
			
		||||
          // this.testList = this.current==1? res.data.records: [...this.testList,...res.data.records]
 | 
			
		||||
          this.testList = res.data.records
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
@@ -118,6 +117,14 @@ export default {
 | 
			
		||||
        this.$emit('toTest',id)
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    // 查看累计时长
 | 
			
		||||
    getStudyDuration() {
 | 
			
		||||
      this.$instance.post(`/app/appwechatuserqujing/queryStudyDuration`).then(res => {
 | 
			
		||||
        if (res?.data) {
 | 
			
		||||
          this.studyDuration = res.data.studyDuration
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    comfirm() {
 | 
			
		||||
      if(this.flag) return
 | 
			
		||||
 | 
			
		||||
@@ -156,10 +163,6 @@ export default {
 | 
			
		||||
        this.$u.toast(err.msg)
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    // scrolltLower() {
 | 
			
		||||
    //   this.current++
 | 
			
		||||
    //   this.getList()
 | 
			
		||||
    // }
 | 
			
		||||
  },
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user