页面高度

This commit is contained in:
shijingjing
2023-02-17 14:38:07 +08:00
parent c27f9b673c
commit fb117a21c5
2 changed files with 3 additions and 3 deletions

View File

@@ -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
} }
} }
}, },

View File

@@ -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">