{"id":10,"date":"2023-03-28T10:03:30","date_gmt":"2023-03-28T02:03:30","guid":{"rendered":"https:\/\/www.jytcon.com\/zh\/wishlist\/"},"modified":"2023-04-17T10:28:50","modified_gmt":"2023-04-17T02:28:50","slug":"wishlist","status":"publish","type":"page","link":"https:\/\/www.jytcon.com\/zh\/wishlist\/","title":{"rendered":"\u5df2\u9009\u4ea7\u54c1\u6e05\u5355"},"content":{"rendered":"\n\n\n<form id=\"wlfmc-wishlist-form\" action=\"https:\/\/www.jytcon.com\/zh\/wishlist\/\" method=\"post\" class=\"wlfmc-wishlist-form wlfmc-wishlist-1 wlfmc-wishlist-fragment woocommerce on-first-load\" data-fragment-options=\"{&quot;unique_id&quot;:&quot;1&quot;,&quot;is_elementor&quot;:false,&quot;wishlist_id&quot;:false,&quot;action_params&quot;:false,&quot;per_page&quot;:&quot;10&quot;,&quot;current_page&quot;:1,&quot;pagination&quot;:true,&quot;wishlist_url&quot;:&quot;https:\\\/\\\/www.jytcon.com\\\/zh\\\/wishlist\\\/&quot;,&quot;no_interactions&quot;:false,&quot;enable_layout_toggle&quot;:false,&quot;wishlist_page_title&quot;:&quot;Wishlist&quot;,&quot;view_mode&quot;:&quot;list&quot;,&quot;button_add_to_cart_style&quot;:&quot;&quot;,&quot;qty_style&quot;:&quot;1&quot;,&quot;pagination_style&quot;:&quot;1&quot;,&quot;custom_template&quot;:&quot;&quot;,&quot;enable_actions&quot;:false,&quot;enable_all_add_to_cart&quot;:false,&quot;enable_share&quot;:&quot;1&quot;,&quot;share_position&quot;:&quot;after_table&quot;,&quot;socials_title&quot;:&quot;My Wishlist on JYTcon-zh&quot;,&quot;login_notice&quot;:&quot;&quot;,&quot;active_tab&quot;:&quot;wishlist&quot;,&quot;wishlist&quot;:false,&quot;wishlist_token&quot;:&quot;&quot;,&quot;is_private&quot;:false,&quot;count&quot;:0,&quot;page_links&quot;:false,&quot;is_user_logged_in&quot;:false,&quot;is_user_owner&quot;:false,&quot;popup_vertical&quot;:&quot;center&quot;,&quot;popup_horizontal&quot;:&quot;center&quot;,&quot;empty_wishlist_title&quot;:&quot;YOUR WISHLIST IS EMPTY!&quot;,&quot;empty_wishlist_content&quot;:&quot;&lt;p&gt;You have not added any products to your wishlist.&lt;\\\/p&gt;&quot;,&quot;tooltip_class&quot;:&quot; wlfmc-tooltip wlfmc-tooltip-top&quot;,&quot;tooltip_type&quot;:&quot;default&quot;,&quot;wishlist_class&quot;:&quot;wlfmc-default-table qty-same-button&quot;,&quot;wishlist_header_class&quot;:&quot;wlfmc-default-table-header&quot;,&quot;wishlist_pagination_class&quot;:&quot;wishlist-pagination&quot;,&quot;share_enabled&quot;:false,&quot;template_part&quot;:&quot;view&quot;,&quot;additional_info&quot;:false,&quot;available_multi_wishlist&quot;:false,&quot;redirect_to_cart&quot;:&quot;1&quot;,&quot;form_action&quot;:&quot;https:\\\/\\\/www.jytcon.com\\\/zh\\\/wishlist\\\/&quot;,&quot;item&quot;:&quot;wishlist&quot;}\">\n\n\t\n\t\n\t<div class=\"wlfmc-wishlist-table-wrapper\">\n\n\t\t\n\t\t<table\n\t\t\tclass=\"wlfmc-wishlist-table wlfmc-wishlist-items-wrapper wlfmc-list  view-mode-list  wlfmc-default-table qty-same-button\"\n\t\t\tdata-pagination=\"1\"\n\t\t\tdata-per-page=\"10\"\n\t\t\tdata-page=\"1\"\n\t\t\tdata-id=\"\"\n\t\t\tdata-token=\"\">\n\n\t\t\t<tbody class=\"wishlist-items-wrapper wishlist-empty\">\n\n\t\t\t\t\t\t\t<tr class=\"wishlist-empty-row\">\n\t\t\t\t\t<td colspan=\"3\" class=\"last-column\">\n\t\t\t\t\t\t<img class=\"empty-image\" src=\"https:\/\/www.jytcon.com\/zh\/wp-content\/plugins\/smart-wishlist-for-more-convert\/assets\/frontend\/images\/empty-wishlist.svg\" width=\"400\" height=\"216\"><h3 class=\"empty-title\">YOUR WISHLIST IS EMPTY!<\/h3><div class=\"empty-content\"><p>You have not added any products to your wishlist.<\/p><\/div><a href=\"https:\/\/www.jytcon.com\/zh\/shop\/\" class=\"wc-forward button empty-button\">\u524d\u5f80\u5546\u5e97<\/a>\t\t\t\t\t<\/td>\n\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t\t\t<tfoot class=\"wlfmc-wishlist-footer\">\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t<\/tfoot>\n\t\t<\/table>\n\n\t\t\n\t<script>\n\t\t(function($) {\n\t\t\t\/\/ console.log($(\".wlfmc-wishlist-table-wrapper:first\"));\n\t\t\tif ($(\".wlfmc-wishlist-table-wrapper\").length <= 0) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$(\".wlfmc-table-item\").each(function(index, item){\n\t\t\t\tlet id = $(item).attr(\"data-row-id\");\n\t\t\t\t\/\/ console.log(id);\n\t\t\t\tlet item2 = $(item).find(\".product-name:first\");\n\t\t\t\tlet addClass = \"text-mark\";\n\t\t\t\tlet addId = \"mark_\" + id;\n\t\t\t\tlet addHolder = $(\"html\").attr(\"lang\") == \"zh-CN\" ? \"\u5907\u6ce8\" : \"comment\";\n\t\t\t\tlet addTextArea = \"<textarea placeholder=\\\"\" + addHolder + \"\\\" class=\\\"\" + addClass + \"\\\" id=\\\"\" + addId + \"\\\">\";\n\t\t\t\taddTextArea += localStorage.getItem(addId) || \"\";\n\t\t\t\taddTextArea += \"<\/textarea>\";\n\t\t\t\tlet addMarkElem = $(addTextArea);\n\t\t\t\taddMarkElem.on(\"input\", function(event) {\n\t\t\t\t\t\/\/ console.log($(this).val());\n\t\t\t\t\tlet text = $(this).val();\n\t\t\t\t\ttext = text.slice(0, 1000);\n\t\t\t\t\tlocalStorage.setItem(addId, text);\n\t\t\t\t});\n\t\t\t\t$(item2).after(addMarkElem);\n\t\t\t});\n\n\t\t\t$(\".wlfmc-wishlist-table-wrapper:first .last-column\").remove();\n\n\t\t\t\/\/ remove old marks\n\t\t\tfor(let key in localStorage){\n\t\t\t\tlet patt = \/mark_\\d+\/;\n\t\t\t\tif (patt.test(key)) {\n\t\t\t\t\tif ($(\"#\" + key).length == 0) {\n\t\t\t\t\t\tlocalStorage.removeItem(key);\n\t\t\t\t\t\t\/\/ console.log(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t  \t}\n\n\t\t\tlet btnPdf = $(\"a.download-pdf:first\");\n\t\t\tbtnPdf.on(\"click\", ()=>{\n\t\t\t\tlet data = {};\n\t\t\t\t$(\"textarea.text-mark\").each((index, item)=>{\n\t\t\t\t\tlet id = $(item).attr(\"id\");\n\t\t\t\t\tlet text = localStorage.getItem(id)\n\t\t\t\t\tif (text) {\n\t\t\t\t\t\tdata[id] = text.slice(0, 1000);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tdata = JSON.stringify(data);\n\t\t\t\t\/\/ console.log(data);\n\t\t\t\tdata = encodeURIComponent(data);\n\t\t\t\tif (data.length > 7000) return false;\n\t\t\t\t\/\/ console.log(data);\n\n\t\t\t\tlet href = btnPdf.attr(\"href\");\n\t\t\t\thref += \"&marks=\" + data;\n\t\t\t\tbtnPdf.attr(\"href\", href);\n\n\t\t\t\treturn !false;\n\t\t\t})\n\n\t\t\t\/\/\u4fee\u6539\u6587\u672c \u5728\u63d2\u4ef6\u91cc\u9762\u6539\n\t\t\t\/\/ let downloadTxt = \"Download PDF\";\n\t\t\t\/\/ if ($(\"html\").attr(\"lang\") == \"zh-CN\") {\n\t\t\t\/\/ \tdownloadTxt = \"\u4e0b\u8f7dPDF\";\n\t\t\t\/\/ }\n\t\t\t\/\/ $(\".wlfmc-share-title:first\").text(downloadTxt);\n\t\t\t\n\t\t})(jQuery);\n\t<\/script>\n\t<\/div>\n\n<\/form>\n\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/pages\/10"}],"collection":[{"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":3,"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/pages\/10\/revisions"}],"predecessor-version":[{"id":519,"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/pages\/10\/revisions\/519"}],"wp:attachment":[{"href":"https:\/\/www.jytcon.com\/zh\/wp-json\/wp\/v2\/media?parent=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}