@ -187,6 +187,28 @@
return uuid.join('');
}
/*
* 获取图片路径方法修改
*/
function getImgUrl(str){
if(typeof str != 'string'){
return "";
if(str.length == 0){
}else{
if(str.indexOf("../")>-1){
//访问本地路径
return str;
}else if((str.indexOf("http://")>-1) || (str.indexOf("https://")>-1)){
//服务器上的图片路径
return imgServer + str;
APIService = {
agentName: agentName,
@ -198,6 +220,7 @@
httpPost: httpPost,
imHttpGet: imHttpGet,
imHttpPost: imHttpPost,
getImgUrl: getImgUrl,
getDoctorInfo: function() {
return httpGet('doctor/baseinfo');
},