Browse Source

更换文件位置

Xiao_yanpeng 7 years ago
parent
commit
080b9a3a63

+ 10 - 14
api/http-request.js

@ -1,19 +1,16 @@
(function(exports) {
	
    var publish_version = false;
    var server;
	var agentName = "useragent"
	var userInfo = "userInfoForPay"
    var publish_version = false,
	server,
	agentName = "wlyyAgentForDoc",
	userInfo = "userInfoForPay",
	userAgent = window.localStorage.getItem(agentName);//获取pcIM缓存
	
	var str = '{"id":4807,"uid":"xy201703150222","imei":"359357010172188","token":"69c7dc0ef9e8b31efe2b04ee470cc3b0","platform":2,"hospital":"3502050100"}'  
	window.localStorage.setItem(agentName,str)
	
	
	
    if(publish_version) { // 生产环境配置
        server = ""
        
    } else { // 测试环境配置
    if(publish_version) { //生产环境配置
        server = ""  
    } else { //测试环境配置
        server = "http://172.19.103.88:9092/wlyy/"
    }
@ -26,7 +23,7 @@
                    dataType: 'JSON',
                    beforeSend: function(request) {
                    	var userAgent = window.localStorage.getItem(agentName);
                    	request.setRequestHeader(agentName, userAgent);
                    	request.setRequestHeader("userAgent", userAgent);
                    },
                    error: function(res) {
                        reject(res)
@ -47,7 +44,7 @@
                    dataType: 'JSON',
                    beforeSend: function(request) {
                    	var userAgent = window.localStorage.getItem(agentName);
                    	request.setRequestHeader(agentName, userAgent);
                    	request.setRequestHeader("userAgent", userAgent);
                    },
                    error: function(res) {
                        reject(res)
@ -70,6 +67,5 @@
        	return httpPost(url, options)
        }
    }
    exports.httpRequest = httpRequest;
})(window)

+ 0 - 23
app/consultation/consultation.html

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="css/consultation.css" />
	</head>
	<body>
		<div id="app">
			<consultation-list :consulta-data="list" @init-data="msgListView"></consultation-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../js/es6-promise.js"></script>
		<script src="../../component/consultation/consultation-list.js"></script>
		<script type="text/javascript" src="../../component/common/pagination.js" ></script>
		<script src="../../api/http-request.js"></script>
		<script src="../../api/record-api.js"></script>
		<script src="js/consultation.js"></script>
	</body>
</html>

+ 0 - 23
app/education/education.html

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../follow-up/css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :edu-data="list" @init-data="msgListView"></follow-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../js/es6-promise.js"></script>
		<script src="../../component/education/education-list.js"></script>
		<script type="text/javascript" src="../../component/common/pagination.js" ></script>
		<script src="../../api/http-request.js"></script>
		<script src="../../api/record-api.js"></script>
		<script src="js/education.js"></script>
	</body>
</html>

+ 0 - 23
app/follow-up/follow-up.html

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :follow-up-data="list" @init-data="msgListView"></follow-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../js/es6-promise.js"></script>
		<script src="../../component/follow-up/follow-up-list.js"></script>
		<script type="text/javascript" src="../../component/common/pagination.js" ></script>
		<script src="../../api/http-request.js"></script>
		<script src="../../api/record-api.js"></script>
		<script src="js/follow-up.js"></script>
	</body>
</html>

+ 0 - 23
app/guidance/guidance.html

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../consultation/css/consultation.css" />
	</head>
	<body>
		<div id="app">
			<consultation-list :consulta-data="list" @init-data="msgListView"></consultation-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../js/es6-promise.js"></script>
		<script src="../../component/guidance/guidance-list.js"></script>
		<script type="text/javascript" src="../../component/common/pagination.js" ></script>
		<script src="../../api/http-request.js"></script>
		<script src="../../api/record-api.js"></script>
		<script src="./js/guidance.js"></script>
	</body>
</html>

app/consultation/css/consultation.css → app/record/css/consultation.css


app/follow-up/css/follow-up.css → app/record/css/follow-up.css


+ 9 - 9
app/census/census.html

@ -2,9 +2,9 @@
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../consultation/css/consultation.css" />
		<title>统计</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/consultation.css" />
		<style type="text/css">
			.table-responsive{padding: 20px 20px 0;}
			.grayish-bg{background: #f5f5fa;}
@ -62,11 +62,11 @@
			</div>
			
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../js/es6-promise.js"></script>
		<script src="../../api/http-request.js"></script>
		<script src="../../api/record-api.js"></script>
		<script src="./js/census.js"></script>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/census.js"></script>
	</body>
</html>

+ 23 - 0
app/record/html/consultation.html

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>咨询</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/consultation.css" />
	</head>
	<body>
		<div id="app">
			<consultation-list :consulta-data="list" @init-data="msgListView"></consultation-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js" ></script>
		<script src="../../../component/record/consultation-list.js"></script>
		<script src="../js/consultation.js"></script>
	</body>
</html>

+ 23 - 0
app/record/html/education.html

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>健康教育</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :edu-data="list" @init-data="msgListView"></follow-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../component/record/education-list.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js" ></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/education.js"></script>
	</body>
</html>

+ 23 - 0
app/record/html/follow-up.html

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>随访</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :follow-up-data="list" @init-data="msgListView"></follow-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../component/record/follow-up-list.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js" ></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/follow-up.js"></script>
	</body>
</html>

+ 23 - 0
app/record/html/guidance.html

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>健康指导</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/consultation.css" />
	</head>
	<body>
		<div id="app">
			<consultation-list :consulta-data="list" @init-data="msgListView"></consultation-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../component/record/guidance-list.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js" ></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/guidance.js"></script>
	</body>
</html>

+ 24 - 0
app/record/html/record.html

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>服务记录</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../../../plugins/toastr/toastr.min.css" />
		<link rel="stylesheet" href="../../record/css/record.css" />
	</head>
	<body>
		<div id="app">
			<inner-tabs :tabs="innerTabs" :activeidx="activeidx"></inner-tabs>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../plugins/layer/layer.min.js"></script>
		<script src="../../../plugins/toastr/toastr.min.js"></script>
		<script src="../../../js/util.js"></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../component/record/inner-tabs.js"></script>
		<script src="../js/record-tabs.js"></script>
		
	</body>
</html>

+ 23 - 0
app/record/html/toBeReserved.html

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>待预约</title>
		<link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :to-be-reserved-data="list" @init-data="msgListView"></follow-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../../js/vue.js"></script>
		<script type="text/javascript" src="../../../js/jquery-2.2.4.js" ></script>
		<script src="../../../js/es6-promise.js"></script>
		<script src="../../../component/record/toBeReserved-list.js"></script>
		<script type="text/javascript" src="../../../component/common/pagination.js" ></script>
		<script src="../../../api/http-request.js"></script>
		<script src="../../../api/record-api.js"></script>
		<script src="../js/toBeReserved.js"></script>
	</body>
</html>

app/census/js/census.js → app/record/js/census.js


app/consultation/js/consultation.js → app/record/js/consultation.js


app/education/js/education.js → app/record/js/education.js


app/follow-up/js/follow-up.js → app/record/js/follow-up.js


app/guidance/js/guidance.js → app/record/js/guidance.js


+ 8 - 30
app/record/js/record-tabs.js

@ -1,40 +1,18 @@
function GetRequest() {  
   var url = location.search; //获取url中"?"符后的字串
   var theRequest = new Object();
   if (url.indexOf("?") != -1) {
      var str = url.substr(1);
      strs = str.split("&");
      for(var i = 0; i < strs.length; i ++) {
         theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
      }
   }
   return theRequest;
}
var query = GetRequest();
function reseverLinks(str) {
	var link = top.menuLinkMap[str];
	return {
		href: link.href+"?code="+query['code'],
		title: str
	}
}
new Vue({
  el: '#app',
  data: {
  	isAgent: false,
    innerTabs: [{title:'咨询',href:'../consultation/consultation.html'},
    			{title:'随访',href:'../follow-up/follow-up.html'},
    			{title:'代预约',href:'../toBeReserved/toBeReserved.html'},
    			{title:'健康指导',href:'../guidance/guidance.html'},
    			{title:'健康教育',href:'../education/education.html'},
    			{title:'统计',href:'../census/census.html'}
    innerTabs: [{title:'咨询',href:'../html/consultation.html'},
    			{title:'随访',href:'../html/follow-up.html'},
    			{title:'代预约',href:'../html/toBeReserved.html'},
    			{title:'健康指导',href:'../html/guidance.html'},
    			{title:'健康教育',href:'../html/education.html'},
    			{title:'统计',href:'../html/census.html'}
    ],
    activeidx: ""
  },
  mounted: function() {
  	var query = GetRequest();
  	this.activeidx = query.tabIdex || "0"
  }
  }  
})

app/toBeReserved/js/toBeReserved.js → app/record/js/toBeReserved.js


+ 0 - 23
app/record/record.html

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link />
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../../plugins/toastr/toastr.min.css?v=1" />
		<link rel="stylesheet" href="../record/css/record.css" />
	</head>
	<body>
		<div id="app">
			<inner-tabs :tabs="innerTabs" :activeidx="activeidx"></inner-tabs>
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../plugins/layer/layer.min.js"></script>
		<script src="../../plugins/toastr/toastr.min.js"></script>
		<script src="../../component/record/inner-tabs.js"></script>
		<script src="js/record-tabs.js"></script>
		
	</body>
</html>

+ 0 - 23
app/toBeReserved/toBeReserved.html

@ -1,23 +0,0 @@
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap.min.css"/>
		<link rel="stylesheet" href="../follow-up/css/follow-up.css" />
	</head>
	<body>
		<div id="app">
			<follow-list :to-be-reserved-data="list" @init-data="msgListView"></follow-list>
			<navigation :pages="total" :current="currentPage" @navpage="msgListView"></navigation>
		</div>
		<script type="text/javascript" src="../../js/vue.js"></script>
		<script type="text/javascript" src="../../js/jquery-2.2.4.js" ></script>
		<script src="../../js/es6-promise.js"></script>
		<script src="../../component/toBeReserved/toBeReserved-list.js"></script>
		<script type="text/javascript" src="../../component/common/pagination.js" ></script>
		<script src="../../api/http-request.js"></script>
		<script src="../../api/record-api.js"></script>
		<script src="js/toBeReserved.js"></script>
	</body>
</html>

component/consultation/consultation-list.js → component/record/consultation-list.js


component/education/education-list.js → component/record/education-list.js


component/follow-up/follow-up-list.js → component/record/follow-up-list.js


component/guidance/guidance-list.js → component/record/guidance-list.js


component/toBeReserved/toBeReserved-list.js → component/record/toBeReserved-list.js


BIN
images/p-female.png