下拉高度
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<template>
|
||||
<div class="AppLegalLearning" :style="{'height': screenHeight+'px'}">
|
||||
<div class="AppLegalLearning" >
|
||||
<u-navbar title="普法学习" title-color="#000" title-size="32" :background="{background: '#f4f6fa'}" :is-back="false" :title-bold="true"></u-navbar>
|
||||
<div class="tabs_box">
|
||||
<u-tabs :list="tabs" font-size="32" bg-color="#f3f5f7" inactive-color="#999999"
|
||||
:active-item-style="{color: '#222222'}" :is-scroll="true" :current="currIndex" @change="(i) => (currIndex = i)"> </u-tabs>
|
||||
</div>
|
||||
<div :style="{'height': (screenHeight-125)+'px'}">
|
||||
<OnlineClass ref="OnlineClass" :height="height" @to-detail="toDetail" v-show="currIndex == 0"></OnlineClass>
|
||||
<GeneralLawExam ref="GeneralLawExam" :height="height" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam>
|
||||
<div>
|
||||
<OnlineClass ref="OnlineClass" @to-detail="toDetail" v-show="currIndex == 0"></OnlineClass>
|
||||
<GeneralLawExam ref="GeneralLawExam" @to-test="toTest" v-show="currIndex == 1"></GeneralLawExam>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -67,7 +67,7 @@ export default {
|
||||
},
|
||||
screenHeight(v) {
|
||||
if(v) {
|
||||
this.height = this.screenHeight - 150
|
||||
this.height = this.screenHeight - 190
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -80,6 +80,7 @@ export default {
|
||||
},
|
||||
},
|
||||
onReachBottom() {
|
||||
console.log(123)
|
||||
var refName = this.currIndex == 1 ? 'GeneralLawExam' : 'OnlineClass'
|
||||
this.$refs[refName].nextList()
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<p class="all_test">全部考试</p>
|
||||
<div class="card_list" v-if="testList.length">
|
||||
<scroll-view :style="{height: height + 'px'}" scroll-y>
|
||||
<scroll-view scroll-y>
|
||||
<div class="card" v-for="item in testList" :key="item.id">
|
||||
<div class="card_top">
|
||||
<div class="card_title" :class="item.myRecord ? 'min-wid' : '' ">{{ item.examinationName }}</div>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<div class="card_list" v-if="classList.length">
|
||||
<!-- @scrolltolower="scrolltLower" -->
|
||||
<scroll-view :style="{height: height + 'px'}" scroll-y>
|
||||
<scroll-view scroll-y>
|
||||
<div class="card" v-for="item in classList" :key="item.id" @click="handleToDetail(item.id)">
|
||||
<div class="card_left">
|
||||
<img :src="item.pictureUrl" alt="" class="card-img">
|
||||
|
||||
Reference in New Issue
Block a user