{"size": 668, "ext": "js", "max_stars_repo_path": "static/script/Wshop/deal.js", "max_stars_repo_name": "glxrypaupigsti/happybuy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "static/script/Wshop/deal.js", "max_issues_repo_name": "glxrypaupigsti/happybuy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "static/script/Wshop/deal.js", "max_forks_repo_name": "glxrypaupigsti/happybuy", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.8571428571, "max_line_length": 86, "alphanum_fraction": 0.498502994}

require([ 'config' ], function(config) {

	require([ 'util', 'jquery', 'Spinner', 'Cart' ], function(util, $, Spinner,
			Cart) {
		 layer.open({type: 2});
	  
		 setInterval(checkOrder,1000);//1000为1秒钟
		 function checkOrder()
	     {
	          var id = $('#orderId').val();
	          var url = "?/CashPay/checkPayOrder"
	          console.error("test");
	          $.post(url,{id:id},function(data){
	        	  
	        	  if(data.ret_code > 0){
	        	     history.replaceState(null, "CheersLife 下午茶", "?/CashPay/welcome_view");
	        		 window.location.href="?/CashPay/pay_success/id="+id; 
	        	  }
	        	  
	          });
	     }

	});

});

