Commit f952404841f017a0412446187d24cb36e886bc82

Authored by vking
1 parent 700b1182

loading

@@ -282,4 +282,10 @@ image{ @@ -282,4 +282,10 @@ image{
282 align-items:flex-start; 282 align-items:flex-start;
283 flex-direction: column ; 283 flex-direction: column ;
284 -webkit-flex-direction: column ; 284 -webkit-flex-direction: column ;
  285 +}
  286 +.timg{
  287 + background-size: 100% 100%;
  288 + background-image: url("http://nosqn.colorcun.com/timg.gif");
  289 + width:96rpx;
  290 + height:96rpx;
285 } 291 }
@@ -22,6 +22,7 @@ Page({ @@ -22,6 +22,7 @@ Page({
22 hasDisabled:true, 22 hasDisabled:true,
23 hasSuggestion:false, 23 hasSuggestion:false,
24 placeholder:'您好,几位,什么时候', 24 placeholder:'您好,几位,什么时候',
  25 + hasLoading:true,
25 }, 26 },
26 27
27 /** 28 /**
@@ -186,6 +187,7 @@ Page({ @@ -186,6 +187,7 @@ Page({
186 rsl:[], 187 rsl:[],
187 hasMore:res.data.length==this.size, 188 hasMore:res.data.length==this.size,
188 markers:this.sellerFormat(res.data), 189 markers:this.sellerFormat(res.data),
  190 + hasLoading:false,
189 hasDisabled:this.getHasDisabled(res.data.length>0,this.data.multiIndex[0]>0 || tags.length>0 || this.findSellerData) 191 hasDisabled:this.getHasDisabled(res.data.length>0,this.data.multiIndex[0]>0 || tags.length>0 || this.findSellerData)
190 }) 192 })
191 this.triggerEvent('event',{type:'getListEnd',total:res.data.length}) 193 this.triggerEvent('event',{type:'getListEnd',total:res.data.length})
@@ -31,7 +31,13 @@ @@ -31,7 +31,13 @@
31 </block> 31 </block>
32 </view> 32 </view>
33 </view> 33 </view>
34 -<view class="pages"> 34 +<view class="pages" wx:if="{{hasLoading}}">
  35 + <view class="flex-vc empty">
  36 + <view class="timg"></view>
  37 + <view class="timg-txt">更多餐厅加载中…</view>
  38 + </view>
  39 +</view>
  40 +<view class="pages" wx:else="">
35 <view class="flex-vc empty" wx:if="{{markers.length<1}}"> 41 <view class="flex-vc empty" wx:if="{{markers.length<1}}">
36 <block wx:if="{{!hasFirstShow}}"> 42 <block wx:if="{{!hasFirstShow}}">
37 <image src="http://nosqn.colorcun.com/custom/lite-online/image/follow-empty.png"></image> 43 <image src="http://nosqn.colorcun.com/custom/lite-online/image/follow-empty.png"></image>
@@ -158,4 +158,13 @@ @@ -158,4 +158,13 @@
158 .transverse-list .seller{ 158 .transverse-list .seller{
159 width: 98%; 159 width: 98%;
160 margin: 0 auto; 160 margin: 0 auto;
  161 +}
  162 +.timg-txt{
  163 + height:40rpx;
  164 + font-size:28rpx;
  165 + font-family:PingFangSC-Semibold,PingFang SC;
  166 + font-weight:600;
  167 + color:rgba(53,53,53,1);
  168 + line-height:40rpx;
  169 + margin-top: 30rpx;
161 } 170 }