This commit is contained in:
shijingjing
2023-02-17 14:12:38 +08:00
parent 284c8bd02b
commit 2a5fa63b4b
5 changed files with 52 additions and 47 deletions

View File

@@ -5,9 +5,9 @@
:show-action="false" @search="getList" @clear="title='',getList()"></u-search>
</div>
<p class="all_test">全部考试</p>
<p class="all_test">全部考试{{height}}</p>
<div class="card_list" v-if="testList.length">
<scroll-view class="scroll_box" scroll-y>
<scroll-view :style="{height: height + 'px'}" scroll-y>
<div class="card" v-for="item in testList" :key="item.id">
<div class="card_top">
<div class="card_title">{{ item.examinationName }}</div>
@@ -62,6 +62,9 @@
<script>
import { mapState } from "vuex"
export default {
props: {
height: Number,
},
data() {
return {
showAuth: false,
@@ -76,7 +79,6 @@ export default {
flag: false,
current: 1,
testList: [],
height: '',
}
},
computed: {
@@ -172,10 +174,6 @@ export default {
padding: 8px 32px;
box-sizing: border-box;
.scroll_box {
height: calc(100% - 230px);
}
.card {
margin-top: 24px;
.card_top,