{"id":60173,"date":"2025-04-24T08:05:01","date_gmt":"2025-04-24T00:05:01","guid":{"rendered":"https:\/\/fwq.ai\/blog\/60173\/"},"modified":"2025-04-24T08:05:01","modified_gmt":"2025-04-24T00:05:01","slug":"%e7%bb%99ecshop%e5%a2%9e%e5%8a%a0%e8%87%aa%e5%ae%9a%e4%b9%89%e4%bf%83%e9%94%80%e5%9b%be%e6%a0%87%e5%8a%9f%e8%83%bd-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/60173\/","title":{"rendered":"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd"},"content":{"rendered":"<p>&nbsp;<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\" style=\"border-collapse: collapse;width: 757px;font-family: Tahoma, Helvetica, SimSun, sans-serif;font-size: 12px;line-height: 18px\">\n<tbody>\n<tr>\n<td>\n<p>ecshop\u7684\u5546\u54c1\u663e\u793a\u7684\uff0c\u5f53\u6211\u4eec\u628a\u5546\u54c1\u8bbe\u7f6e\u4e3a\u65b0\u54c1\u65f6\uff0c\u5546\u54c1\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e0d\u4f1a\u6709\u4e2a\u65b0\u54c1\u7684\u5c0f\u56fe\u6807<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/php\/ecshop\/data\/attachment\/forum\/201201\/14\/2257018dg884kobdek4s8p.jpg\" class=\"aligncenter\" style=\"cursor: pointer\" title=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe\" alt=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe\" \/>&nbsp; <\/p>\n<p> \u5f53\u6211\u4eec\u628a\u5546\u54c1\u8bbe\u7f6e\u4e3a\u7cbe\u54c1\u65f6\uff0c\u5546\u54c1\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e0d\u4f1a\u6709\u4e2a\u7cbe\u54c1\u7684\u5c0f\u56fe\u6807<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/php\/ecshop\/data\/attachment\/forum\/201201\/14\/225702b9gqc39b9jqx639o.jpg\" class=\"aligncenter\" style=\"cursor: pointer\" title=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe1\" alt=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe1\" \/>&nbsp; <\/p>\n<p> \u5f53\u6211\u4eec\u628a\u5546\u54c1\u8bbe\u7f6e\u4e3a\u70ed\u9500\u65f6\uff0c\u5546\u54c1\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e0d\u4f1a\u6709\u4e2a\u70ed\u9500\u7684\u5c0f\u56fe\u6807<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/php\/ecshop\/data\/attachment\/forum\/201201\/14\/225702uq75gk5v73keklzn.jpg\" class=\"aligncenter\" style=\"cursor: pointer\" title=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe2\" alt=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe2\" \/>&nbsp; <\/p>\n<p> \u53ef\u80fd\u6211\u4eec\u60f3\u8bbe\u7f6e\u66f4\u591a\u7684\u5c0f\u56fe\u6807\uff0c\u4f8b\u5982\uff0c\u6b63\u54c1\uff0c\u539f\u88c5\uff0c\u884c\u8d27\uff0c\u8fd9\u6837\u7684\u5c0f\u56fe\u6807\uff0c\u90a3\u6211\u4eec\u6211\u4eec\u6765\u5bf9ecshop\u4e8c\u6b21\u5f00\u53d1\u5b8c\u6210\u8fd9\u4e2a\u6bd4\u8f83\u6709\u7528\u7684\u5c0f\u529f\u80fd,\u5b8c\u6210\u81ea\u5b9a\u4e49\u540e\u7684\u6548\u679c\u5982\u56fe\u6240\u793a\uff1a<\/p>\n<p> <img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/php\/ecshop\/data\/attachment\/forum\/201201\/14\/225703fw3eezl1uu586w63.jpg\" class=\"aligncenter\" style=\"cursor: pointer\" title=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe3\" alt=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe3\" \/>&nbsp; <\/p>\n<p> \u4e0b\u9762\u597d\u6a21\u677f\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/p>\n<p> \u4e00\u3001<font>\u4fee\u6539\u6570\u636e\u5e93goods\u8868\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5b57\u6bb5\u8fd9\u91cc\u6211\u4eec\u53d6\u540d\u4e3atags_img \u7c7b\u578b\u4e3avarchar<\/font><\/p>\n<p> <font>\u4e8c\u3001\u8fdb\u884c\u540e\u53f0\u5546\u54c1\u8be6\u60c5\u9875\u9762\u7684\u529f\u80fd\u6dfb\u52a0\uff0c\u9996\u5148\u5728admin\/templates\/goods_info.htm\u4e0b\u5236\u4f5c\u4e00\u4e2a\u4e0a\u4f20\u529f\u80fd\u7684\u6846<\/font><\/p>\n<p> <font><img decoding=\"async\" src=\"https:\/\/www.ldhost.cn\/helphmb\/php\/ecshop\/data\/attachment\/forum\/201201\/14\/225705a4rmrpza8op2a6ii.jpg\" class=\"aligncenter\" style=\"cursor: pointer\" title=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe4\" alt=\"\u7ed9ecshop\u589e\u52a0\u81ea\u5b9a\u4e49\u4fc3\u9500\u56fe\u6807\u529f\u80fd\u63d2\u56fe4\" \/>&nbsp;<\/font><\/p>\n<p> <font>\u4ee3\u7801\u5982\u4e0b\uff08\u60f3\u7528\u8bed\u8a00\u5305\u7684\u81ea\u5df1\u6574\u53bb\u5427\uff09\uff1a<\/font><\/p>\n<ol>\n<li>&lt;tr&gt;<\/li>\n<li>&lt;td class=&#8221;label&#8221;&gt;\u5546\u54c1\u56fe\u6807\uff1a&lt;\/td&gt;<\/li>\n<li>&lt;td&gt;&lt;input type=&#8221;file&#8221; name=&#8221;tags_image&#8221; id=&#8221;tags&#8221; size=&#8221;45&#8243;&gt;<\/li>\n<li>&lt;span id=&#8221;tags_img_result&#8221;&gt;&nbsp;<\/li>\n<li>{if $goods.tags_img neq &#8221;}<\/li>\n<li>&lt;a href=&#8221;javascript:;&#8221; onclick=&#8221;if (confirm(&#8216;{$lang.drop_img_confirm}&#8217;)) dropTags(&#8216;{$goods.goods_id}&#8217;)&#8221;&gt;<\/li>\n<li>&lt;img src=&#8221;images\/yes.gif&#8221; style=&#8221;border:none;&#8221; \/&gt;<\/li>\n<li>&lt;\/a&gt;<\/li>\n<li>{else}<\/li>\n<li>&lt;img src=&#8221;images\/no.gif&#8221; style=&#8221;border:none;&#8221; \/&gt;<\/li>\n<li>{\/if}<\/li>\n<li>&lt;\/span&gt;<\/li>\n<li>&lt;\/td&gt;<\/li>\n<li>&lt;\/tr&gt;<\/li>\n<\/ol>\n<p> <font><span style=\"font-size: 12px\"><br \/> <\/span><\/font> <br \/> <font>\u8fd9\u91cc\u9762\u6709\u4e2ajs\u662f\u7528\u6765\u5220\u9664\u56fe\u7247\u663e\u793a\u56fe\u7247\u662f\u5426\u5b58\u5728\u7684<\/font><br \/> <font>\u4ee3\u7801\u5982\u4e0b\uff1a<\/font><\/p>\n<ol>\n<li>\/**<\/li>\n<li>* \u5220\u9664\u56fe\u6807<\/li>\n<li>*\/<\/li>\n<li>function dropTags(goods_id)<\/li>\n<li>{<\/li>\n<li>Ajax.call(&#8216;goods.php?is_ajax=1&amp;act=drop_tags&#8217;, &#8220;goods_id=&#8221;+goods_id, dropTagsResp**e, &#8220;GET&#8221;, &#8220;JSON&#8221;);<\/li>\n<li>}<\/li>\n<li>&nbsp;<\/li>\n<li>function dropTagsResp**e(result)<\/li>\n<li>{<\/li>\n<li>if (result.error == 0)<\/li>\n<li>{<\/li>\n<li>document.getElementById(&#8216;tags_img_result&#8217;).innerHTML= &#8220;&lt;img src=\\&#8221;images\/no.gif\\&#8221; style=\\&#8221;border:none;\\&#8221; \/&gt;&#8221;;<\/li>\n<li>}<\/li>\n<li>}<\/li>\n<\/ol>\n<p> <font><span style=\"font-size: 12px\"><br \/> <\/span><\/font> <\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<p><span>\u5206\u4eab\u5230\uff1a<\/span>         \u9876\u4e00\u4e0b (2)<br \/>\n<span style=\"width:66.7%\"><\/span> 66.7% \u8e29\u4e00\u4e0b (1)<br \/>\n<span style=\"width:33.3%\"><\/span> 33.3%<br \/>\n<strong>&#8212;&#8212;\u5206\u9694\u7ebf&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/strong> <\/p>\n<ul>\n<li>\u4e0a\u4e00\u7bc7\uff1a <\/li>\n<li>\u4e0b\u4e00\u7bc7\uff1a <\/li>\n<\/ul>\n<dl>\n<dt>\n  <strong>\u680f\u76ee\u5217\u8868<\/strong>\n <\/dt>\n<dd>\n<ul>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<dl>\n<dt>\n  <strong>\u70ed\u70b9\u5185\u5bb9<\/strong>\n <\/dt>\n<dd>\n <\/dd>\n<dd>\n<ul>\n<li>\n<p>1\uff0c\u6570\u636e\u5e93\u6dfb\u52a0\u89c4\u683c\u56fe\u7247\u5b57\u6bb5 alter table ecs_goods_attr add attr_image v&#8230;<\/p>\n<\/li>\n<li>\n<p>\u5927\u5bb6\u7528ecshop\u505a\u5916\u8d38\u7f51\u7ad9\uff0c\u90fd\u4e0d\u559c\u6b22\u590d\u6742\u91cd\u5199\u91cc\u7684+\u53f7\uff0c\u60f3\u4fee\u6539\u6210&#8230;<\/p>\n<\/li>\n<li>\n<p>ecshop\u672c\u8eab\u5e26\u7684\u8ba2\u5355\u6765\u6e90\u7684\u529f\u80fd\u7b80\u5355\uff0c\u4ee5\u4e0b\u63d0\u4f9b\u589e\u52a0\u8ba2\u5355\u6765\u6e90\u652f\u6301&#8230;<\/p>\n<\/li>\n<li>\n<p>\u597d\u6a21\u677f\u6709\u5ba2\u6237\u95ee\u5230\uff0cecshop\u7f51\u7ad9\u7684\u6240\u6709\u4ea7\u54c1\u5f53\u4e2d\u7cbe\u54c1\u3001\u65b0\u54c1\u3001\u70ed\u9500&#8230;<\/p>\n<\/li>\n<li>\n<p>\u5728ECSHOP\u5546\u54c1\u9875\u589e\u52a0\u201c\u5206\u4eab\u5230\u5f00\u5fc3\u7f51\u3001\u4eba\u4eba\u7f51\u201d\u7684\u529f\u80fd&#8230;<\/p>\n<\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<dl>\n<dt>\n  <strong>\u968f\u673a\u5185\u5bb9<\/strong>\n <\/dt>\n<dd>\n<ul>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<dl>\n<dt>\n  <strong>\u968f\u673a\u6a21\u677f<\/strong>\n <\/dt>\n<dd>\n<ul>\n<li>   <span>\u4eba\u6c14:<span>1009<\/span><\/span> <\/li>\n<li>   <span>\u4eba\u6c14:<span>2563<\/span><\/span> <\/li>\n<li>   <span>\u4eba\u6c14:<span>1750<\/span><\/span> <\/li>\n<li>   <span>\u4eba\u6c14:<span>1177<\/span><\/span> <\/li>\n<li>   <span>\u4eba\u6c14:<span>6937<\/span><\/span> <\/li>\n<li>   <span>\u4eba\u6c14:<span>1120<\/span><\/span> <\/li>\n<\/ul>\n<\/dd>\n<\/dl>\n<ul>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li>  <\/li>\n<li><\/li>\n<\/ul>\n<p> CopyRight \u00a9 2010-2023 \u4e50\u9053\u4e3b\u673a All Rights Reserved.<br \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; ecshop\u7684\u5546\u54c1\u663e\u793a\u7684\uff0c\u5f53\u6211\u4eec\u628a\u5546\u54c1\u8bbe\u7f6e\u4e3a\u65b0\u54c1\u65f6\uff0c\u5546\u54c1\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e0d\u4f1a\u6709\u4e2a\u65b0\u54c1\u7684\u5c0f\u56fe\u6807 &nbsp; \u5f53\u6211\u4eec\u628a\u5546\u54c1\u8bbe\u7f6e\u4e3a\u7cbe\u54c1\u65f6\uff0c\u5546\u54c1\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e0d\u4f1a\u6709\u4e2a\u7cbe\u54c1\u7684\u5c0f\u56fe\u6807 &nbsp; \u5f53\u6211\u4eec\u628a\u5546\u54c1\u8bbe\u7f6e\u4e3a\u70ed\u9500\u65f6\uff0c\u5546\u54c1\u56fe\u7247\u7684\u5de6\u4e0a\u89d2\u4e0d\u4f1a\u6709\u4e2a\u70ed\u9500\u7684\u5c0f\u56fe\u6807 &nbsp; \u53ef\u80fd\u6211\u4eec\u60f3\u8bbe\u7f6e\u66f4\u591a\u7684\u5c0f\u56fe\u6807\uff0c\u4f8b\u5982\uff0c\u6b63\u54c1\uff0c\u539f\u88c5\uff0c\u884c\u8d27\uff0c\u8fd9\u6837\u7684\u5c0f\u56fe\u6807\uff0c\u90a3\u6211\u4eec\u6211\u4eec\u6765\u5bf9ecshop\u4e8c\u6b21\u5f00\u53d1\u5b8c\u6210\u8fd9\u4e2a\u6bd4\u8f83\u6709\u7528\u7684\u5c0f\u529f\u80fd,\u5b8c\u6210\u81ea\u5b9a\u4e49\u540e\u7684\u6548\u679c\u5982\u56fe\u6240\u793a\uff1a &nbsp; \u4e0b\u9762\u597d\u6a21\u677f\u64cd\u4f5c\u6b65\u9aa4\uff1a \u4e00\u3001\u4fee\u6539\u6570\u636e\u5e93goods\u8868\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5b57\u6bb5\u8fd9\u91cc\u6211\u4eec\u53d6\u540d\u4e3atags_img \u7c7b\u578b\u4e3avarchar \u4e8c\u3001\u8fdb\u884c\u540e\u53f0\u5546\u54c1\u8be6\u60c5\u9875\u9762\u7684\u529f\u80fd\u6dfb\u52a0\uff0c\u9996\u5148\u5728admin\/templates\/goods_info.htm\u4e0b\u5236\u4f5c\u4e00\u4e2a\u4e0a\u4f20\u529f\u80fd\u7684\u6846 &nbsp; \u4ee3\u7801\u5982\u4e0b\uff08\u60f3\u7528\u8bed\u8a00\u5305\u7684\u81ea\u5df1\u6574\u53bb\u5427\uff09\uff1a &lt;tr&gt; &lt;td class=&#8221;label&#8221;&gt;\u5546\u54c1\u56fe\u6807\uff1a&lt;\/td&gt; &lt;td&gt;&lt;input type=&#8221;file&#8221; name=&#8221;tags_image&#8221; id=&#8221;tags&#8221; size=&#8221;45&#8243;&gt; &lt;span id=&#8221;tags_img_result&#8221;&gt;&nbsp; {if $goods.tags_img neq &#8221;} &lt;a href=&#8221;javascript:;&#8221; onclick=&#8221;if (confirm(&#8216;{$lang.drop_img_confirm}&#8217;)) dropTags(&#8216;{$goods.goods_id}&#8217;)&#8221;&gt; &lt;img src=&#8221;images\/yes.gif&#8221; style=&#8221;border:none;&#8221; \/&gt; &lt;\/a&gt; {else} &lt;img src=&#8221;images\/no.gif&#8221; style=&#8221;border:none;&#8221; \/&gt; {\/if} &lt;\/span&gt; &lt;\/td&gt; &lt;\/tr&gt; \u8fd9\u91cc\u9762\u6709\u4e2ajs\u662f\u7528\u6765\u5220\u9664\u56fe\u7247\u663e\u793a\u56fe\u7247\u662f\u5426\u5b58\u5728\u7684 \u4ee3\u7801\u5982\u4e0b\uff1a \/** * \u5220\u9664\u56fe\u6807 *\/ function [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-60173","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=60173"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/60173\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=60173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=60173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=60173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}