Browse Source

修改搜索医生下拉刷新bug

lulihong 6 years ago
parent
commit
feb872cf49
1 changed files with 8 additions and 9 deletions
  1. 8 9
      html/tuandui/js/searchdoctor.js

+ 8 - 9
html/tuandui/js/searchdoctor.js

@ -224,18 +224,17 @@ bindEvents = function (){
	mui.init({
		pullRefresh : {
		    container:'#jumin_wrapper',
		    up : {
		    down : {
			    height:50,
			    contentinit: '',
				contentdown: '',
			    contentrefresh : "正在加载...",
			    contentnomore:'没有更多数据了',
			    auto: false,
			    contentdown : "下拉可以刷新",
			    contentover : "释放立即刷新",
			    contentrefresh : "正在刷新...",
			    callback: function() {
			    	var self = this;
			    	page++;
			    	searchByPaging(true,function(value){
			    	var self = this
			    	searchByPaging(false,function(){
			    		setTimeout(function(){
			    			self.endPullupToRefresh(value);
			    			self.endPulldownToRefresh(false);
			    		},500)
			    	})
				}