Ver Código Fonte

退出再登录,原始数据清空

wangaidan 8 anos atrás
pai
commit
fcc0d5839d
1 arquivos alterados com 2 adições e 6 exclusões
  1. 2 6
      app/js/consult.js

+ 2 - 6
app/js/consult.js

@ -38,13 +38,9 @@ window.addEventListener('logined', function(event) {
38 38
	content1.style.display = 'block';
39 39
	content2.style.display = 'none';
40 40
	console.log('点击登录ID=='+userId)
41
	table.innerHTML = '';
41 42
	initData();
42 43
	
43
	if(plus.nativeUI.showWaiting()){
44
		
45
		plus.nativeUI.closeWaiting();//关闭等待框
46
		mui('#zixunpullrefresh').scroll().scrollTo(0,0,100);//100毫秒滚动到顶
47
	}
48 44
});
49 45
50 46
mui.plusReady(function() {
@ -171,7 +167,7 @@ function initData(){
171 167
                		table.innerHTML = '';//下拉刷新,清空数据
172 168
                		var datalist = data.data.data;
173 169
					eachData(userid,datalist);
174
					mui('#zixunpullrefresh').pullRefresh().refresh(true);//重置下拉加载
170
//					mui('#zixunpullrefresh').pullRefresh().refresh(true);//重置下拉加载
175 171
					plus.nativeUI.closeWaiting();//关闭原生等待框
176 172
					mui('#zixunpullrefresh').pullRefresh().scrollTo(0,0,100)//回到顶部
177 173