<!--
凌夕网络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 yingkeid = $("#yingkeid").val();
		var num = $("#num").val();
		var numberre = /^[1-9]+[0-9]*]*$/;
		if(yingkeid == ""){
			alert("请输入映客用户ID");
		}else if(num == ""){
			alert("请输入数量");
		}else if(!numberre.test(num)){
			alert("数量必须大于0的数字");
		}else{
			$.ajax({
		    type: "post",
		    url: "${base}/user/orders/save",
		    data:{
		    	pid:"${loginUser.product}",
		    	yingkeid:yingkeid,
		    	num:num
		    },
		    dataType: "json",
		    success: function(data) {
		    	alert(data.msg);
		        if(data.status==1){
		        	window.location.href=window.location.href;
		        }
		    }
		  });
		}
		
	});
});
</script>
<ul>
	<li>
	映客用户ID：<input class="form-control" type="text" name="yingkeid" id="yingkeid" check-type="required" minlength="5" maxlength="11" required-message="请输入正确的映客用户ID" placeholder="请填写您的映客用户ID">
	</li>
	<li>下单数量：
	<input class="form-control" type="text" name="num" id="num" 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>
