公众号文章修复

This commit is contained in:
sugar1569 2019-02-14 10:37:16 +08:00
parent 601bd89543
commit c1694d1835

View File

@ -24,7 +24,7 @@
</ul> </ul>
</div> </div>
<p class="loading-line" v-show="loading == true"><i></i><span>正在加载中</span><i></i></p> <p class="loading-line" v-show="loading == true"><i></i><span>正在加载中</span><i></i></p>
<p class="loading-line" v-show="loading == false && loaded == false" v-cloak=""><i></i><span>加载更多</span><i></i></p> <p class="loading-line" v-show="loading == false && loaded == false" v-cloak=""><i></i><span>向上滑动加载更多</span><i></i></p>
<p class="loading-line" v-show="loading == false && loaded == true" v-cloak=""><i></i><span>没有更多了</span><i></i></p> <p class="loading-line" v-show="loading == false && loaded == true" v-cloak=""><i></i><span>没有更多了</span><i></i></p>
</div> </div>
</div> </div>
@ -67,7 +67,7 @@
return article.url ? article.url : $h.U({c:'article',a:'visit',p:{id:article.id}}); return article.url ? article.url : $h.U({c:'article',a:'visit',p:{id:article.id}});
}, },
getList:function(){ getList:function(){
if(this.loading) return ; if(this.loading) return;
this.getArticleList(); this.getArticleList();
}, },
getArticleList:function(){ getArticleList:function(){
@ -96,7 +96,7 @@
if(this.scroll === null){ if(this.scroll === null){
this.$refs.bsDom.style.height = (document.documentElement.clientHeight)+'px'; this.$refs.bsDom.style.height = (document.documentElement.clientHeight)+'px';
this.$refs.bsDom.style.overflow = 'hidden'; this.$refs.bsDom.style.overflow = 'hidden';
this.scroll = new BScroll(this.$refs.bsDom,{click:true,probeType:1,cancelable:false,deceleration:0.005,snapThreshold:0.01}); this.scroll = new BScroll(this.$refs.bsDom,{click:true,probeType:1,cancelable:false,deceleration:0.005,snapThreshold:0.1});
this.scroll.on('pullingUp',function(){ this.scroll.on('pullingUp',function(){
that.loading == false && that.getList(); that.loading == false && that.getList();
}) })