{"id":1489,"date":"2020-11-19T11:12:36","date_gmt":"2020-11-19T02:12:36","guid":{"rendered":"https:\/\/beauty.hiro-clinic.or.jp\/?page_id=1489"},"modified":"2024-11-27T14:29:46","modified_gmt":"2024-11-27T05:29:46","slug":"cancel","status":"publish","type":"page","link":"https:\/\/www.hiro-clinic.or.jp\/beauty\/cancel\/","title":{"rendered":"\u30ad\u30e3\u30f3\u30bb\u30eb\u306b\u3064\u3044\u3066"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"\u30ad\u30e3\u30f3\u30bb\u30eb\u30d5\u30a9\u30fc\u30e0\">\u30ad\u30e3\u30f3\u30bb\u30eb\u30d5\u30a9\u30fc\u30e0<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\u30ad\u30e3\u30f3\u30bb\u30eb\u306e\u3054\u9023\u7d61\u306f\u3001\u524d\u3005\u65e5\u307e\u3067\u306b\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002\n<strong>\u5f53\u65e5\u524d\u65e5\u30ad\u30e3\u30f3\u30bb\u30eb\u306e\u5834\u5408\u306f\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u6599 \u304c\u767a\u751f\u3044\u305f\u3057\u307e\u3059\u3002<\/strong>\n\u4e88\u3081\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002\u203b\u30ad\u30e3\u30f3\u30bb\u30eb\u6599\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\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>\u4e88\u7d04\u65e5 <small class=\"required\">[\u5fc5\u9808]<\/small><\/th>\n        <td>\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u308b\u4e88\u7d04\u65e5\u3092\u8a18\u8f09\u3057\u3066\u304f\u3060\u3055\u3044\n        <input type=\"text\" name=\"cancel_date\" id=\"cancel_date\" class=\"datepicker\" size=\"30\" value=\"\" placeholder=\"\u4e88\u7d04\u65e5\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\">\n        <\/td>\n        <\/tr>\n        <tr class=\"c_time\">\n        <th>\u4e88\u7d04\u6642\u9593 <small class=\"required\">[\u5fc5\u9808]<\/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        &nbsp;\n        <table class=\"formtable\"><colgroup> <col style=\"width: 30%;\"> <col style=\"width: 70%;\"> <\/colgroup>\n        <tbody>\n        <tr class=\"name\">\n        <th>\u304a\u540d\u524d <small class=\"required\">[\u5fc5\u9808]<\/small><\/th>\n        <td>\n        <input type=\"text\" id=\"seimei\" name=\"seimei\" placeholder=\"\">\n        <\/td>\n        <\/tr>\n        <tr class=\"email\">\n        <th>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 <small class=\"required\">[\u5fc5\u9808]<\/small><\/th>\n        <td>\n        <input type=\"text\" id=\"email\" name=\"email\" placeholder=\"\">\n        <\/td>\n        <\/tr>\n        <tr class=\"tel\">\n        <th>\u304a\u96fb\u8a71\u756a\u53f7 <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>\u5099\u8003<\/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=\"SubmitCancelRe\" value=\"\u78ba\u8a8d\u753b\u9762\u3078 \u203a\" class=\"SubmitCancelReq\">\n        \n        <\/td>\n        <\/tr>\n        <\/tbody>\n        <\/table>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u3053\u3061\u3089\u306e\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u306f\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u306e\u307f\u304a\u53d7\u3051\u3067\u304d\u307e\u3059\u3002\n\u3054\u4e88\u7d04\u306e\u5909\u66f4\u3092\u3054\u5e0c\u671b\u306e\u5834\u5408\u306f\u3001\u3053\u3061\u3089\u306e\u30d5\u30a9\u30fc\u30e0\u3092\u9001\u4fe1\u5f8c\u3001<\/strong>\n<strong>\u8a3a\u7642\u6642\u9593\u5185\u306b\u3042\u3089\u305f\u3081\u3066\u304a\u96fb\u8a71(0120-241-929)\u306b\u3066\u65b0\u305f\u306a\u3054\u4e88\u7d04\u3092\u304a\u53d6\u308a\u9858\u3044\u307e\u3059\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\n});\n<\/script>\n<script>\njQuery(function($){   \nvar 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    ];\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',\n    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<\/script>\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\n        function SendData() {\n\n            var PathName = window.location.href;\n            var Source = PathName.substring(0, PathName.length - 0);\n\n            var urlAPI = \"\";\n            var EnCodeTkein = \"\";\n\n            if (Source.match(\"test\")) {\n                urlAPI = 'https:\/\/api-contact.hiro-test.net\/api\/inquire';\n                EnCodeTkein = '$2y$10$pGnVZRBfZVmB9e5dZMcg3uNoAnqgNBsDon5L08SThmvFslaL8HEUS';\n\n            } else if (Source.match(\"localhost\")) {\n                urlAPI = 'https:\/\/api-contact.hiro-test.net\/api\/inquire';\n                EnCodeTkein = '$2y$10$pGnVZRBfZVmB9e5dZMcg3uNoAnqgNBsDon5L08SThmvFslaL8HEUS';\n\n            } else {\n              urlAPI = 'https:\/\/api.contact.hiro-clinic.or.jp\/api\/inquire';\n                EnCodeTkein = '$2y$10$i.o7qPiGw\/sc3vZVeK7iQu59.yT1\/MojM8pc6KDAb4jq3Eoh09SNO';\n\n            }\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            var additional_info = {\"Telephone\": tel, \"Cancel_Date\": cancel_date, \"Cancel_Time\": cancel_time};\n\n\n            if (cancel_date == \"\" || cancel_time == \"\" || seimei == \"\" || tel == \"\" || email == \"\") {\n                alert(\"Please fill in the required fields correctly.\");\n                history.back();\n\n            } else {\n\n\n                jQuery('.SubmitCancelReq').attr('disabled', true);\n                \/\/ jQuery('#submit-back').hide();\n\n                var formData = new FormData();\n                formData.append(\"additional_info\", JSON.stringify(additional_info));                \n                formData.append(\"fullname\", seimei);                \n                formData.append(\"email_address\", email);\n                formData.append(\"inquiry_content\", remark); \n\n                jQuery.ajax({\n                url: urlAPI,        \n                type: 'post',\n                headers: {\n                  authorization: \"Bearer \" + EnCodeTkein\n                },\n                contentType: false,\n                data: formData,\n                processData: false,\n                success: function (data, textStatus, jQxhr) {\n                  console.log(\"Your message have been successfully received\");\n                        window.location.replace(\"\/beauty\/cancel\/thanks\/\");\n\n                    },\n                    error: function( jqXhr, textStatus, errorThrown ){\n                    console.log(\"Error Response:\", jqXhr.responseText);\n                    console.log(\"Status:\", textStatus);\n                    console.log(\"Error Thrown:\", errorThrown);\n                    alert(\"Error, Please try again!\");\n                    window.location.replace(\"\/beauty\/cancel\/\");\n                    }\n                });\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":"\u30ad\u30e3\u30f3\u30bb\u30eb\u30d5\u30a9\u30fc\u30e0 \u30ad\u30e3\u30f3\u30bb\u30eb\u306e\u3054\u9023\u7d61\u306f\u3001\u524d\u3005\u65e5\u307e\u3067\u306b\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002 \u5f53\u65e5\u524d\u65e5\u30ad\u30e3\u30f3\u30bb\u30eb\u306e\u5834\u5408\u306f\u3001\u30ad\u30e3\u30f3\u30bb\u30eb\u6599 \u304c\u767a\u751f\u3044\u305f\u3057\u307e\u3059\u3002 \u4e88\u3081\u3054\u4e86\u627f\u304f\u3060\u3055\u3044\u3002\u203b\u30ad\u30e3\u30f3\u30bb\u30eb\u6599\u306e\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002 \u4e88\u7d04\u65e5 [ [&hellip;]","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":92,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-1489","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages\/1489","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/comments?post=1489"}],"version-history":[{"count":37,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages\/1489\/revisions"}],"predecessor-version":[{"id":17566,"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/pages\/1489\/revisions\/17566"}],"wp:attachment":[{"href":"https:\/\/www.hiro-clinic.or.jp\/beauty\/wp-json\/wp\/v2\/media?parent=1489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}