页面高度
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppLegalLearning">
|
<div class="AppLegalLearning">
|
||||||
<u-navbar title="法治学习" background="#f4f6fa" :is-back="false" title-bold></u-navbar>
|
<u-navbar title="法治学习" background="#fff" :is-back="false" title-bold></u-navbar>
|
||||||
<div class="tabs_box">
|
<div class="tabs_box">
|
||||||
<u-tabs :list="tabs" font-size="32" bg-color="#f3f5f7" inactive-color="#999999"
|
<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>
|
:active-item-style="{color: '#222222'}" :is-scroll="true" :current="currIndex" @change="(i) => (currIndex = i)"> </u-tabs>
|
||||||
@@ -62,7 +62,7 @@ export default {
|
|||||||
},
|
},
|
||||||
screenHeight(v) {
|
screenHeight(v) {
|
||||||
if(v) {
|
if(v) {
|
||||||
this.height = this.screenHeight - 200
|
this.height = this.screenHeight - 250
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
:show-action="false" @search="getList" @clear="title='',getList()"></u-search>
|
:show-action="false" @search="getList" @clear="title='',getList()"></u-search>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p class="all_test">全部考试{{height}}</p>
|
<p class="all_test">全部考试</p>
|
||||||
<div class="card_list" v-if="testList.length">
|
<div class="card_list" v-if="testList.length">
|
||||||
<scroll-view :style="{height: height + 'px'}" scroll-y>
|
<scroll-view :style="{height: height + 'px'}" scroll-y>
|
||||||
<div class="card" v-for="item in testList" :key="item.id">
|
<div class="card" v-for="item in testList" :key="item.id">
|
||||||
|
|||||||
Reference in New Issue
Block a user