|
@ -1,5 +1,5 @@
|
|
|
var d = dialog({contentType:'load', skin:'bk-popup'});
|
|
|
var page = 1,
|
|
|
var page = 0,
|
|
|
pageSize = 10,
|
|
|
userAgent = window.localStorage.getItem(agentName),
|
|
|
pagetype = 2;
|
|
@ -23,11 +23,13 @@ function queryInit(){
|
|
|
function getDoctorList(isInit){
|
|
|
d.show();
|
|
|
if(isInit){
|
|
|
page = 1;
|
|
|
page = 0;
|
|
|
}
|
|
|
var url = "/patient/concern/getConcernDoctors",
|
|
|
params = {
|
|
|
patient: userAgent.uid
|
|
|
patient: userAgent.uid,
|
|
|
page: page,
|
|
|
pageSize: pageSize
|
|
|
};
|
|
|
sendPost(url, params, 'JSON', 'GET', queryFailed, function(res){
|
|
|
if(res.status == 200){
|
|
@ -88,7 +90,7 @@ function initScroller(){
|
|
|
down:{
|
|
|
callback: function(){
|
|
|
getDoctorList(true);
|
|
|
this.endPulldownToRefresh();
|
|
|
this.refresh(true);
|
|
|
}
|
|
|
},
|
|
|
up: {
|
|
@ -96,7 +98,7 @@ function initScroller(){
|
|
|
var self = this;
|
|
|
setTimeout(function() {
|
|
|
getDoctorList(false);
|
|
|
// self.endPullupToRefresh();
|
|
|
//self.endPullupToRefresh();
|
|
|
}, 1000);
|
|
|
}
|
|
|
}
|