<!--
凌夕网络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 gequid = $("#gequid").val();
		var xianhuashu = $("#xianhuashu").val();
		
		var numberre = /^[1-9]+[0-9]*]*$/;
		if(gequid == ""){
			alert("请输入歌曲ID");
		}else if(xianhuashu == ""){
			alert("请输入鲜花数");
		}else if(!numberre.test(xianhuashu)){
			alert("鲜花数必须大于0的数字");
		}else{
			$.ajax({
		    type: "post",
		    url: "${base}/user/orders/save",
		    data:{
		    	pid:"${loginUser.product}",
		    	gequid:gequid,
		    	xianhuashu:xianhuashu
		    },
		    dataType: "json",
		    success: function(data) {
		    	alert(data.msg);
		        if(data.status==1){
		        	window.location.href=window.location.href;
		        }
		    }
		  });
		}
		
	});
});
</script>
<ul>
	<li>&#12288;&#12288;&nbsp;
	歌曲ID：<input class="form-control" type="text" name="gequid" id="gequid" check-type="required" required-message="请输入歌曲ID号" placeholder="请填写歌曲ID号">
	</li>
	<li>
	&#12288;&#12288;&nbsp;鲜花数：<input class="form-control" type="text" name="xianhuashu" id="xianhuashu" check-type="required positiveinteger" required-message="请输入鲜花数" placeholder="请填写鲜花数">
	</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>
