前台模拟访问

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script language="JavaScript"
	src="${pageContext.request.contextPath}/common/scripts/jquery.min.js"></script>

<script type="text/javascript" language="JavaScript">
	function submitUserList_3() {
		alert("ok");
	/*	var customerArray = new Array();

      var appoOrderInfo={
			  "userKey":"1",
			  "checkParams":"123",
			  "appoOrderInfo":{
			  "patiID":"123",
			  "patiName":"test",
			  "hospitalID":"1",
			  "deptID":"6F9DBEC4714543D9834522D57272A6D5",
			  "doctorID":"58857DEE0FBA4AFEA166F0DA2AF33CD4",
			  "cardNum":"123123123",
			  "regiFee":"1",
			  "regiTreatFee":"22",
			  "sex":"男",
			  "phoneNum":"11111231",
			  "birthday":"1980-09-01",
			  "ybCard":"9239482",
			  "familyID":null,
			  "regiDate":"2015-11-10",
			  "timeFlag":"1",
			  "regiSartTime":"09:00",
			  "regiEndTime":"09:30"
			  }
			  }


		     	
		 */
               
	 /*  var appoOrderInfo={
			   "userKey":"1",
			   "checkParams":"123",
			   "appoOrderInfo":
			   {
			   "patiID":"402881e851e6631a0151e66738350002",
			   "patiName":"xxx",
			   "hospitalID":"1",
			   "hospitalName":"福田医院",
			   "deptID":"F9FEB9C8AF4948B983CB9AD1977C4709",
			   "deptName":"皮肤科",
			   "doctorID":"E23B79C363BF46CE8F858DBC703F0AD5",
			   "doctorName":"王京",
			   "cardNum":"123123123",
			   "regiFee":"1",
			   "regiTreatFee":"22",
			   "sex":"男",
			   "phoneNum":"11111231",
			   "birthday":"1980-09-01",
			   "ybCard":"9239482",
			   "familyID":null,
			   "regiDate":"2015-12-26",
			   "timeFlag":"2",
			   "regiSartTime":"15:00",
			   "regiEndTime":"15:30",
			   "regSourceID":"27055415154360858520151223161250"
			   }
			   }

			
		 
		 */
		 
	/*var regiOrderInfo={
				"userKey":"12333333333333333333",
				"checkParams":"123456",
				"regiOrderInfo":{
				"patiID":"402881e851e6631a0151e66738350002",
				"patiName":"test现场挂号表",
				"hospitalID":"1",
				"deptID":"6F9DBEC4714543D9834522D57272A6D5",
				"doctorID":"44A7EBC5BE9449DDA1EC04E680A110C8",
				"cardNum":"123123123",
				"timeFlag":"1",
				"regiFee":"1",
				"regiTreatFee":"22",
				"sex":"男",
				"phoneNum":"11111231",
				"birthday":"1980-09-01",
				"ybCard":null
				}
				}

      */
     /* var jsonObj={
    		  "userKey":"edda2568ea4fead0768c8772ae846875c7db1a1b670d6fac2dfb68dd498868e79b35e80e212c09546732e2a6156a0f470d861f9fc154012918e312da2e705f40",
    		  "checkParams":" f072ceb5b04abdd3faa2fad72b74d371235d1288",
    		  "userInfo":{
    		  "userID":"402881e951a9cf590151a9d466c20001",
    		  "patientID":"8DC28171DAA74406BB4831BDDF4D6152",
    		  "userName":"test",
    		  "cardNum":null,
    		  "cardType":0,
    		  "birthday":"1992-12-11",
    		  "ybCard":null,
    		  "sex":null,
    		  "bloodType": null,
    		  "marry": "已婚",
    		  "job": null,
    		  "address":null,
    		  "place": null,
    		  "phoneNum":"13510527664",
    		  "photoUrl":null
    		  }
    		  }*/
    		  /* var familyInfo={
    	    		  "userKey":"0974f38a7077207512b0b234d05ac431fcc07fa858115c4f6c5b16243b1385e141dcf97ea6974d60c1912220e1e5574916a8de5425ecd726fdb63762351a12c83ee0a4eccc416b81c5ec6dc04ae6b6370242cf3cf83b50e1ba1be4bdc0cf17fdc63c2d4e130679b01b9bf05319d541d9ddc669601541b99597bff0085d6ea614",
    	    		  "checkParams":" f072ceb5b04abdd3faa2fad72b74d371235d1288",
    	    		  "familyInfo":{
    	    			  "familyName":"xxx",
    	    			  "patiID":"402881e851e6631a0151e66738350002",
    	    			  "cardNum":"1111111",
    	    			  "cardType":0,
    	    			  "birthday":null,
    	    			  "ybCard":null,
    	    			  "sex":null,
    	    			  "bloodType": null,
    	    			  "marry": null,
    	    			  "job": null,
    	    			  "address":null,
    	    			  "place": null,
    	    			  "phoneNum":"13510527664",
    	    			  "photoUrl":null
    	    		  }
    	    		  }
    		  */
    		  
    		  
				$.ajax({
					//url : "${pageContext.request.contextPath}/app/oder/appo/cancel?userKey=0c8c5b4215ba365d99b57973e32bd34114d73e0a48c6ace2a14db19f37ada75c87c9505c85503d2c02d8daa168cd923b411c9102cb90a3ef599f163f826326eb&checkParams=123&userID=&orderID=2575136",
						//url : "${pageContext.request.contextPath}/app/auth/customer/info/changePwd?userKey=21cb7ab1eeb2baf46c4a54afc2922b487791d117c68a38cd391232965d1a9e202a88ad6f50086b9dc13dbe471cc25615b3580d70da6dd657e3945f6636e3f32a22d24edd1dbb52f4f82ddbc97fe84397b157636b1333f1e8ad0be88251e1a887bf3e43486f65362d01dc0d9b614e7216210ee698de4c82452926041d72566c6b&userID=402881e851d845e00151d84bffde0000&checkParams=123&oldPwd=123&newPwd=1234",//修改密码
					//	url : "${pageContext.request.contextPath}/app/auth/customer/family/del?userKey=123456&checkParams=1234&familyid=F31147F31FE7499E9D4C21C9A29E8D92.html",//用户登录
					//		url : "${pageContext.request.contextPath}/AppService/queryHospital/402881eb5582021701558202fbbc0001/cyxtest/-1.html",//(获取医院信息)
					//url : "${pageContext.request.contextPath}/AppService/queryDeptList/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/a5a897adf5b24cc2872cbb53f4b3f109.html",//(获取科室信息)
					//  url : "${pageContext.request.contextPath}/AppService/queryDocList/402881ed5431bc0e015431bcb5ce0001/weixin123/1/-1/-1.html",
					//url : "${pageContext.request.contextPath}/AppService/queryScheduleList/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/59b992d081db44a9bef07c2fc9e7853a/629E6CF22EEC43B8BBAB5600F3DF69E5/2016-07-22/2016-07-24.html",
					//url : "${pageContext.request.contextPath}/AppService/queryTotalAppointment/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/2016-07-22/2016-08-1.html",
					//url : "${pageContext.request.contextPath}/AppService/queryOrder/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/7eed8d5e35284d41be9947b47c8c4ae9/2016-07-26/2016-07-21.html",
					//url : "${pageContext.request.contextPath}/AppService/createOrder/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/1111112/009E81D4000D4BAAB915A3B18B095DEF/AC0446D33AD540EF9F73F35F65EE561D/2016-09-23/08:00/08:30/-1/陈一学/23/1993-03-17/1/13828498727/43042219940317881X.html",
					//url : "${pageContext.request.contextPath}/AppService/createOrderDocStation/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/1111110/009E81D4000D4BAAB915A3B18B095DEF/701D06E7D3704A1284BDC0D087FD0641/2016-07-22/08:30/09:00/0/-1/陈一学/23/1993-03-17/1/13828498727/43042219940317881X.html",
					url : "${pageContext.request.contextPath}/AppService/cancelOrder/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/1111112/2016-09-23/2016-09-22.html",
					//url : "${pageContext.request.contextPath}/AppService/querySource/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E/402881755607b12101560b8a1ea32f34.html",
					//url :"${pageContext.request.contextPath}/AppService/queryHospital/402881ed5431bc0e015431bcb5ce0001/weixin123/2494AE0905EA483F8CDC6C3F94F4927E.html",
					//url : "${pageContext.request.contextPath}/app/doctor/appo/getAppoDoctorList/6F9DBEC4714543D9834522D57272A6D5",
					
					//url : "${pageContext.request.contextPath}/app/doctor/appo/getAppoDoctorList/5FCA8ECC85A14E8C9A544997EC8D7306",
					
				
					
					type : "post",
					contentType : 'application/json;charset=utf-8', //设置请求头信息
					dataType : "text",
				  // data: JSON.stringify(appoOrderInfo),    //将Json对象序列化成Json字符串,JSON.stringify()原生态方法
					// data: $.toJSON(customerArray),            //将Json对象序列化成Json字符串,toJSON()需要引用jquery.json.min.js
					success : function(data) {

						alert(data);
					},
					error : function(res) {
						alert("错误") 
						alert(res.responseText);
					}
				});
	}
</script>
<body>
	<h1>submitUserList_3</h1>
	<input id="submit" type="button" value="Submit"
		onclick="submitUserList_3();">
</body>
</html>

  

posted @ 2016-12-23 11:44  迦楼罗的风之物语  阅读(915)  评论(0编辑  收藏  举报