{"id":30,"date":"2026-04-12T00:11:33","date_gmt":"2026-04-11T16:11:33","guid":{"rendered":"https:\/\/word.dilmurat.icu\/?p=30"},"modified":"2026-04-12T00:35:00","modified_gmt":"2026-04-11T16:35:00","slug":"%e5%b0%8f%e6%b0%a2%e4%ba%91-%e7%81%b5%e5%85%89%e6%a8%a1%e6%9d%bfdiy%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/word.dilmurat.icu\/?p=30","title":{"rendered":"\u5c0f\u6c22\u4e91-\u7075\u5149\u6a21\u677fDIY\u6559\u7a0b"},"content":{"rendered":"<h1 id=\"\u9996\u9875\">\u9996\u9875<\/h1>\n<pre><code>  \u4fee\u6539\u6f14\u793a\r\n  {\r\n    \"type\": \"select\",\r\n    \"name\": \"home_templateId\",\r\n    \"label\": \"\u3010\u9996\u9875\u3011\u6a21\u677f\u9009\u62e9\",\r\n    \"value\": \"1\",\/\/\u53ea\u9700\u8981\u6539\u8fd9\u4e2a\u5b57\u6bb5\uff0c\u5176\u4ed6\u7684\u4e0d\u7528\u7ba1\u3002\u586b\u4e0b\u65b9data\u5b57\u6bb5\u5bf9\u5e94\u7684vlaue\u503c\r\n    \"required\": true,\r\n    \"data\": [\r\n      {\"label\": \"\u7ecf\u5178\u5206\u7c7b\u5e03\u5c40 (HomeView)\", \"value\": \"1\"},\r\n      {\"label\": \"\u7ecf\u5178\u5206\u7c7b\u5e03\u5c40 (HomeView)\", \"value\": \"2\"}\r\n    ]\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u7ecf\u5178\u5206\u7c7b\u5e03\u5c40 (HomeView)<\/th>\n<th>\u56fe\u6807\u7f51\u683c\u5e03\u5c40 (HomeView)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/07\/hJz9\/image-20260407101443945.png\" alt=\"image-20260407101443945\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/07\/k7Fh\/image-20260407102556955.png\" alt=\"image-20260407102556955\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code>  {\r\n    \"type\": \"select\",\r\n    \"name\": \"home_categoryLevel\",\r\n    \"label\": \"\u3010\u9996\u9875\u901a\u7528\u3011\u5206\u7c7b\u5c42\u7ea7\",\r\n    \"value\": \"2\",\r\n    \"required\": true,\r\n    \"data\": [\r\n      {\"label\": \"\u4e00\u7ea7\u5206\u7c7b\uff08\u9876\u7ea7\uff09\", \"value\": \"1\"},\r\n      {\"label\": \"\u4e8c\u7ea7\u5206\u7c7b\uff08\u8be6\u7ec6\uff09\", \"value\": \"2\"}\r\n    ]\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u83dc\u5355\u680f\u663e\u793a\u4e00\u7ea7\u5206\u7c7b<\/th>\n<th>\u83dc\u5355\u680f\u663e\u793a\u4e8c\u7ea7\u5206\u7c7b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/rD1x\/image-20260411232457571.png\" alt=\"image-20260411232457571\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/1taR\/image-20260411232409203.png\" alt=\"image-20260411232409203\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code>  {\r\n    \"type\": \"input\",\r\n    \"name\": \"home_categoryRows\",\r\n    \"label\": \"\u3010\u9996\u9875\u901a\u7528\u3011\u5206\u7c7b\u6392\u5217\u884c\u6570\",\r\n    \"value\": \"2\",\r\n    \"placeholder\": \"0=\u9690\u85cf\u5206\u7c7b\u7f51\u683c\uff0c2=\u6bcf\u884c6\u4e2a\uff0c3=\u6bcf\u884c9\u4e2a\",\r\n    \"required\": false,\r\n    \"data\": false\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u5206\u7c7b\u6392\u5217\u884c\u6570-0<\/th>\n<th>\u5206\u7c7b\u6392\u5217\u884c\u6570-1<\/th>\n<th>\u5206\u7c7b\u6392\u5217\u884c\u6570-2<\/th>\n<th>\u5206\u7c7b\u6392\u5217\u884c\u6570-n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/nf8J\/image-20260411232729891.png\" alt=\"image-20260411232729891\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/poS9\/image-20260411232805114.png\" alt=\"image-20260411232805114\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/xP1y\/image-20260411232856230.png\" alt=\"image-20260411232856230\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/6Jqg\/image-20260411233101294.png\" alt=\"image-20260411233106562\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"\u56fe\u6807\u7f51\u683c-\u5546\u54c1\u5c55\u793a\u6a21\u5f0f\">\u56fe\u6807\u7f51\u683c-\u5546\u54c1\u5c55\u793a\u6a21\u5f0f<\/h1>\n<pre><code>  {\r\n    \"type\": \"select\",\r\n    \"name\": \"home2_productDisplayMode\",\r\n    \"label\": \"\u3010\u56fe\u6807\u7f51\u683c\u3011\u5546\u54c1\u5c55\u793a\u6a21\u5f0f\",\r\n    \"value\": \"list\",\r\n    \"required\": true,\r\n    \"data\": [\r\n      {\"label\": \"\u6a2a\u5411\u5217\u8868\", \"value\": \"list\"},\r\n      {\"label\": \"\u7f51\u683c\u5361\u7247\", \"value\": \"grid\"}\r\n    ]\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u6a2a\u5411\u5217\u8868<\/th>\n<th>\u7f51\u683c\u5361\u7247<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/mNy3\/image-20260411233637231.png\" alt=\"image-20260411233637231\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/i3Qb\/image-20260411233724195.png\" alt=\"image-20260411233724195\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><code>  {\r\n    \"type\": \"select\",\r\n    \"name\": \"home2_productGridColumns\",\r\n    \"label\": \"\u3010\u56fe\u6807\u7f51\u683c\u3011\u7f51\u683c\u5217\u6570\",\r\n    \"value\": \"2\",\r\n    \"required\": true,\r\n    \"data\": [\r\n      {\"label\": \"2\u5217\", \"value\": \"2\"},\r\n      {\"label\": \"3\u5217\", \"value\": \"3\"}\r\n    ]\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u7f51\u683c\u5217\u6570-2<\/th>\n<th>\u7f51\u683c\u5217\u6570-3<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/i3Qb\/image-20260411233724195.png\" alt=\"image-20260411233724195\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/tf7R\/image-20260411233908455.png\" alt=\"image-20260411233908455\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"\u5206\u7c7b\u9875\u9762-\u89c6\u56fe\u6a21\u5f0f\">\u5206\u7c7b\u9875\u9762-\u89c6\u56fe\u6a21\u5f0f<\/h2>\n<pre><code>  {\r\n    \"type\": \"select\",\r\n    \"name\": \"category_viewMode\",\r\n    \"label\": \"\u3010\u5206\u7c7b\u9875\u9762\u3011\u89c6\u56fe\u6a21\u5f0f\",\r\n    \"value\": \"1\",\r\n    \"required\": true,\r\n    \"data\": [\r\n      {\"label\": \"\u6807\u51c6\u6a21\u5f0f\uff08\u52a8\u753b\u4e30\u5bcc\uff09\", \"value\": \"1\"},\r\n      {\"label\": \"\u8f7b\u91cf\u6a21\u5f0f\uff08\u6027\u80fd\u4f18\u5148\uff09\", \"value\": \"2\"}\r\n    ]\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u6807\u51c6\u6a21\u5f0f\uff08\u52a8\u753b\u4e30\u5bcc\uff09<\/th>\n<th>\u8f7b\u91cf\u6a21\u5f0f\uff08\u6027\u80fd\u4f18\u5148\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/e8Nc\/image-20260411234142146.png\" alt=\"image-20260411234142146\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/6vkF\/image-20260411234229156.png\" alt=\"image-20260411234229156\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h1 id=\"\u5546\u54c1\u8be6\u60c5-\u7b49\u7ea7\u4ef7\u683c\u663e\u793a\">\u5546\u54c1\u8be6\u60c5-\u7b49\u7ea7\u4ef7\u683c\u663e\u793a<\/h1>\n<pre><code>  {\r\n    \"type\": \"select\",\r\n    \"name\": \"product_gradePricesMode\",\r\n    \"label\": \"\u3010\u5546\u54c1\u8be6\u60c5\u3011\u7b49\u7ea7\u4ef7\u683c\u663e\u793a\",\r\n    \"value\": \"1\",\r\n    \"required\": true,\r\n    \"data\": [\r\n      {\"label\": \"\u4e0d\u663e\u793a\u7b49\u7ea7\u4ef7\u683c\u7ec4\u4ef6\", \"value\": \"0\"},\r\n      {\"label\": \"\u663e\u793a\u7b49\u7ea7\u4ef7\u683c\u7ec4\u4ef6\uff08\u9ed8\u8ba4\u4e0d\u5c55\u5f00\uff09\", \"value\": \"1\"},\r\n      {\"label\": \"\u663e\u793a\u7b49\u7ea7\u4ef7\u683c\u7ec4\u4ef6\uff08\u9ed8\u8ba4\u5c55\u5f00\uff09\", \"value\": \"2\"}\r\n    ]\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u4e0d\u663e\u793a\u7b49\u7ea7\u4ef7\u683c\u7ec4\u4ef6<\/th>\n<th>\u663e\u793a\u7b49\u7ea7\u4ef7\u683c\u7ec4\u4ef6\uff08\u9ed8\u8ba4\u4e0d\u5c55\u5f00\uff09<\/th>\n<th>\u663e\u793a\u7b49\u7ea7\u4ef7\u683c\u7ec4\u4ef6\uff08\u9ed8\u8ba4\u5c55\u5f00\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/Z4nm\/image-20260411235219979.png\" alt=\"image-20260411235219979\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/1Pwv\/image-20260411234812703.png\" alt=\"image-20260411234812703\" \/><\/td>\n<td><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/uWh0\/image-20260411234900958.png\" alt=\"image-20260411234900958\" \/><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"\u4e0b\u5355\u9875-\u5168\u5c40\u63d0\u793a\">\u4e0b\u5355\u9875-\u5168\u5c40\u63d0\u793a<\/h2>\n<pre><code>  {\r\n    \"type\": \"input\",\r\n    \"name\": \"order_orderTip\",\r\n    \"label\": \"\u3010\u4e0b\u5355\u9875\u3011\u5168\u5c40\u63d0\u793a\",\r\n    \"value\": \"\u8bf7\u4ed4\u7ec6\u6838\u5bf9\u586b\u5199\u4fe1\u606f\uff0c\u4e0b\u5355\u540e\u65e0\u6cd5\u4fee\u6539\",\r\n    \"placeholder\": \"\u8bf7\u8f93\u5165\u4e0b\u5355\u9875\u9762\u63d0\u793a\u6587\u6848\",\r\n    \"required\": false,\r\n    \"data\": false\r\n  },\r\n<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th><img decoding=\"async\" src=\"https:\/\/files.seeusercontent.com\/2026\/04\/11\/Txr8\/image-20260411235307913.png\" alt=\"image-20260411235307913\" \/><\/th>\n<\/tr>\n<\/thead>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u9875 \u4fee\u6539\u6f14\u793a { &#8220;type&#8221;: &#8220;select&#8221;, &#8220;name&#8221;: &#8220;home_templateId&#8221;,  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=30"}],"version-history":[{"count":4,"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=\/wp\/v2\/posts\/30\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/word.dilmurat.icu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}