{"id":31827,"date":"2024-11-25T13:02:10","date_gmt":"2024-11-25T05:02:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31827\/"},"modified":"2024-11-25T13:02:10","modified_gmt":"2024-11-25T05:02:10","slug":"%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f%e8%a1%a8%e5%8d%95%e9%aa%8c%e8%af%81%e9%94%99%e8%af%af%e6%8f%90%e7%a4%ba%e6%95%88%e6%9e%9c","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31827\/","title":{"rendered":"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\u63d0\u793a\u6548\u679c"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\u63d0\u793a\u6548\u679c\uff0c\u70b9\u51fb\u786e\u8ba4\u53d1\u5e03\u4e0d\u80fd\u4e3a\u7a7a\u9519\u8bef\u63d0\u793a\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b<\/p>\n<p>\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\uff0c\u70b9\u51fb\u786e\u8ba4\u53d1\u5e03\u4e0d\u80fd\u4e3a\u7a7a\u9519\u8bef\u63d0\u793a\uff0c\u5177\u4f53\u5185\u5bb9\u5982\u4e0b<\/p>\n<p>\u4ee5\u4e0b\u662f\u6548\u679c\u56fe\uff1a<\/p>\n<p style=\"text-align: center\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/009\/47eb9d3d8ce573f6abe249af9f4adecc-0.gif\" class=\"aligncenter\" title=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\u63d0\u793a\u6548\u679c\u63d2\u56fe\" alt=\"\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\u63d0\u793a\u6548\u679c\u63d2\u56fe\" \/><\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>WXML:<\/p>\n<\/p>\n<pre>&lt;view&gt;{{popErrorMsg}}&lt;\/view&gt;&nbsp;\n&lt;view&gt;&nbsp;\n&lt;form&gt;&nbsp;\n&nbsp;&nbsp;&lt;textarea&gt;&lt;\/textarea&gt;&nbsp;\n&nbsp;&lt;view&gt;&nbsp;\n&nbsp;&lt;text&gt;\u4f60\u8fd8\u53ef\u4ee5\u8f93\u5165&lt;\/text&gt;&nbsp;\n&nbsp;&lt;text&gt;{{commentTxtCount}}&lt;\/text&gt;&nbsp;\n&nbsp;&lt;text&gt;\u5b57&lt;\/text&gt;&nbsp;\n&nbsp;&lt;\/view&gt;&nbsp;\n&nbsp;&lt;button&gt;\u786e\u8ba4\u53d1\u5e03&lt;\/button&gt;&nbsp;\n&lt;\/form&gt;&nbsp;\n&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>WXSS:<\/p>\n<\/p>\n<pre>page{background:&nbsp;#f4f4f4;}&nbsp;\n.ad_popHd{height:&nbsp;76rpx;&nbsp;line-height:&nbsp;76rpx;&nbsp;font-size:&nbsp;32rpx;text-align:&nbsp;center;&nbsp;border-bottom:&nbsp;1px&nbsp;solid&nbsp;#cdd1cd;&nbsp;padding:&nbsp;0&nbsp;20rpx;color:&nbsp;#202120;}&nbsp;\n.ad_popFt{&nbsp;margin:&nbsp;20rpx&nbsp;;&nbsp;margin-top:&nbsp;50rpx;}&nbsp;\n.ad_popArea{&nbsp;width:&nbsp;708rpx;&nbsp;height:400rpx;font-size:30rpx;padding:&nbsp;20rpx;&nbsp;box-sizing:&nbsp;border-box;&nbsp;-webkit-box-sizing:&nbsp;border-box;&nbsp;line-height:&nbsp;40rpx;&nbsp;color:&nbsp;#333;&nbsp;background:&nbsp;#fff;&nbsp;}&nbsp;\n.ad_popCout{&nbsp;color:&nbsp;#969899;&nbsp;font-size:&nbsp;24rpx;&nbsp;text-align:&nbsp;right;&nbsp;line-height:&nbsp;58rpx;&nbsp;padding:&nbsp;0&nbsp;20rpx;}&nbsp;\n.informBtn{background:&nbsp;#09bb07;color:&nbsp;#fff;font-size:&nbsp;34rpx;&nbsp;margin-top:&nbsp;38rpx;height:&nbsp;88rpx;}&nbsp;\n.one_stars{color:&nbsp;#999;}&nbsp;\n.one_star{font-size:&nbsp;20rpx;color:&nbsp;#999;}&nbsp;\n.danger{&nbsp;color:&nbsp;#f64400;}&nbsp;\n.ad_popError{&nbsp;background:&nbsp;#de352d;&nbsp;color:&nbsp;#fff;&nbsp;height:&nbsp;58rpx;&nbsp;line-height:&nbsp;58rpx;&nbsp;font-size:&nbsp;24rpx;&nbsp;text-align:&nbsp;center;&nbsp;position:&nbsp;absolute;&nbsp;left:&nbsp;0;&nbsp;top:&nbsp;0;&nbsp;width:&nbsp;100%;&nbsp;z-index:3;}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>JS:<\/p>\n<\/p>\n<pre>\/\/&nbsp;pages\/informLeaveMsg\/informLeaveMsg.js&nbsp;\nPage({&nbsp;\n&nbsp;\n&nbsp;\/**&nbsp;\n&nbsp;*&nbsp;\u9875\u9762\u7684\u521d\u59cb\u6570\u636e&nbsp;\n&nbsp;*\/&nbsp;\n&nbsp;data:&nbsp;{&nbsp;\n&nbsp;&nbsp;\n&nbsp;},&nbsp;\n&nbsp;\/\/\u786e\u8ba4\u53d1\u5e03&nbsp;\n&nbsp;goDetail:function(e){&nbsp;\n&nbsp;setTimeout(()=&amp;gt;{&nbsp;\n&nbsp;&nbsp;var&nbsp;subValue&nbsp;=&nbsp;e.detail.value.textarea&nbsp;\n&nbsp;&nbsp;console.log(subValue)&nbsp;\n&nbsp;&nbsp;if&nbsp;(subValue&nbsp;==&nbsp;null&nbsp;||&nbsp;subValue&nbsp;==&nbsp;\"\")&nbsp;{&nbsp;\n&nbsp;&nbsp;console.log(\"\u4e0d\u80fd\u4e3a\u7a7a\")&nbsp;\n&nbsp;&nbsp;this.setData(&nbsp;\n&nbsp;&nbsp;&nbsp;{&nbsp;popErrorMsg:&nbsp;\"\u53d1\u5e03\u7684\u7559\u8a00\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\"&nbsp;}&nbsp;\n&nbsp;&nbsp;);&nbsp;\n&nbsp;&nbsp;this.ohShitfadeOut();&nbsp;\n&nbsp;&nbsp;return;&nbsp;&nbsp;\n&nbsp;&nbsp;}&nbsp;\n&nbsp;&nbsp;\n&nbsp;},100)&nbsp;\n&nbsp;&nbsp;\n&nbsp;},&nbsp;\n&nbsp;\n&nbsp;ohShitfadeOut()&nbsp;{&nbsp;\n&nbsp;var&nbsp;fadeOutTimeout&nbsp;=&nbsp;setTimeout(()&nbsp;=&amp;gt;&nbsp;{&nbsp;\n&nbsp;&nbsp;this.setData({&nbsp;popErrorMsg:&nbsp;''&nbsp;});&nbsp;\n&nbsp;&nbsp;clearTimeout(fadeOutTimeout);&nbsp;\n&nbsp;},&nbsp;3000);&nbsp;\n&nbsp;},&nbsp;\n&nbsp;\n})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff0c\u66f4\u591a\u76f8\u5173\u5185\u5bb9\u8bf7\u5173\u6ce8PHP\u4e2d\u6587\u7f51\uff01<\/p>\n<p>\u76f8\u5173\u63a8\u8350\uff1a<\/p>\n<p><\/p>\n<p><\/p>\n<\/p>\n<p><span><\/span><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\u63d0\u793a\u6548\u679c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\u9519\u8bef\u63d0\u793a\u6548\u679c\uff0c\u70b9\u51fb\u786e\u8ba4\u53d1\u5e03\u4e0d\u80fd\u4e3a\u7a7a\u9519\u8bef\u63d0\u793a\uff0c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u4ef7\u503c\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u4eec\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b \u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u8868\u5355\u9a8c\u8bc1\uff0c\u70b9\u51fb\u786e\u8ba4\u53d1\u5e03\u4e0d\u80fd\u4e3a\u7a7a\u9519\u8bef\u63d0\u793a\uff0c\u5177\u4f53\u5185\u5bb9\u5982\u4e0b \u4ee5\u4e0b\u662f\u6548\u679c\u56fe\uff1a \u4ee3\u7801\u5982\u4e0b\uff1a WXML: &lt;view&gt;{{popErrorMsg}}&lt;\/view&gt;&nbsp; &lt;view&gt;&nbsp; &lt;form&gt;&nbsp; &nbsp;&nbsp;&lt;textarea&gt;&lt;\/textarea&gt;&nbsp; &nbsp;&lt;view&gt;&nbsp; &nbsp;&lt;text&gt;\u4f60\u8fd8\u53ef\u4ee5\u8f93\u5165&lt;\/text&gt;&nbsp; &nbsp;&lt;text&gt;{{commentTxtCount}}&lt;\/text&gt;&nbsp; &nbsp;&lt;text&gt;\u5b57&lt;\/text&gt;&nbsp; &nbsp;&lt;\/view&gt;&nbsp; &nbsp;&lt;button&gt;\u786e\u8ba4\u53d1\u5e03&lt;\/button&gt;&nbsp; &lt;\/form&gt;&nbsp; &lt;\/view&gt; \u767b\u5f55\u540e\u590d\u5236 WXSS: page{background:&nbsp;#f4f4f4;}&nbsp; .ad_popHd{height:&nbsp;76rpx;&nbsp;line-height:&nbsp;76rpx;&nbsp;font-size:&nbsp;32rpx;text-align:&nbsp;center;&nbsp;border-bottom:&nbsp;1px&nbsp;solid&nbsp;#cdd1cd;&nbsp;padding:&nbsp;0&nbsp;20rpx;color:&nbsp;#202120;}&nbsp; .ad_popFt{&nbsp;margin:&nbsp;20rpx&nbsp;;&nbsp;margin-top:&nbsp;50rpx;}&nbsp; .ad_popArea{&nbsp;width:&nbsp;708rpx;&nbsp;height:400rpx;font-size:30rpx;padding:&nbsp;20rpx;&nbsp;box-sizing:&nbsp;border-box;&nbsp;-webkit-box-sizing:&nbsp;border-box;&nbsp;line-height:&nbsp;40rpx;&nbsp;color:&nbsp;#333;&nbsp;background:&nbsp;#fff;&nbsp;}&nbsp; .ad_popCout{&nbsp;color:&nbsp;#969899;&nbsp;font-size:&nbsp;24rpx;&nbsp;text-align:&nbsp;right;&nbsp;line-height:&nbsp;58rpx;&nbsp;padding:&nbsp;0&nbsp;20rpx;}&nbsp; .informBtn{background:&nbsp;#09bb07;color:&nbsp;#fff;font-size:&nbsp;34rpx;&nbsp;margin-top:&nbsp;38rpx;height:&nbsp;88rpx;}&nbsp; .one_stars{color:&nbsp;#999;}&nbsp; .one_star{font-size:&nbsp;20rpx;color:&nbsp;#999;}&nbsp; .danger{&nbsp;color:&nbsp;#f64400;}&nbsp; .ad_popError{&nbsp;background:&nbsp;#de352d;&nbsp;color:&nbsp;#fff;&nbsp;height:&nbsp;58rpx;&nbsp;line-height:&nbsp;58rpx;&nbsp;font-size:&nbsp;24rpx;&nbsp;text-align:&nbsp;center;&nbsp;position:&nbsp;absolute;&nbsp;left:&nbsp;0;&nbsp;top:&nbsp;0;&nbsp;width:&nbsp;100%;&nbsp;z-index:3;} \u767b\u5f55\u540e\u590d\u5236 JS: \/\/&nbsp;pages\/informLeaveMsg\/informLeaveMsg.js&nbsp; Page({&nbsp; &nbsp; &nbsp;\/**&nbsp; &nbsp;*&nbsp;\u9875\u9762\u7684\u521d\u59cb\u6570\u636e&nbsp; &nbsp;*\/&nbsp; &nbsp;data:&nbsp;{&nbsp; &nbsp;&nbsp; &nbsp;},&nbsp; &nbsp;\/\/\u786e\u8ba4\u53d1\u5e03&nbsp; &nbsp;goDetail:function(e){&nbsp; &nbsp;setTimeout(()=&amp;gt;{&nbsp; &nbsp;&nbsp;var&nbsp;subValue&nbsp;=&nbsp;e.detail.value.textarea&nbsp; &nbsp;&nbsp;console.log(subValue)&nbsp; &nbsp;&nbsp;if&nbsp;(subValue&nbsp;==&nbsp;null&nbsp;||&nbsp;subValue&nbsp;==&nbsp;&#8220;&#8221;)&nbsp;{&nbsp; &nbsp;&nbsp;console.log(&#8220;\u4e0d\u80fd\u4e3a\u7a7a&#8221;)&nbsp; &nbsp;&nbsp;this.setData(&nbsp; &nbsp;&nbsp;&nbsp;{&nbsp;popErrorMsg:&nbsp;&#8220;\u53d1\u5e03\u7684\u7559\u8a00\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a&#8221;&nbsp;}&nbsp; &nbsp;&nbsp;);&nbsp; &nbsp;&nbsp;this.ohShitfadeOut();&nbsp; &nbsp;&nbsp;return;&nbsp;&nbsp; &nbsp;&nbsp;}&nbsp; &nbsp;&nbsp; &nbsp;},100)&nbsp; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-31827","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31827","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=31827"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31827\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}