jeter20131220 3 years ago
parent
commit
5818523e91
4 changed files with 63 additions and 4 deletions
  1. 18 0
      desktopB/goto.js
  2. 14 2
      desktopB/index.html
  3. 19 0
      mobileB/goto.js
  4. 12 2
      mobileB/index.html

+ 18 - 0
desktopB/goto.js

@@ -63,6 +63,24 @@ $(".contact-form1").submit(function (e) {
         console.log('送出失敗: ' + jqXHR.responseText);
       }
     });
+    if ($('#credit').prop("checked")) {
+      $.ajax({
+        type: 'POST',
+        url: 'https://api.ptt.cx:9999/hhh/mail/deco/v2',
+        data: jsonString,
+        dataType: 'json',
+        contentType: 'application/json; charset=utf-8',
+  
+        success: function (res) {
+          alert('送出成功');
+        },
+        error: function (error) {
+          console.error(error);
+          alert('送出失敗');
+        }
+  
+      });
+    }
   return false;
 });
 

+ 14 - 2
desktopB/index.html

@@ -74,7 +74,7 @@ src="https://www.facebook.com/tr?id=585285442299590&ev=PageView&noscript=1"
     <link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon">
 </head>
 
-<body id="top">
+<body style="overflow-x:hidden;" id="top">
     <!-- <script>
         function statusChangeCallback(response) {  // Called with the results from FB.getLoginStatus().
             if (response.status === 'connected') {  // 已登入
@@ -505,7 +505,19 @@ src="https://www.facebook.com/tr?id=585285442299590&ev=PageView&noscript=1"
                             <!-- <input type="checkbox" style="margin:30px 10px;" id="checkbox" checked><label
                                 for="agree" style="width: 40px;">同意</label><a target="https://hhh.com.tw/about/privacy_policy/"
                                 href="https://hhh.com.tw/about/privacy_policy/">免責聲明與隱私使用政策</a> -->
-
+                                <div>
+                                    <input type="checkbox" style="margin:15px 10px;" id="checkbox" checked><label
+                                        for="agree" class="ms-1" style="width: 40px;">同意</label><a
+                                        target="_blank"
+                                        href="https://hhh.com.tw/about/privacy_policy/">免責聲明與隱私使用政策</a>
+                                </div>
+                                <div>
+                                    <input type="checkbox" style="margin:15px 10px;" class="custom-control-input"
+                                        id="credit">
+                                    <label class="custom-control-label w-75" for="credit">
+                                        裝潢貸款享超長7年還款期,最低利率2.59%起。
+                                    </label>
+                                </div>
                                 <div class="form-btn">
                                     <input class="btn" style="opacity: 1;" type="submit" value="送出">
         

+ 19 - 0
mobileB/goto.js

@@ -70,6 +70,25 @@ $(".feedback-slider1").slick({
         console.log('送出失敗: ' + jqXHR.responseText);
       }
     });
+
+    if ($('#credit').prop("checked")) {
+      $.ajax({
+        type: 'POST',
+        url: 'https://api.ptt.cx:9999/hhh/mail/deco/v2',
+        data: jsonString,
+        dataType: 'json',
+        contentType: 'application/json; charset=utf-8',
+  
+        success: function (res) {
+          alert('送出成功');
+        },
+        error: function (error) {
+          console.error(error);
+          alert('送出失敗');
+        }
+  
+      });
+    }
     return false;
   });
   $("*").each(function (index, element) {

+ 12 - 2
mobileB/index.html

@@ -451,10 +451,20 @@ src="https://www.facebook.com/tr?id=585285442299590&ev=PageView&noscript=1"
                             <!-- <input type="checkbox" style="margin:30px 10px;" id="checkbox" checked><label
                                 for="agree" style="width: 40px;">同意</label><a target="https://hhh.com.tw/about/privacy_policy/"
                                 href="https://hhh.com.tw/about/privacy_policy/">免責聲明與隱私使用政策</a> -->
-
+                                <div>
+                                    <input type="checkbox" style="margin:15px 10px;" id="checkbox" checked><label
+                                        for="agree" class="ms-1" style="width: 40px;">同意</label><a
+                                        target="_blank"
+                                        href="https://hhh.com.tw/about/privacy_policy/">免責聲明與隱私使用政策</a>
+                                </div>
+                                <div class="my-2">
+                                    <input type="checkbox" style="margin:0px 10px; position: relative; bottom:20px;" class="custom-control-input" id="credit">
+                                    <label class="custom-control-label w-75" for="credit">
+                                            裝潢貸款享超長7年還款期,最低利率2.59%起。
+                                    </label>
+                                </div>
                                 <div class="form-btn">
                                     <input class="btn" style="opacity: 1;" type="submit" value="送出">
-        
                                 </div>
                     </div>
                 </form>