|
@@ -1,7 +1,7 @@
|
|
|
$(".banner-slider").slick({
|
|
|
speed: 1000,
|
|
|
swipe: true,
|
|
|
- arrows:false,
|
|
|
+ arrows: false,
|
|
|
});
|
|
|
|
|
|
$(".content1-right").slick({
|
|
@@ -9,7 +9,7 @@ $(".content1-right").slick({
|
|
|
dots: true,
|
|
|
speed: 1000,
|
|
|
|
|
|
- arrows:false,
|
|
|
+ arrows: false,
|
|
|
|
|
|
});
|
|
|
|
|
@@ -41,7 +41,7 @@ $(".content1-right").slick({
|
|
|
// $("#animation3").removeClass("animation-h1");
|
|
|
// $("#btn-animation3").removeClass("animation-btn");
|
|
|
// }
|
|
|
-
|
|
|
+
|
|
|
// });
|
|
|
// content輪播圖片偵測效果
|
|
|
$(".text-1").addClass("contant-toggle");
|
|
@@ -94,34 +94,35 @@ $("#contact-form").submit(function (e) {
|
|
|
return false;
|
|
|
});
|
|
|
|
|
|
-$.fn.serializeObject = function() {
|
|
|
- var o = {};
|
|
|
- var a = this.serializeArray();
|
|
|
+$.fn.serializeObject = function () {
|
|
|
+ var o = {};
|
|
|
+ var a = this.serializeArray();
|
|
|
o["id"] = 0;
|
|
|
- $.each(a, function() {
|
|
|
- if(o[this.name]) {
|
|
|
- if(!o[this.name].push) {
|
|
|
- o[this.name] = [o[this.name]];
|
|
|
- }
|
|
|
- o[this.name].push(this.value || '');
|
|
|
- } else {
|
|
|
- o[this.name] = this.value || '';
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- return o;
|
|
|
+ o["time_stamp"] = "";
|
|
|
+ $.each(a, function () {
|
|
|
+ if (o[this.name]) {
|
|
|
+ if (!o[this.name].push) {
|
|
|
+ o[this.name] = [o[this.name]];
|
|
|
+ }
|
|
|
+ o[this.name].push(this.value || '');
|
|
|
+ } else {
|
|
|
+ o[this.name] = this.value || '';
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ return o;
|
|
|
};
|
|
|
|
|
|
function onClik() {
|
|
|
-/* var formRef = $('#form1').serializeArray();
|
|
|
- var jsonString = JSON.stringify(formRef);*/
|
|
|
- var jsonInfo = $('.contact-form1').serializeObject();
|
|
|
- var jsonString = JSON.stringify(jsonInfo);
|
|
|
- alert(jsonString);
|
|
|
+ /* var formRef = $('#form1').serializeArray();
|
|
|
+ var jsonString = JSON.stringify(formRef);*/
|
|
|
+ var jsonInfo = $('.contact-form1').serializeObject();
|
|
|
+ var jsonString = JSON.stringify(jsonInfo);
|
|
|
+ alert(jsonString);
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: 'http://172.104.93.163/deco_request_detail',
|
|
|
- data:jsonString,
|
|
|
+ data: jsonString,
|
|
|
dataType: 'json',
|
|
|
success: function (data, textStatus, jqXHR) {
|
|
|
|
|
@@ -139,7 +140,7 @@ function onClik() {
|
|
|
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|