{"id":30300,"date":"2024-11-25T09:22:08","date_gmt":"2024-11-25T01:22:08","guid":{"rendered":"https:\/\/fwq.ai\/blog\/30300\/"},"modified":"2024-11-25T09:22:08","modified_gmt":"2024-11-25T01:22:08","slug":"%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e4%b9%8b%e8%a1%a8%e5%8d%95%e9%aa%8c%e8%af%81%e5%ae%9e%e4%be%8b%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/30300\/","title":{"rendered":"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8868\u5355\u9a8c\u8bc1\u5b9e\u4f8b\u6559\u7a0b"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u4e3b\u8981\u4e3a\u5927\u5bb6\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\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\/001\/506\/d5ceb8735ad6505f6dd0b52aa7c0cbc2-0.gif\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8868\u5355\u9a8c\u8bc1\u5b9e\u4f8b\u6559\u7a0b\u63d2\u56fe\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8868\u5355\u9a8c\u8bc1\u5b9e\u4f8b\u6559\u7a0b\u63d2\u56fe\" \/><\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>WXML:<\/p>\n<pre>&lt;view&gt;{{popErrorMsg}}&lt;\/view&gt;&nbsp;\r\n&lt;view&gt;&nbsp;\r\n&lt;form&gt;&nbsp;\r\n&nbsp;&nbsp;&lt;textarea&gt;&lt;\/textarea&gt;&nbsp;\r\n&nbsp;&lt;view&gt;&nbsp;\r\n&nbsp;&lt;text&gt;\u4f60\u8fd8\u53ef\u4ee5\u8f93\u5165&lt;\/text&gt;&nbsp;\r\n&nbsp;&lt;text&gt;{{commentTxtCount}}&lt;\/text&gt;&nbsp;\r\n&nbsp;&lt;text&gt;\u5b57&lt;\/text&gt;&nbsp;\r\n&nbsp;&lt;\/view&gt;&nbsp;\r\n&nbsp;&lt;button&gt;\u786e\u8ba4\u53d1\u5e03&lt;\/button&gt;&nbsp;\r\n&lt;\/form&gt;&nbsp;\r\n&lt;\/view&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>:<\/p>\n<pre>page{background:&nbsp;#f4f4f4;}&nbsp;\r\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;\r\n.ad_popFt{&nbsp;margin:&nbsp;20rpx&nbsp;;&nbsp;margin-top:&nbsp;50rpx;}&nbsp;\r\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;\r\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;\r\n.informBtn{background:&nbsp;#09bb07;color:&nbsp;#fff;font-size:&nbsp;34rpx;&nbsp;margin-top:&nbsp;38rpx;height:&nbsp;88rpx;}&nbsp;\r\n.one_stars{color:&nbsp;#999;}&nbsp;\r\n.one_star{font-size:&nbsp;20rpx;color:&nbsp;#999;}&nbsp;\r\n.danger{&nbsp;color:&nbsp;#f64400;}&nbsp;\r\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>:<\/p>\n<pre>\/\/&nbsp;pages\/informLeaveMsg\/informLeaveMsg.js&nbsp;\r\nPage({&nbsp;\r\n&nbsp;\r\n&nbsp;\/**&nbsp;\r\n&nbsp;*&nbsp;\u9875\u9762\u7684\u521d\u59cb\u6570\u636e&nbsp;\r\n&nbsp;*\/&nbsp;\r\n&nbsp;data:&nbsp;{&nbsp;\r\n&nbsp;&nbsp;\r\n&nbsp;},&nbsp;\r\n&nbsp;\/\/\u786e\u8ba4\u53d1\u5e03&nbsp;\r\n&nbsp;goDetail:function(e){&nbsp;\r\n&nbsp;setTimeout(()=&amp;gt;{&nbsp;\r\n&nbsp;&nbsp;var&nbsp;subValue&nbsp;=&nbsp;e.detail.value.textarea&nbsp;\r\n&nbsp;&nbsp;console.log(subValue)&nbsp;\r\n&nbsp;&nbsp;if&nbsp;(subValue&nbsp;==&nbsp;null&nbsp;||&nbsp;subValue&nbsp;==&nbsp;\"\")&nbsp;{&nbsp;\r\n&nbsp;&nbsp;console.log(\"\u4e0d\u80fd\u4e3a\u7a7a\")&nbsp;\r\n&nbsp;&nbsp;this.setData(&nbsp;\r\n&nbsp;&nbsp;&nbsp;{&nbsp;popErrorMsg:&nbsp;\"\u53d1\u5e03\u7684\u7559\u8a00\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a\"&nbsp;}&nbsp;\r\n&nbsp;&nbsp;);&nbsp;\r\n&nbsp;&nbsp;this.ohShitfadeOut();&nbsp;\r\n&nbsp;&nbsp;return;&nbsp;&nbsp;\r\n&nbsp;&nbsp;}&nbsp;\r\n&nbsp;&nbsp;\r\n&nbsp;},100)&nbsp;\r\n&nbsp;&nbsp;\r\n&nbsp;},&nbsp;\r\n&nbsp;\r\n&nbsp;ohShitfadeOut()&nbsp;{&nbsp;\r\n&nbsp;var&nbsp;fadeOutTimeout&nbsp;=&nbsp;setTimeout(()&nbsp;=&amp;gt;&nbsp;{&nbsp;\r\n&nbsp;&nbsp;this.setData({&nbsp;popErrorMsg:&nbsp;''&nbsp;});&nbsp;\r\n&nbsp;&nbsp;clearTimeout(fadeOutTimeout);&nbsp;\r\n&nbsp;},&nbsp;3000);&nbsp;\r\n&nbsp;},&nbsp;\r\n&nbsp;\r\n})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u3010\u76f8\u5173\u63a8\u8350\u3011<\/p>\n<p>1.&nbsp;<\/p>\n<p>2.&nbsp;<\/p>\n<p>3.&nbsp;<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u4e4b\u8868\u5355\u9a8c\u8bc1\u5b9e\u4f8b\u6559\u7a0b\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\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 : 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 : \/\/&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-30300","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30300","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=30300"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/30300\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=30300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=30300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=30300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}