Browse Source

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

wangaidan 8 years ago
parent
commit
fcc0d5839d
1 changed files with 2 additions and 6 deletions
  1. 2 6
      app/js/consult.js

+ 2 - 6
app/js/consult.js

38
	content1.style.display = 'block';
38
	content1.style.display = 'block';
39
	content2.style.display = 'none';
39
	content2.style.display = 'none';
40
	console.log('点击登录ID=='+userId)
40
	console.log('点击登录ID=='+userId)
41
	table.innerHTML = '';
41
	initData();
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
mui.plusReady(function() {
46
mui.plusReady(function() {
171
                		table.innerHTML = '';//下拉刷新,清空数据
167
                		table.innerHTML = '';//下拉刷新,清空数据
172
                		var datalist = data.data.data;
168
                		var datalist = data.data.data;
173
					eachData(userid,datalist);
169
					eachData(userid,datalist);
174
					mui('#zixunpullrefresh').pullRefresh().refresh(true);//重置下拉加载
170
//					mui('#zixunpullrefresh').pullRefresh().refresh(true);//重置下拉加载
175
					plus.nativeUI.closeWaiting();//关闭原生等待框
171
					plus.nativeUI.closeWaiting();//关闭原生等待框
176
					mui('#zixunpullrefresh').pullRefresh().scrollTo(0,0,100)//回到顶部
172
					mui('#zixunpullrefresh').pullRefresh().scrollTo(0,0,100)//回到顶部
177
173