<!--
凌夕网络QQ业务下单平台
QQ:582866070
网址:http://www.919dns.com
	http://www.lxinet.com
淘宝:http://919net.taobao.com
-->
<script type="text/javascript">
$(document).ready(function(){
	$("#subbutton_a").click(function(){
		var qq = $("#qq").val();
		var tiaoshu = $("#tiaoshu").val();
		var everydayNum = $("#everydayNum").val();
		var days = $("#days").val();
		var numberre = /^[1-9]+[0-9]*]*$/;
		if(qq == ""){
			alert("请输入QQ号");
		}else if(tiaoshu == ""){
			alert("请输入说说条数");
		}else if(!numberre.test(tiaoshu)){
			alert("说说条数必须大于0的数字");
		}else if(everydayNum == ""){
			alert("请输入每天数量");
		}else if(!numberre.test(everydayNum)){
			alert("每天数量必须大于0的数字");
		}else if(days == ""){
			alert("请输入天数");
		}else if(!numberre.test(days)){
			alert("天数必须大于0的数字");
		}else{
			$.ajax({
		    type: "post",
		    url: "${base}/user/orders/save",
		    data:{
		    	pid:"${loginUser.product}",
		    	qq:qq,
		    	tiaoshu:tiaoshu,
		    	everydayNum:everydayNum,
		    	days:days
		    },
		    dataType: "json",
		    success: function(data) {
		    	alert(data.msg);
		        if(data.status==1){
		        	window.location.href=window.location.href;
		        }
		    }
		  });
		}
		
	});
});
</script>
<ul>
	<li>&#12288;&#12288;&nbsp;
	QQ：<input class="form-control" type="text" name="qq" id="qq" check-type="required" minlength="5" maxlength="11" required-message="请输入正确的QQ号" placeholder="请填写您的QQ号">
	</li>
	<li>
	说说条数：<input class="form-control" type="text" name="tiaoshu" id="tiaoshu" check-type="required positiveinteger" required-message="请输入说说条数" placeholder="请填写说说条数">
	</li>
	<li>
	每天数量：
	<input class="form-control" type="text" name="everydayNum" id="everydayNum" check-type="required positiveinteger" required-message="请输入正整数" placeholder="请填写每天数量" value="1">
	</li>
	<li>&#12288;&#12288;&nbsp;天数：
	<input class="form-control" type="text" name="days" id="days" check-type="required positiveinteger" required-message="请输入正整数" placeholder="请填写天数" value="1">数量等于天数*条数*每条数量
	</li>
	<li>&#12288;&#12288;&#12288;&#12288;&#12288;
	<button class="btn btn-success" id="subbutton_a">确定下单${(product.title)!""}</button></li>
	<li>&#12288;&#12288;&#12288;&#12288;&#12288;<strong>注意：</strong>不要多个平台同时下单,只刷一次</li>
</ul>
