|  | @ -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"
 | 
	
		
			
				|  |  |   }
 | 
	
		
			
				|  |  |   }  
 | 
	
		
			
				|  |  | })
 |