{"id":199213,"date":"2025-05-03T08:13:05","date_gmt":"2025-05-03T00:13:05","guid":{"rendered":"https:\/\/server.hk\/cnblog\/199213\/"},"modified":"2025-05-03T08:13:05","modified_gmt":"2025-05-03T00:13:05","slug":"%e5%8e%bb%e6%8e%89ecshop%e8%b4%ad%e7%89%a9%e6%b5%81%e7%a8%8b%e7%9a%84%e7%94%b5%e5%ad%90%e9%82%ae%e4%bb%b6%e5%bf%85%e5%a1%ab%e5%92%8c%e7%94%b5%e8%af%9d%e3%80%81%e6%89%8b%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/199213\/","title":{"rendered":"\u53bb\u6389ecshop\u8d2d\u7269\u6d41\u7a0b\u7684\u7535\u5b50\u90ae\u4ef6\u5fc5\u586b\u548c\u7535\u8bdd\u3001\u624b\u673a"},"content":{"rendered":"<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse;line-height: normal;width: 600px;margin-left: 1px;font-family: Verdana, Helvetica, Arial, sans-serif;font-size: 12px\">\n<tbody>\n<tr>\n<td style=\"font: normal normal normal 12px\/1.6em Verdana, Helvetica, Arial, sans-serif;line-height: 1.6em;font-size: 14px\">1\u3001include\/lib_order.php<br \/> \u51fd\u6570check_c**ignee_info\u7b2c1795\u884c\u5de6\u53f3\u201c!empty($c**ignee[&#8217;email&#8217;]) &amp;&amp;!empty($c**ignee[&#8216;tel&#8217;])\u201d\u8fd9\u53e5\u6539\u4e3a\u201c\/*!empty($c**ignee[&#8217;email&#8217;]) &amp;&amp;*\/<br \/> &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;!empty($c**ignee[&#8216;tel&#8217;])||!empty($c**ignee[&#8216;mobile&#8217;])\u201d \uff1b<\/p>\n<p> 2\u3001js\/shopping_flow.js&nbsp; &nbsp;\u51fd\u6570checkC**ignee(frm)\u7b2c582\u884c\u5de6\u53f3\u53bb\u6389\u6216\u6ce8\u91ca\u6389 if ( ! Utils.isEmail(frm.elements[&#8217;email&#8217;].value))<br \/> {<br \/> &nbsp; &nbsp; err = true;<br \/> &nbsp; &nbsp; msg.push(invalid_email);<br \/> }<br \/> 3\u3001js\/shopping_flow.js&nbsp; &nbsp;\u51fd\u6570checkC**ignee(frm)\u7b2c600\u884c\u5de6\u53f3<br \/> if (Utils.isEmpty(frm.elements[&#8216;tel&#8217;].value))<br \/> {<br \/> &nbsp; &nbsp; err = true;<br \/> &nbsp; &nbsp; msg.push(tele_not_null);<br \/> }<br \/> else<br \/> {<br \/> &nbsp; &nbsp; if (!Utils.isTel(frm.elements[&#8216;tel&#8217;].value))<br \/> &nbsp; &nbsp; {<br \/> &nbsp; &nbsp;&nbsp; &nbsp;err = true;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;msg.push(tele_invaild);<br \/> &nbsp; &nbsp; }<br \/> }<br \/> if (frm.elements[&#8216;mobile&#8217;] &amp;&amp; frm.elements[&#8216;mobile&#8217;].value.length &gt; 0 &amp;&amp; (!Utils.isTel(frm.elements[&#8216;mobile&#8217;].value)))<br \/> {<br \/> &nbsp; &nbsp; err = true;<br \/> &nbsp; &nbsp; msg.push(mobile_invaild);<br \/> }\u6539\u4e3a<br \/> if ((Utils.isEmpty(frm.elements[&#8216;tel&#8217;].value))&amp;&amp;(Utils.isEmpty(frm.elements[&#8216;mobile&#8217;].value)))<br \/> {<br \/> &nbsp; &nbsp; err = true;<br \/> &nbsp; &nbsp; msg.push(tele_not_null);<br \/> }<br \/> else<br \/> {<br \/> &nbsp; &nbsp; if (frm.elements[&#8216;tel&#8217;] &amp;&amp; frm.elements[&#8216;tel&#8217;].value.length &gt; 0 &amp;&amp; !Utils.isTel(frm.elements[&#8216;tel&#8217;].value))<br \/> &nbsp; &nbsp; {<br \/> &nbsp; &nbsp;&nbsp; &nbsp;err = true;<br \/> &nbsp; &nbsp;&nbsp; &nbsp;msg.push(tele_invaild);<br \/> &nbsp; &nbsp; }<br \/> if (frm.elements[&#8216;mobile&#8217;] &amp;&amp; frm.elements[&#8216;mobile&#8217;].value.length &gt; 0 &amp;&amp; (!Utils.isMobile(frm.elements[&#8216;mobile&#8217;].value)))<br \/> &nbsp; &nbsp;&nbsp;&nbsp;{<br \/> &nbsp; &nbsp;&nbsp; &nbsp; err = true;<br \/> &nbsp; &nbsp;&nbsp; &nbsp; msg.push(mobile_invaild);<br \/> &nbsp; &nbsp;&nbsp; &nbsp;}<br \/> }<br \/> 4\u3001\u4fee\u6539<span style=\"line-height: normal;cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid\">\u6a21\u677f<\/span><span style=\"line-height: normal;cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid\">\u6587\u4ef6<\/span>\u5939\u4e0b\/lib\/c**ignee.lbi&nbsp;&nbsp;<span style=\"line-height: normal;cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid\">\u641c\u7d22<\/span>\u5230{$lang.email_address}\u8fd9\u53e5\uff0c<span style=\"line-height: normal;cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid\">\u5220\u9664<\/span>\u7d27\u8ddf\u5728\u540e\u9762\u4e24\u884c\u7684&lt;span class=&#8221;textStrong&#8221;&gt;{$lang.require_field}&lt;\/span&gt;\u8fd9\u53e5\uff0c\u8fd9\u6837\u7684\u8bdd<span style=\"line-height: normal;cursor: pointer;border-bottom-width: 1px;border-bottom-style: solid\">\u9875\u9762<\/span>\u4e0a\u5c31\u4e0d\u4f1a\u51fa\u73b0\u5fc5\u586b\u4e24\u4e2a\u5b57\u4e86\u3002<\/p>\n<p> 5\u3001 \u4fee\u6539 languages\/zh_cn\/shiping_flow.php&nbsp;&nbsp;\u4e2d\uff0c\u67e5\u627e $_LANG[&#8216;flow_js&#8217;][&#8216;tele_not_null&#8217;] \uff0c\u5927\u6982109\u884c\uff0c\u5c06\u6b64\u884c\u4fee\u6539\u4e3a $_LANG[&#8216;flow_js&#8217;][&#8216;tele_not_null&#8217;] = &#8216;\u624b\u673a\u548c\u56fa\u5b9a\u7535\u8bdd\u8bf7\u81f3\u5c11\u586b\u5199\u4e00\u9879\uff01&#8217;;&nbsp;&nbsp;<\/p>\n<p> 6 \u3001\u597d\u6a21\u677f \u5b8c\u5de5 \u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 1\u3001include&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-199213","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=199213"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/199213\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=199213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=199213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=199213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}