// load-more组件 (三种loading效果)
load-more.wxml
<view class="tui-loadmore-class tui-loadmore" wx:if="{
{visible}}">
<view class="{
{'tui-loading-'+index}} {
{(index==3 && type)?'tui-loading-'+type:''}}"></view>
<view class="tui-loadmore-tips">{
{text}}</view>
</view>
load-more.wxss
.tui-loadmore {
width: 48%;
margin: 1.5em auto;
line-height: 1.5em;
font-size: 24rpx;
text-align: center;
}
.tui-loading-1 {
margin: 0 5px;
width: 20px;
height: 20px;
display: inline-block;
vertical-align: middle;
-webkit-animation: a 1s steps(12) infinite;
animation: a 1s steps(12) infinite;
background: transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiB2aWV3Qm94PSIwIDAgMTAwIDEwMCI+PHBhdGggZmlsb