@ -6,9 +6,10 @@
{{g.groupTitle}}
</div>
<template v-for="(item, i) in g.children">
<slot v-if="$slots[item.id]" :name="item.id" :config="item" />
<van-field
:class="{'has-tips': $slots[item.id+'-tips']}"
v-if="item.type=='text'||item.type=='textarea'"
v-else-if="item.type=='text'||item.type=='textarea'"
:type="item.type"
:key="i"
v-model="form[item.id]"
@ -1,8 +1,8 @@
.custom-list{
display: flex;
flex-direction: column;
height: 100vh;
.search{
position: fixed;
top: 0;
width: 100%;
z-index: 2;
border-bottom: 1px solid #e1e1e1;
@ -15,12 +15,15 @@
}
.filter{
top: 54px;
&.has-search{
.custom-van-list{
// margin-top: 54px;
margin-top: 54px;
@ -29,20 +32,35 @@
margin-top: 99px;
.van-pull-refresh{
min-height: 100%;
::v-deep .van-pull-refresh__track{
flex: 1;
.has-top{
.mainNobotHasTop{
height: calc(100vh - 45px);
height: calc(100vh - 46px);
top: 45px;
top: 46px;
top: 99px;
.van-pull-refresh {
flex-grow: 1;
.app-wrapper-1.has-top{
@ -29,6 +29,8 @@
v-model="loading"
:finished="finished"
finished-text="没有更多了"
:error.sync="isError"
error-text="请求失败,点击重新加载"
@load="onLoad"
>
<div class="custom-van-list">