|
@ -1,4 +1,4 @@
|
|
|
var page = 1,
|
|
|
var page = 0,//原本为1,现改为0
|
|
|
pageSize = 10,
|
|
|
myScroller,
|
|
|
keyword = "",
|
|
@ -25,26 +25,34 @@ mui.plusReady(function(){
|
|
|
function getPatientList(isInit){
|
|
|
plus.nativeUI.showWaiting();
|
|
|
if(isInit){
|
|
|
page = 1;
|
|
|
page = 0;
|
|
|
}
|
|
|
var url = "doctor/patient/getPatientSignByNameOrIdCard",
|
|
|
// var url = "doctor/patient/getPatientSignByNameOrIdCard", //原本代码
|
|
|
// params = {
|
|
|
// keyWord: $.trim($(".search-input").val()),
|
|
|
// deviceSn: snCode,
|
|
|
// page: page,
|
|
|
// pageSize: pageSize
|
|
|
// };
|
|
|
var url = "doctor/concern/getConcernPatients", //获取关注该医生的用户列表
|
|
|
params = {
|
|
|
keyWord: $.trim($(".search-input").val()),
|
|
|
deviceSn: snCode,
|
|
|
patientName: $.trim($(".search-input").val()),
|
|
|
doctor:docInfo.code,
|
|
|
page: page,
|
|
|
pageSize: pageSize
|
|
|
};
|
|
|
};
|
|
|
if(isManage){
|
|
|
var selectedRole = JSON.parse(plus.storage.getItem("selectedRole"));
|
|
|
var level = selectedRole.code == '350200' ? 4 : selectedRole.code.length==6 ? 3 : 2;
|
|
|
params.isManage = 1;
|
|
|
params.level = level;
|
|
|
// params.isManage = 1; //原本代码
|
|
|
// params.level = level;
|
|
|
params.area = selectedRole.code;
|
|
|
}else{
|
|
|
params.isManage = 0;
|
|
|
params.area = docInfo.hospital;
|
|
|
// params.isManage = 0; //原本代码
|
|
|
// params.area = docInfo.hospital;
|
|
|
}
|
|
|
sendPost(url, params, null, function(res){
|
|
|
// sendPost(url, params, null, function(res){//原本代码
|
|
|
sendGet(url, params, null, function(res){
|
|
|
plus.nativeUI.closeWaiting();
|
|
|
if(res.status == 200){
|
|
|
$(".mui-scroll-wrapper").show();
|