|
@@ -176,13 +176,26 @@
|
|
|
<script src="vendor/jquery.scrollto/jquery.scrollTo.min.js"></script>
|
|
|
<script src="js/front.js"></script>
|
|
|
<script>
|
|
|
+ /**
|
|
|
+ * 获取路径中的参数
|
|
|
+ * @constructor
|
|
|
+ */
|
|
|
+ function GetQueryString()
|
|
|
+ {
|
|
|
+ var url= window.location.href;
|
|
|
+ var index = url.substring(url.lastIndexOf('=') + 1);
|
|
|
+ return index;
|
|
|
+ }
|
|
|
+
|
|
|
$(function(){
|
|
|
+ var id = GetQueryString();
|
|
|
$("#sub").click(function(){
|
|
|
var phone = $("#phone").val();
|
|
|
var name = $("#name").val();
|
|
|
var businessName = $("#enterprise").val();
|
|
|
var email = $("#email").val();
|
|
|
var content = $("#message").val();
|
|
|
+ var productsId = id;
|
|
|
if(name == "" || phone == "" || businessName == "" || content == "" || email == ""){
|
|
|
alert("请填写完整信息");
|
|
|
}else{
|
|
@@ -191,7 +204,8 @@
|
|
|
phone: phone,
|
|
|
email:email,
|
|
|
businessName:businessName,
|
|
|
- content:content
|
|
|
+ content:content,
|
|
|
+ productsId:productsId
|
|
|
}, function (response) {
|
|
|
if(response.code == "ok"){
|
|
|
alert("申请成功");
|