添加 评估列表加载loading 效果
This commit is contained in:
@@ -27,6 +27,9 @@
|
|||||||
.list-block .item-subtitle em.em02{font-size:0.75rem;color:#EB5F34;}
|
.list-block .item-subtitle em.em02{font-size:0.75rem;color:#EB5F34;}
|
||||||
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
|
.list-block .item-subtitle div.price{position:absolute;bottom:-0.3rem;right:0;}
|
||||||
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
|
.list-block .item-subtitle div.price em strong{font-size:1.4rem;color:#EB5F34;font-weight:bold;margin-right:0.1rem;}
|
||||||
|
/**添加loading加载效果**/
|
||||||
|
.loadingBg{width:100%;height:100%;background:#fff;overflow:hidden;position:absolute;top:71px;left:0;z-index:100;}
|
||||||
|
.loadingBg .infinite-scroll-preloader{margin-top:60%;}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
@@ -41,6 +44,12 @@
|
|||||||
</button>
|
</button>
|
||||||
<h1 class="title">房产评估</h1>
|
<h1 class="title">房产评估</h1>
|
||||||
</header>
|
</header>
|
||||||
|
<!-- 加载loading页 -->
|
||||||
|
<div class="loadingBg">
|
||||||
|
<div class="infinite-scroll-preloader">
|
||||||
|
<div class="preloader"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="list-block media-list">
|
<div class="list-block media-list">
|
||||||
<!-- 动态封装部分 begin -->
|
<!-- 动态封装部分 begin -->
|
||||||
@@ -49,7 +58,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
<!-- 动态封装部分 end -->
|
<!-- 动态封装部分 end -->
|
||||||
</div>
|
</div>
|
||||||
<div class="content-block">
|
<div class="content-block" style="display: none;">
|
||||||
<p><a href="#" class="button button-big button-fill theme">立即评估</a></p>
|
<p><a href="#" class="button button-big button-fill theme">立即评估</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -179,6 +188,9 @@ function selectEvaluateList(){
|
|||||||
//动态追加内容
|
//动态追加内容
|
||||||
$('.list-block ul').html(htmlContent);
|
$('.list-block ul').html(htmlContent);
|
||||||
}
|
}
|
||||||
|
//添加loading等待效果
|
||||||
|
$(".loadingBg").hide();
|
||||||
|
$(".content-block").show();
|
||||||
}).catch(function (error) {
|
}).catch(function (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user