{"id":12940,"date":"2020-11-19T11:12:36","date_gmt":"2020-11-19T02:12:36","guid":{"rendered":"https:\/\/www.hiro-clinic.or.jp\/beauty\/?page_id=12940"},"modified":"2022-11-01T17:00:30","modified_gmt":"2022-11-01T08:00:30","slug":"cancel","status":"publish","type":"page","link":"https:\/\/www.hiro-clinic.or.jp\/beauty\/cancel\/?lang=zh-hans","title":{"rendered":"\u5173\u4e8e\u53d6\u6d88"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"\u30ad\u30e3\u30f3\u30bb\u30eb\u30d5\u30a9\u30fc\u30e0\">\u53d6\u6d88\u8868\u683c<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\u8bf7\u5728\u524d\u4e00\u5929\u4e0e\u6211\u4eec\u8054\u7cfb\u4ee5\u53d6\u6d88\u3002\n<strong>\u5982\u679c\u5f53\u5929\u53d6\u6d88\uff0c\u5c06\u6536\u53d6 2,200 \u65e5\u5143\u7684\u53d6\u6d88\u8d39\u7528<\/strong>\n\u8bf7\u6ce8\u610f\u3002<\/pre>\n\n\n\n<style>\n        .SubmitCancelReq{\n            background: #d7a766;\n            color: #fff;\n            border: 0 none;\n            padding: 0.5rem 2rem;\n        }\n        <\/style>\n        <table class=\"formtable\"><colgroup> <col style=\"width: 30%;\"> <col style=\"width: 70%;\"> <\/colgroup>\n        <tbody>\n        <tr class=\"c_date\">\n        <th>\u9884\u8ba2\u65e5\u671f <small class=\"required\">[\u5fc5\u987b]<\/small><\/th>\n        <td>\u8bf7\u6ce8\u660e\u8981\u53d6\u6d88\u7684\u9884\u8ba2\u65e5\u671f\n        <input type=\"text\" name=\"cancel_date\" id=\"cancel_date\" class=\"datepicker\" size=\"30\" value=\"\" placeholder=\"\u8bf7\u8f93\u5165\u9884\u7ea6\u65e5\u671f\">\n        <\/td>\n        <\/tr>\n        <tr class=\"c_time\">\n        <th>\u9884\u7ea6\u65f6\u95f4 <small class=\"required\">[\u5fc5\u987b]<\/small><\/th>\n        <td>\n        <select id=\"cancel_time\" name=\"cancel_time\">\n            <option value=\"\"><\/option>\n            <option value=\"9\uff1a00\uff5e10\uff1a00\">9\uff1a00\uff5e10\uff1a00<\/option>\n            <option value=\"10\uff1a00\uff5e11\uff1a00\">10\uff1a00\uff5e11\uff1a00<\/option>\n            <option value=\"11\uff1a00\uff5e11\uff1a30\">11\uff1a00\uff5e11\uff1a30<\/option>\n            <option value=\"13\uff1a30\uff5e14\uff1a30\">13\uff1a30\uff5e14\uff1a30<\/option>\n            <option value=\"14\uff1a30\uff5e15\uff1a30\">14\uff1a30\uff5e15\uff1a30<\/option>\n            <option value=\"15\uff1a30\uff5e16\uff1a30\">15\uff1a30\uff5e16\uff1a30<\/option>\n            <option value=\"16\uff1a30\uff5e17\uff1a30\">16\uff1a30\uff5e17\uff1a30<\/option>\n        <\/select>\n        <\/td>\n        <\/tr>\n        <\/tbody>\n        <\/table>\n         \n        <table class=\"formtable\"><colgroup> <col style=\"width: 30%;\"> <col style=\"width: 70%;\"> <\/colgroup>\n        <tbody>\n        <tr class=\"name\">\n        <th>\u59d3\u540d <small class=\"required\">[\u5fc5\u987b]<\/small><\/th>\n        <td>\n        <input type=\"text\" id=\"seimei\" name=\"seimei\" placeholder=\"\">\n        <\/td>\n        <\/tr>\n        <tr class=\"email\">\n        <th>\u7535\u5b50\u90ae\u4ef6\u5730\u5740 <small class=\"required\">[\u5fc5\u987b]<\/small><\/th>\n        <td>\n        <input type=\"text\" id=\"email\" name=\"email\" placeholder=\"\">\n        <\/td>\n        <\/tr>\n        <tr class=\"tel\">\n        <th>\u4f60\u7684\u7535\u8bdd\u53f7\u7801 <small class=\"required\">[\u5fc5\u9808]<\/small><\/th>\n        <td>\n        <input type=\"text\" id=\"tel\" name=\"tel\" placeholder=\"\">\n        <\/td>\n        <\/tr>\n        <tr>\n        <th>\u8bc4\u8bba<\/th>\n        <td>\n        <textarea id=\"remark\" name=\"remark\" cols=\"50\" rows=\"5\"><\/textarea>\n        <\/td>\n        <\/tr>\n        <\/tbody>\n        <tbody>\n        <tr>\n        <th><\/th>\n        <td>\n        <input type=\"submit\" name=\"SubmitCancelReq\" value=\"\u5230\u786e\u8ba4\u5c4f\u5e55 \u203a\" class=\"SubmitCancelReq\">\n        <p class=\"s1-text-1\">Required fields are Empty!<\/p>\n        <\/td>\n        <\/tr>\n        <\/tbody>\n        <\/table>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u60a8\u53ea\u80fd\u4ece\u6b64\u8868\u683c\u4e2d\u53d6\u6d88\u3002\n\u5982\u679c\u60a8\u60f3\u66f4\u6539\u60a8\u7684\u9884\u8ba2\uff0c\u8bf7\u63d0\u4ea4\u6b64\u8868\u683c\uff0c\u7136\u540e<\/strong>\n<strong>\u8bf7\u5728\u54a8\u8be2\u65f6\u95f4\u5185\u901a\u8fc7\u7535\u8bdd\uff080120-241-929\uff09\u91cd\u65b0\u9884\u7ea6\u3002<\/strong><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<link rel=\"stylesheet\" id=\"jquery.ui-css\" href=\"\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.11.4\/themes\/smoothness\/jquery-ui.min.css?ver=1.11.4\" type=\"text\/css\" media=\"all\">\n<script src=\"https:\/\/code.jquery.com\/jquery-1.12.4.js\"><\/script>\n<script src=\"https:\/\/code.jquery.com\/ui\/1.12.1\/jquery-ui.js\"><\/script>\n\n\n<script>\njQuery(function($){\n  if($('.mw_wp_form').hasClass('mw_wp_form_complete')){\n    \/\/\u5b8c\u4e86\u753b\u9762\n    $('.post_content h2').next('p').hide();\n    $('.wp-block-preformatted').hide();\n  }else if($('.mw_wp_form').hasClass('mw_wp_form_confirm')){\n    \/\/\u78ba\u8a8d\u753b\u9762\n    $('#left_col').css({float:'none',margin:'0 auto'});\n    $('#side_col').hide();\n    $('.post_content h2').next('p').hide();\n    $('.wp-block-preformatted').hide();\n    if($('.formtable.re-examination input[name=\"re-examination\"]').val() == \"\u521d\u8a3a\"){\n      $('.formtable.re-examination').hide();\n    }else if($('.formtable.first-examination input[name=\"re-examination\"]').val() == \"\u518d\u8a3a\"){\n      $('.formtable.first-examination').hide();\n    }\n  }else if($('.mw_wp_form').hasClass('mw_wp_form_input')){\n    \/\/\u5165\u529b\u753b\u9762\n    $('#re-examination-1').next('.mwform-radio-field-text').append('\u306e\u65b9\u306f\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044');\n    $('#first-examination-1').next('.mwform-radio-field-text').append('\u306e\u65b9\u306f\u30c1\u30a7\u30c3\u30af\u3092\u5165\u308c\u3066\u304f\u3060\u3055\u3044');\n\n    $('input[name=\"re-examination\"]').on('click', function(){\n      if(!$('input[name=\"re-examination\"]').prop('checked')){\n        $('input.medical-examination-ticket').attr('disabled', true).val('');\n      }else{\n        $('input.medical-examination-ticket').removeAttr('disabled');\n      }\n    });\n\n    var restDays = [\n    '2020\/12\/30',\n    '2020\/12\/31',\n    '2021\/01\/01',  \/\/\u5143\u65e6\n    '2021\/01\/02',  \/\/\u4e09\u7b87\u65e5\n    '2021\/01\/03',  \/\/\u4e09\u7b87\u65e5\n    '2021\/01\/11',  \/\/\u6210\u4eba\u306e\u65e5\n    '2021\/02\/11',  \/\/\u5efa\u56fd\u8a18\u5ff5\u65e5\n    '2021\/02\/23',  \/\/\u5929\u7687\u8a95\u751f\u65e5\n    '2021\/03\/20',  \/\/\u6625\u5206\u306e\u65e5\n    '2021\/04\/29',  \/\/\u662d\u548c\u306e\u65e5\n    '2021\/05\/03',  \/\/\u61b2\u6cd5\u8a18\u5ff5\u65e5\n    '2021\/05\/04',  \/\/\u307f\u3069\u308a\u306e\u65e5\n    '2021\/05\/05',  \/\/\u3053\u3069\u3082\u306e\u65e5\n    '2021\/07\/19',  \/\/\u6d77\u306e\u65e5\n    '2021\/08\/11',  \/\/\u5c71\u306e\u65e5\n    '2021\/09\/20',  \/\/\u656c\u8001\u306e\u65e5\n    '2021\/09\/23',  \/\/\u79cb\u5206\u306e\u65e5\n    '2021\/10\/11',  \/\/\u30b9\u30dd\u30fc\u30c4\u306e\u65e5\n    '2021\/11\/03',  \/\/\u6587\u5316\u306e\u65e5\n    '2021\/11\/22',  \/\/\u52e4\u52b4\u611f\u8b1d\u306e\u65e5\n    '2021\/12\/31'  \/\/\u5e74\u672b\n    ];\n    $('.datepicker').attr('autocomplete',\"off\");\n    $('.datepicker').datepicker({\n        minDate: '0d',\n        maxDate: '+3m',\n        firstDay: 1,\n        beforeShowDay: function(date) {\n            if(date.getDay() == 0\u3000|| date.getDay() == 4) {\n                \/\/ \u65e5\u66dc\u65e5\u3001\u6728\u66dc\u65e5\n                return [false, 'ui-state-disabled'];\n            }else{\n              \/\/ \u5e73\u65e5\n              var restDay = $.datepicker.formatDate('yy\/mm\/dd', date);\n              return [( restDays .indexOf(restDay) == -1 ), '', '-'];\n            }\n        }\n    });\n\n\n  \/\/ \u65e5\u672c\u8a9e\u5316\n  $.datepicker.regional['ja'] = {\n    closeText: '\u9589\u3058\u308b',\n    prevText: '<\u524d', nextText: '\u6b21>',\n    currentText: '\u4eca\u65e5',\n    monthNames: ['1\u6708','2\u6708','3\u6708','4\u6708','5\u6708','6\u6708','7\u6708','8\u6708','9\u6708','10\u6708','11\u6708','12\u6708'],\n    monthNamesShort: ['1\u6708','2\u6708','3\u6708','4\u6708','5\u6708','6\u6708','7\u6708','8\u6708','9\u6708','10\u6708','11\u6708','12\u6708'],\n    dayNames: ['\u65e5\u66dc\u65e5','\u6708\u66dc\u65e5','\u706b\u66dc\u65e5','\u6c34\u66dc\u65e5','\u6728\u66dc\u65e5','\u91d1\u66dc\u65e5','\u571f\u66dc\u65e5'],\n    dayNamesShort: ['\u65e5','\u6708','\u706b','\u6c34','\u6728','\u91d1','\u571f'],\n    dayNamesMin: ['\u65e5','\u6708','\u706b','\u6c34','\u6728','\u91d1','\u571f'],\n    weekHeader: '\u9031',\n    dateFormat: 'yy\/mm\/dd',\n    firstDay: 1,\n    isRTL: false,\n    showMonthAfterYear: true,\n    yearSuffix: '\u5e74'};\n  $.datepicker.setDefaults($.datepicker.regional['ja']);\n  }\n\n});\n<\/script>\n\n  <script>\n\n  $( function() {\n    $( \".datepicker\" ).datepicker({ minDate: -20, maxDate: \"+1M +15D\" });\n  } );\n\n\n \n$(\".s1-text-1\").hide();\n    \ntry {\n        let btn = document.querySelector(\".SubmitCancelReq\");\n        function SendData(){\n\n\n            var cancel_date = jQuery(\"#cancel_date\").val();\n            var cancel_time = jQuery( \"#cancel_time option:selected\" ).text();    \n            var seimei = jQuery(\"#seimei\").val();\n            var email = jQuery(\"#email\").val();\n            var tel = jQuery(\"#tel\").val();\n            var remark = jQuery(\"#remark\").val();\n            \n    \n            if( cancel_date == \"\" || cancel_time == \"\" || seimei == \"\" || email == \"\" || tel == \"\") \n            {\n               alert(\"\u5fc5\u9808\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u6b63\u3057\u304f\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"); \n            }\n            else{\n    \n                jQuery('.SubmitCancelReq').attr('disabled', true);\n        \n                    var data = {\n                    \"category_id\": \"25\",\n                    \"cancel_date\": cancel_date,\n                    \"cancel_time\": cancel_time,\n                    \"fullname\": seimei,\n                    \"email_address\": email,\n                    \"contact_number\": tel,\n                    \"remark\": remark\n                    }\n                \n                jQuery.ajax({\n                    url: 'https:\/\/api.contact.hiro-test.net\/api\/form\/inquiry',\n                    dataType: 'json',\n                    type: 'post',\n                    contentType: 'application\/json',\n                    data: JSON.stringify(data),\n                    processData: false,\n                    success: function( data, textStatus, jQxhr ){\n                        console.log(\"Your message have been successfully received!\");\n                        window.location.replace(\"http:\/\/clinic.hiro-test.net\/beauty\/cancel\/\");\n                         alert(\"Your message have been successfully received!\");\n                    },\n                    error: function( jqXhr, textStatus, errorThrown ){\n                        alert(\"Error, Please try again!\");\n                        \/\/window.location.replace(\"\");\n                        console.log(jqXhr);\n                    }\n                });\n                \/\/ End Ajax Call\n        \n            }\n          \n        }\n        btn.addEventListener(\"click\", SendData);\n    }\n    catch(err) {\n      \n    }\n        \n\n\n  <\/script>\n","protected":false},"excerpt":{"rendered":"\u53d6\u6d88\u8868\u683c \u8bf7\u5728\u524d\u4e00\u5929\u4e0e\u6211\u4eec\u8054\u7cfb\u4ee5\u53d6\u6d88\u3002 \u5982\u679c\u5f53\u5929\u53d6\u6d88\uff0c\u5c06\u6536\u53d6 2,200 \u65e5\u5143\u7684\u53d6\u6d88\u8d39\u7528 \u8bf7\u6ce8\u610f\u3002 \u9884\u8ba2\u65e5\u671f [\u5fc5\u987b] \u8bf7\u6ce8\u660e\u8981\u53d6\u6d88\u7684\u9884\u8ba2\u65e5\u671f \u9884\u7ea6\u65f6\u95f4 [\u5fc5\u987b] 9\uff1a00\uff5e10\uff1a0010\uff1a00\uff5e11\uff1a0011\uff1a00\uff5e1 [&hellip;]","protected":false},"author":8,"featured_media":0,"parent":0,"menu_order":93,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-12940","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages\/12940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/comments?post=12940"}],"version-history":[{"count":1,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages\/12940\/revisions"}],"predecessor-version":[{"id":12941,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages\/12940\/revisions\/12941"}],"wp:attachment":[{"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/media?parent=12940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}