37
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
<div class="title">{{ data.title }}</div>
|
||||
<p class="study_num">{{ data.learnerNumber || 0 }}人已学习</p>
|
||||
|
||||
<p class="content" v-html="data.content"></p>
|
||||
<u-parse class="content" :html="data.content"></u-parse>
|
||||
|
||||
<div class="btn_box">
|
||||
<div class="input_btn" @click="showSend = true">我来说两句...</div>
|
||||
|
||||
@@ -6,29 +6,27 @@
|
||||
</div>
|
||||
|
||||
<p class="all_test">全部考试</p>
|
||||
|
||||
|
||||
<div class="card_list" v-if="testList.length">
|
||||
<scroll-view style="height: 100%;" scroll-y>
|
||||
<div class="card" v-for="item in testList" :key="item.id">
|
||||
<div class="card_top">
|
||||
<div class="card_title">{{ item.examinationName }}</div>
|
||||
<div class="card_count">
|
||||
共<span class="col_blue">{{ item.allSubjectNumber }}</span>题
|
||||
<scroll-view class="scroll_box" scroll-y>
|
||||
<div class="card" v-for="item in testList" :key="item.id">
|
||||
<div class="card_top">
|
||||
<div class="card_title">{{ item.examinationName }}</div>
|
||||
<div class="card_count">
|
||||
共<span class="col_blue">{{ item.allSubjectNumber }}</span>题
|
||||
</div>
|
||||
<div class="card_statistics">
|
||||
<span>{{ item.passNumber }}</span>人通过/<span>{{ item.examinationNumber }}</span>人参与
|
||||
</div>
|
||||
<div class="result" v-if="item.myRecord">
|
||||
<img v-show="item.myRecord.assessmentType == 0" src="https://cdn.cunwuyun.cn/qujing/youxiu.png" alt="">
|
||||
<img v-show="item.myRecord.assessmentType == 1" src="https://cdn.cunwuyun.cn/qujing/lianghao.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="">
|
||||
</div>
|
||||
<div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
|
||||
</div>
|
||||
<div class="card_statistics">
|
||||
<span>{{ item.passNumber }}</span>人通过/<span>{{ item.examinationNumber }}</span>人参与
|
||||
</div>
|
||||
<div class="result" v-if="item.myRecord">
|
||||
<img v-show="item.myRecord.assessmentType == 0" src="https://cdn.cunwuyun.cn/qujing/youxiu.png" alt="">
|
||||
<img v-show="item.myRecord.assessmentType == 1" src="https://cdn.cunwuyun.cn/qujing/lianghao.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="">
|
||||
</div>
|
||||
<div class="grade" :class="{'error':item.myRecord.assessmentType == 3}">{{ item.myRecord.score }}</div>
|
||||
<div class="card_bottom col_blue" @click="handleToTest(item.id)">参加考试</div>
|
||||
</div>
|
||||
<div class="card_bottom col_blue" @click="handleToTest(item.id)">参加考试</div>
|
||||
</div>
|
||||
</scroll-view>
|
||||
</div>
|
||||
<AiEmpty :description="`暂无数据`" class="emptyWrap" v-else/>
|
||||
@@ -78,6 +76,7 @@ export default {
|
||||
flag: false,
|
||||
current: 1,
|
||||
testList: [],
|
||||
height: '',
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -170,6 +169,10 @@ export default {
|
||||
padding: 8px 32px;
|
||||
box-sizing: border-box;
|
||||
|
||||
.scroll_box {
|
||||
height: calc(100% - 230px);
|
||||
}
|
||||
|
||||
.card {
|
||||
margin-top: 24px;
|
||||
.card_top,
|
||||
|
||||
Reference in New Issue
Block a user