|
@@ -155,8 +155,8 @@ $(".contact-form1").submit(function (e) {
|
|
|
var jsonInfo = $('.contact-form1').serializeObject();
|
|
|
var jsonString = JSON.stringify(jsonInfo);
|
|
|
console.log(jsonString);
|
|
|
- alert(jsonString);
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: 'https://go.hhh.com.tw:8001/deco_request_detail',
|
|
@@ -165,7 +165,7 @@ $(".contact-form1").submit(function (e) {
|
|
|
|
|
|
success: function (data) {
|
|
|
console.log('送出成功: ' + data);
|
|
|
- alert("送出成功");
|
|
|
+
|
|
|
if (data == 0) {
|
|
|
alert("送出成功");
|
|
|
} else if (data == 1) {
|
|
@@ -175,14 +175,17 @@ $(".contact-form1").submit(function (e) {
|
|
|
} else if (data == 3) {
|
|
|
alert("此email、phone已填過表單");
|
|
|
}
|
|
|
-
|
|
|
+ return true;
|
|
|
},
|
|
|
+
|
|
|
beforeSend: function () {
|
|
|
console.log('beforeSend');
|
|
|
},
|
|
|
complete: function () {
|
|
|
console.log('complete');
|
|
|
+
|
|
|
},
|
|
|
+
|
|
|
error: function (jqXHR, textStatus, errorThrown) {
|
|
|
console.log(JSON.stringify(jqXHR));
|
|
|
console.log("AJAX errr: " + textStatus + ' : ' + errorThrown);
|
|
@@ -190,11 +193,12 @@ $(".contact-form1").submit(function (e) {
|
|
|
alert("送出失敗");
|
|
|
}
|
|
|
});
|
|
|
- return false;
|
|
|
+
|
|
|
+ // return false;
|
|
|
});
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -332,5 +336,5 @@ function fb_login() {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|