{"id":32401,"date":"2024-07-17T22:04:00","date_gmt":"2024-07-17T13:04:00","guid":{"rendered":"https:\/\/info.system5.jp\/prosupport\/?page_id=32401"},"modified":"2024-07-17T22:04:00","modified_gmt":"2024-07-17T13:04:00","slug":"%e3%80%90dji%e6%96%b0%e8%a3%bd%e5%93%81-%e4%b8%8b%e5%8f%96%e3%82%8a%e3%82%ad%e3%83%a3%e3%83%b3%e3%83%9a%e3%83%bc%e3%83%b3%e3%80%91%e4%b8%ad%e5%8f%a4%e8%b2%b7%e5%8f%96%e5%8f%97%e4%bb%98%e3%83%95","status":"publish","type":"page","link":"https:\/\/info.system5.jp\/prosupport\/djinew20240717_used","title":{"rendered":"\u3010DJI\u65b0\u88fd\u54c1 \u4e0b\u53d6\u308a\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3011\u4e2d\u53e4\u8cb7\u53d6\u53d7\u4ed8\u30d5\u30a9\u30fc\u30e0"},"content":{"rendered":"<link rel=\"stylesheet\" href=\"\/\/code.jquery.com\/ui\/1.12.1\/themes\/smoothness\/jquery-ui.css\">\r\n<script src=\"\/\/code.jquery.com\/jquery-1.12.4.js\"><\/script>\r\n<script src=\"\/\/code.jquery.com\/ui\/1.12.1\/jquery-ui.js\"><\/script>\r\n[mwform_formkey key=&#8221;32397&#8243;]\r\n\r\n<script>\r\n\t$(function(){\r\n\t\t\/\/ \u5165\u529b\u753b\u9762\u304b\u78ba\u8a8d\u753b\u9762\u304b\u3092\u5224\u5b9a\r\n\t\tconst formClassName = $('#mw_wp_form_mw-wp-form-32397').attr(\"class\");\r\n\t\tlet formType;\r\n\t\tif(formClassName.indexOf(\"mw_wp_form_input\") >= 0){\r\n\t\t\tformType = 'input';\r\n\t\t}else if(formClassName.indexOf(\"mw_wp_form_confirm\") >= 0){\r\n\t\t\tformType = 'confirm';\r\n\t\t}\r\n\r\n\t\t\/\/\u5206\u5c90\u306b\u5229\u7528\u3059\u308b\u9001\u4fe1\u5024\r\n\t\tconst purchasetype_shitadori = '\u4e0b\u53d6\uff08\u76f8\u6bba\u3067\u8cfc\u5165\u3057\u305f\u3044\u5546\u54c1\u304c\u3042\u308b\uff09';\r\n\t\tconst purchasetype_shitadori_2 = 'Roland \u30b9\u30a4\u30c3\u30c1\u30e3\u30fc\u8cb7\u66ff\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3092\u5229\u7528';\r\n\t\tconst purchasetype_shitadori_3 = 'DJI Mic 2 \u4e0b\u53d6\u308a\u30ad\u30e3\u30f3\u30da\u30fc\u30f3\u3092\u5229\u7528\u3057\u305f\u3044\u304c\u3001\u5148\u306bDJI Mic 2\u3092\u5165\u624b\u3057\u305f\u3044\u3002\u305d\u306e\u3042\u306820\uff05\u30a2\u30c3\u30d7\u306e\u8cb7\u53d6\u4ee3\u91d1\u3092\u53d7\u3051\u53d6\u308a\u305f\u3044';\r\n\t\tconst howtobuy_haisou = '\u5b85\u914d\u4fbf\u3067\u914d\u9001\u3059\u308b';\r\n\t\tconst box_other = '\u4e0a\u8a18\u4ee5\u5916\u306e\u30b5\u30a4\u30ba\uff08\u5f53\u793e\u304b\u3089\u68b1\u5305\u30ad\u30c3\u30c8\u3092\u914d\u9001\uff09';\r\n\r\n\t\tif(formType === 'input'){\/\/---------------------\u5165\u529b\u753b\u9762\r\n\t\t\t\/\/ URL\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u58f2\u5374\u6a5f\u6750\u3092\u53cd\u6620\r\n\t\t\t\/\/ --\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u5024\u3092queryObject\u306b\u683c\u7d0d\r\n\t\t\tlet queryString = window.location.search;\r\n\t\t\tlet queryObject = new Object();\r\n\t\t\tif(queryString){\r\n\t\t\t\tqueryString = queryString.substring(1);\r\n\t\t\t\tlet parameters = queryString.split('&');\r\n\t\t\t\t\r\n\t\t\t\tfor (let i = 0; i < parameters.length; i++) {\r\n\t\t\t\t\tlet element = parameters[i].split('=');\r\n\t\t\t\t\t\r\n\t\t\t\t\tlet paramName = decodeURIComponent(element[0]);\r\n\t\t\t\t\tlet paramValue = decodeURIComponent(element[1]);\r\n\t\t\t\t\t\r\n\t\t\t\t\tqueryObject[paramName] = paramValue;\r\n\t\t\t\t}\r\n\t\t\t\t\/\/ --\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u5bfe\u5fdc\u3059\u308binput\u3078\u5024\u3092\u633f\u5165\r\n\t\t\t\tif(queryObject['purchasetype']==\"campaign\"){\r\n\t\t\t\t\t$('input[name=\"purchasetype\"]:eq(3)').prop('checked', true);\r\n\t\t\t\t}\r\n\t\t\t\tif(queryObject['purchasetype']==\"tradein\"){\r\n\t\t\t\t\t$('input[name=\"purchasetype\"]:eq(1)').prop('checked', true);\r\n\t\t\t\t}\r\n\t\t\t\tif(queryObject['title']){\r\n\t\t\t\t\t$('#product_title').text(queryObject['title']);\r\n\t\t\t\t\t$('input[name=\"product_title\"]').val(queryObject['title']);\r\n\t\t\t\t}\r\n\t\t\t\tif(queryObject['sku']){\r\n\t\t\t\t\t$('input[name=\"sku\"]').val(queryObject['sku']);\r\n\t\t\t\t}\r\n\t\t\t\tif(queryObject['sapcode']){\r\n\t\t\t\t\t$('input[name=\"sapcode\"]').val(queryObject['sapcode']);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\/\/ \u7a2e\u5225\uff1a\u4e0b\u53d6\u308a\u3092\u9078\u3093\u3060\u3068\u304d\u8cfc\u5165\u4e88\u5b9a\u54c1\u6b04\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t$('input[name=\"purchasetype\"]:radio' ).change( function() {\r\n\t\t\t\tif($('input[name=\"purchasetype\"]:checked').val() === purchasetype_shitadori){\r\n\t\t\t\t\t$(\"#purchaseplans\").prop(\"disabled\", false);\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\t}else if($('input[name=\"purchasetype\"]:checked').val() === purchasetype_shitadori_2){\r\n          $(\"#purchaseplans\").prop(\"disabled\", false);\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\t}else if($('input[name=\"purchasetype\"]:checked').val() === purchasetype_shitadori_3){\r\n          $(\"#purchaseplans\").prop(\"disabled\", false);\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$(\"#purchaseplans\").prop(\"disabled\", true);\/\/\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\t\t$(\"#purchaseplans\").val(\"\");\/\/ \u5024\u3092\u30af\u30ea\u30a2\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\/\/ --\u78ba\u8a8d\u753b\u9762\u304b\u3089\u623b\u3063\u305f\u3068\u304d\u306e\u8868\u793a\r\n\t\t\tif($('input[name=\"purchasetype\"]:checked').val() == purchasetype_shitadori){\r\n\t\t\t\t$(\"#purchaseplans\").prop(\"disabled\", false);\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n      }else if($('input[name=\"purchasetype\"]:checked').val() === purchasetype_shitadori_2){\r\n        $(\"#purchaseplans\").prop(\"disabled\", false);\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n      }else if($('input[name=\"purchasetype\"]:checked').val() === purchasetype_shitadori_3){\r\n        $(\"#purchaseplans\").prop(\"disabled\", false);\/\/\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t}else{\r\n\t\t\t\t$(\"#purchaseplans\").prop(\"disabled\", true);\/\/\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\/\/ \u8cb7\u53d6\u65b9\u6cd5\uff1a\u5b85\u914d\u4fbf\u3067\u914d\u9001\u3059\u308b\u3092\u9078\u3093\u3060\u3068\u304d\u96c6\u8377\u6b04\uff08\u8cc7\u6750\u30fb\u5e0c\u671b\u65e5\u6642\uff09\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t$('input[name=\"howtobuy\"]:radio' ).change( function() {\r\n\t\t\t\tif($('input[name=\"howtobuy\"]:checked').val() === howtobuy_haisou){\r\n\t\t\t\t\t$('.shuka_row').css('display', 'table-row');\/\/\u96c6\u8377\u6b04\u3092\u8868\u793a\r\n\t\t\t\t\t\/\/ ----\u96c6\u8377\u6b04\u3092\u5fc5\u9808\u306b\u3059\u308b\r\n\t\t\t\t\t$('input[name=\"shuka_input\"]').attr('required', true);\r\n\t\t\t\t\t$('#first_pickup_date').attr('required', true);\r\n\t\t\t\t\t$('#first_pickup_time').attr('required', true);\r\n\t\t\t\t\t$('#second_pickup_date').attr('required', true);\r\n\t\t\t\t\t$('#second_pickup_time').attr('required', true);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$('.shuka_row').css('display', 'none');\/\/\u96c6\u8377\u6b04\u3092\u975e\u8868\u793a\r\n\t\t\t\t\t\/\/ ----\u96c6\u8377\u6b04\u306e\u5fc5\u9808\u3092\u89e3\u9664\r\n\t\t\t\t\t$('input[name=\"shuka_input\"]').attr('required', false);\r\n\t\t\t\t\t$('#first_pickup_date').attr('required', false);\r\n\t\t\t\t\t$('#first_pickup_time').attr('required', false);\r\n\t\t\t\t\t$('#second_pickup_date').attr('required', false);\r\n\t\t\t\t\t$('#second_pickup_time').attr('required', false);\r\n\t\t\t\t\t\/\/ ----\u96c6\u8377\u6b04\u306e\u5165\u529b\u5185\u5bb9\u3092\u30af\u30ea\u30a2\r\n\t\t\t\t\t$('input[name=\"shuka_input\"]').prop('checked', false);\r\n\t\t\t\t\t$('input[name=\"box\"]').prop('checked', false);\r\n\t\t\t\t\t$('#first_pickup_date').val('');\r\n\t\t\t\t\t$('#first_pickup_time').val('');\r\n\t\t\t\t\t$('#second_pickup_date').val('');\r\n\t\t\t\t\t$('#second_pickup_time').val('');\r\n\t\t\t\t\t$('.shuka_shizai.selected').removeClass('selected');\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\/\/ --\u78ba\u8a8d\u753b\u9762\u304b\u3089\u623b\u3063\u305f\u3068\u304d\r\n\t\t\tif($('input[name=\"howtobuy\"]:checked').val() == howtobuy_haisou){\r\n\t\t\t\t$('.shuka_row').css('display', 'table-row');\/\/\u96c6\u8377\u6b04\u3092\u8868\u793a\r\n\t\t\t\t\/\/ ----\u96c6\u8377\u6b04\u3092\u5fc5\u9808\u306b\u3059\u308b\r\n\t\t\t\t$('input[name=\"box\"]').attr('required', true);\r\n\t\t\t\t$('#first_pickup_date').attr('required', true);\r\n\t\t\t\t$('#first_pickup_time').attr('required', true);\r\n\t\t\t\t$('#second_pickup_date').attr('required', true);\r\n\t\t\t\t$('#second_pickup_time').attr('required', true);\r\n\t\t\t}else{\r\n\t\t\t\t$('.shuka_row').css('display', 'none');\/\/\u96c6\u8377\u6b04\u3092\u975e\u8868\u793a\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\/\/ \u8cc7\u6750\u9078\u629e\r\n\t\t\t\/\/ .shuka_shizai\u304c\u30af\u30ea\u30c3\u30af\u3055\u308c\u305f\u3068\u304d\u3001input\u306e\u5024\u3092name=box\u306b\u6e21\u3059\r\n\t\t\t$('.shuka_shizai_select').find('.shuka_shizai').on('click',\r\n\t\t\tfunction () {\r\n\t\t\t\tlet selected_shizai = $(this);\/\/\u4eca\u56de\u30af\u30ea\u30c3\u30af\u3055\u308c\u305fshizai\r\n\t\t\t\tlet selected_shizai_bf = selected_shizai.parent().children('.shuka_shizai.selected');\/\/\u524d\u56de\u30af\u30ea\u30c3\u30af\u3055\u308c\u305fshizai\r\n\t\t\t\t\/\/ --\u30c7\u30b6\u30a4\u30f3\u5909\u66f4\r\n\t\t\t\tselected_shizai_bf.toggleClass('selected');\/\/\u524d\u56deshizai\u306eclass\u3092\u524a\u9664\r\n\t\t\t\tselected_shizai.toggleClass('selected');\/\/\u4eca\u56deshizai\u306bclass\u3092\u8ffd\u52a0\r\n\t\t\t\t\/\/ --shuka_input\u306e\u5909\u66f4\r\n\t\t\t\tselected_shizai_bf.find('input[name=\"shuka_input\"]').prop('checked', false);\/\/\u524d\u56deshizai\u306einput\u9078\u629e\u3092\u89e3\u9664\r\n\t\t\t\tselected_shizai.find('input[name=\"shuka_input\"]').prop('checked', true);\/\/\u4eca\u56deshizai\u306einput\u3092\u9078\u629e\r\n\t\t\t\t\/\/ --name=box\u306e\u5909\u66f4\r\n\t\t\t\tlet selected_value = selected_shizai.find('input[name=\"shuka_input\"]').val();\r\n\t\t\t\t$('input[name=\"box\"]').val([selected_value]);\/\/input\u306e\u5024\u3092name=box\u306b\u6e21\u3059\r\n\t\t\t\t\r\n\t\t\t\t\/\/ \u5f53\u793e\u68b1\u5305\u30ad\u30c3\u30c8\u5e0c\u671b\u306e\u3068\u304d\u3001\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\tif(selected_value === box_other){\r\n\t\t\t\t\t\/\/ --\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\t\t$(\"#first_pickup_date\").val(\"\");\r\n\t\t\t\t\t$(\"#first_pickup_time\").val(\"\");\r\n\t\t\t\t\t$(\"#second_pickup_date\").val(\"\");\r\n\t\t\t\t\t$(\"#second_pickup_time\").val(\"\");\r\n\t\t\t\t\t$(\"#pickup_date_time\").css(\"display\", \"none\");\/\/\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u8868\u793a\r\n\t\t\t\t\t\/\/ --\u5e0c\u671b\u65e5\u6642\u6b04\u306e\u5fc5\u9808\u3092\u89e3\u9664\r\n\t\t\t\t\t$('#first_pickup_date').attr('required', false);\r\n\t\t\t\t\t$('#first_pickup_time').attr('required', false);\r\n\t\t\t\t\t$('#second_pickup_date').attr('required', false);\r\n\t\t\t\t\t$('#second_pickup_time').attr('required', false);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$(\"#pickup_date_time\").css(\"display\", \"block\");\/\/\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u8868\u793a\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\t\/\/ \u8cc7\u6750\u9078\u629e\uff08\u78ba\u8a8d\u753b\u9762\u304b\u3089\u623b\u3063\u305f\u3068\u304d\uff09\r\n\t\t\tlet selected_value = $('input[name=\"box\"]:checked').val();\r\n\t\t\tif(selected_value){\r\n\t\t\t\t$('input[name=\"shuka_input\"]').val([selected_value]);\/\/ shuka_input\u3092\u9078\u629e\r\n\t\t\t\tlet selected_shizai = $('input[name=\"shuka_input\"]:checked').parent().parent();\r\n\t\t\t\tselected_shizai.toggleClass('selected');\/\/\u5bfe\u8c61\u306eshizai\u306bclass\u3092\u8ffd\u52a0\r\n\t\t\t\t\/\/ \u5f53\u793e\u68b1\u5305\u30ad\u30c3\u30c8\u5e0c\u671b\u306e\u3068\u304d\u3001\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\tif(selected_value === box_other){\r\n\t\t\t\t\t\/\/ --\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\t\t\t$(\"#first_pickup_date\").val(\"\");\r\n\t\t\t\t\t$(\"#first_pickup_time\").val(\"\");\r\n\t\t\t\t\t$(\"#second_pickup_date\").val(\"\");\r\n\t\t\t\t\t$(\"#second_pickup_time\").val(\"\");\r\n\t\t\t\t\t$(\"#pickup_date_time\").css(\"display\", \"none\");\/\/\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u8868\u793a\r\n\t\t\t\t\t\/\/ --\u5e0c\u671b\u65e5\u6642\u6b04\u306e\u5fc5\u9808\u3092\u89e3\u9664\r\n\t\t\t\t\t$('#first_pickup_date').attr('required', false);\r\n\t\t\t\t\t$('#first_pickup_time').attr('required', false);\r\n\t\t\t\t\t$('#second_pickup_date').attr('required', false);\r\n\t\t\t\t\t$('#second_pickup_time').attr('required', false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else if(formType === 'confirm'){\/\/---------------------\u78ba\u8a8d\u753b\u9762\r\n\t\t\t\/\/ \u8cb7\u53d6\u65b9\u6cd5\uff1a\u5b85\u914d\u4fbf\u3067\u914d\u9001\u3059\u308b\u306e\u3068\u304d\u3060\u3051\u96c6\u8377\u6b04\u3092\u30a2\u30af\u30c6\u30a3\u30d6\u306b\u3059\u308b\r\n\t\t\tif($('input[name=\"howtobuy\"]').val() == howtobuy_haisou){\r\n\t\t\t\t$('.shuka_row').css('display', 'table-row');\r\n\t\t\t}else{\r\n\t\t\t\t$('.shuka_row').css('display', 'none');\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\/\/ \u8cc7\u6750\u9078\u629e\uff1a\u5f53\u793e\u68b1\u5305\u30ad\u30c3\u30c8\u5e0c\u671b\u306e\u3068\u304d\u3001\u5e0c\u671b\u65e5\u6642\u6b04\u3092\u975e\u8868\u793a\u306b\u3059\u308b\r\n\t\t\tif($('input[name=\"box\"]').val() == box_other){\r\n\t\t\t\t$(\"#pickup_date_time\").css(\"display\", \"none\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t});\r\n<\/script>","protected":false},"excerpt":{"rendered":"[mwform_formkey key=&#8221;32397&#8243;]","protected":false},"author":19,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-used_purchase.php","meta":{"footnotes":""},"class_list":["post-32401","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/pages\/32401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/comments?post=32401"}],"version-history":[{"count":6,"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/pages\/32401\/revisions"}],"predecessor-version":[{"id":32430,"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/pages\/32401\/revisions\/32430"}],"wp:attachment":[{"href":"https:\/\/info.system5.jp\/prosupport\/wp-json\/wp\/v2\/media?parent=32401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}