页面高度
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <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">
 | 
			
		||||
      <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>
 | 
			
		||||
@@ -62,7 +62,7 @@ export default {
 | 
			
		||||
    },
 | 
			
		||||
    screenHeight(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>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <p class="all_test">全部考试{{height}}</p>
 | 
			
		||||
    <p class="all_test">全部考试</p>
 | 
			
		||||
    <div class="card_list" v-if="testList.length">
 | 
			
		||||
      <scroll-view :style="{height: height + 'px'}" scroll-y>
 | 
			
		||||
        <div class="card" v-for="item in testList" :key="item.id">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user