浏览代码

咨询页面下拉刷新修改

xuchunyang 8 年之前
父节点
当前提交
4fea82dde1
共有 2 个文件被更改,包括 8 次插入7 次删除
  1. 3 3
      app/html/consultlist.html
  2. 5 4
      app/js/consult.js

+ 3 - 3
app/html/consultlist.html

@ -75,11 +75,11 @@
75 75
    	/*#zixunpullrefresh .mui-pull-top-pocket {
76 76
    		top: 90px;
77 77
    	}*/
78
       .mui-content .mui-pull-top-pocket{
78
       #zixunpullrefresh .mui-pull-top-pocket{
79 79
		  top: 90px !important;
80
		 
80 81
	   }
81
    	
82
    	
82
    
83 83
    	
84 84
    	/*图片div*/
85 85
    	.imgdiv {

+ 5 - 4
app/js/consult.js

@ -98,7 +98,8 @@ mui.init({
98 98
	pullRefresh: {
99 99
		container: '#zixunpullrefresh',
100 100
		down: {
101
			height:50,
101
			height:200,
102
			//auto: true,
102 103
			callback: pulldownRefresh
103 104
			
104 105
		}
@ -127,17 +128,17 @@ function pulldownRefresh() {
127 128
128 129
129 130
//上拉加载
130
function pullupRefresh() {
131
/*function pullupRefresh() {
131 132
	pageIndex = ++pageIndex;
132 133
	
133 134
	setTimeout(function() {
134 135
		getaData();
135 136
	}, 1000);
136 137
}
137
138
*/
138 139
139 140
//初始化数据
140
function initData(){
141
function initData(){ 
141 142
	mui.plusReady(function() { 
142 143
		var userid = plus.storage.getItem('userid');
143 144
		plus.nativeUI.showWaiting('加载中...');//显示原生等待框