{"id":31613,"date":"2024-11-25T10:21:27","date_gmt":"2024-11-25T02:21:27","guid":{"rendered":"https:\/\/fwq.ai\/blog\/31613\/"},"modified":"2024-11-25T10:21:27","modified_gmt":"2024-11-25T02:21:27","slug":"%e5%b0%8f%e7%a8%8b%e5%ba%8f%e5%bc%80%e5%8f%91%e5%88%86%e4%ba%ab%e9%a1%b5%e9%9d%a2%e5%90%8e%e8%bf%94%e5%9b%9e%e9%a6%96%e9%a1%b5","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/31613\/","title":{"rendered":"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5206\u4eab\u9875\u9762\u540e\u8fd4\u56de\u9996\u9875"},"content":{"rendered":"<p style=\"text-align: left\">\u8fd9\u6b21\u7ed9\u5927\u5bb6\u5e26\u6765\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5206\u4eab\u9875\u9762\u540e\u8fd4\u56de\u9996\u9875\uff0c\u7684\u6ce8\u610f\u4e8b\u9879\u6709\u54ea\u4e9b\uff0c\u4e0b\u9762\u5c31\u662f\u5b9e\u6218\u6848\u4f8b\uff0c\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\u3002<\/p>\n<p style=\"text-align: left\">\u505a\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u53d1\u73b0\uff0c\u9875\u9762\u5206\u4eab\u51fa\u53bb\u540e\uff0c\u7528\u6237\u901a\u8fc7\u5206\u4eab\u8fdb\u53bb\u7684\u9875\u9762\u5f88\u96be\u627e\u5230\u8fd4\u9996\u9875\u7684\u60c5\u51b5\u3002\uff08\u5fae\u4fe1\u5b98\u65b9\u64cd\u4f5c\u662f\u70b9\u51fb\u53f3\u4e0a\u89d2\u4e09\u4e2a\u70b9\uff0c\u5728\u624b\u673a\u4e0b\u65b9\u663e\u793a\u8fd4\u56de\u9996\u9875\uff09\u3002\u6c11\u95f4\u5f88\u591a\u65b9\u6848\u662f\u81ea\u5df1\u5728\u9875\u9762\u52a0\u4e2a\u60ac\u6d6eHome\u6807\u6ce8\u3002<\/p>\n<p style=\"text-align: left\">\u4eca\u5929\u6211\u5206\u4eab\u53e6\u5916\u4e00\u79cd\u65b9\u6cd5\u3002\u8bf7\u770b\u4e0b\u9762.gif;<\/p>\n<p style=\"text-align: left\"><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/002\/6dce79b88c602fea8d49c1009897a513-0.gif\" class=\"aligncenter\" title=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5206\u4eab\u9875\u9762\u540e\u8fd4\u56de\u9996\u9875\u63d2\u56fe\" alt=\"\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5206\u4eab\u9875\u9762\u540e\u8fd4\u56de\u9996\u9875\u63d2\u56fe\" \/><\/p>\n<p style=\"text-align: left\">\u6709\u6ca1\u6709\u53d1\u73b0\uff0c\u5de6\u4e0a\u89d2\u6709\u8fd4\u56de\u6309\u94ae\u4e86\u3002\u539f\u7406\u7b80\u5355\uff0c\u5728\u4f60\u8981\u5206\u4eab\u7684\u9875\u9762\uff0c\u5206\u4eab\u914d\u7f6e\u65f6\u914d\u7f6e\u4f60\u7684\u9996\u9875\uff0c\u5e76\u5e26\u4e0a\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5728\u9996\u9875 onLoad\u65b9\u6cd5\u4e2d\u53ef\u4ee5\u83b7\u53d6\u3002\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre>&lt;!--index.wxml--&gt;\n&lt;view class=\"container\"&gt;\n&lt;text&gt;\u6211\u662f\u9996\u9875&lt;\/text&gt;\n &lt;button bindtap='goLogs'&gt;go logsPage&lt;\/button&gt;\n&lt;\/view&gt;\nconst app = getApp()\nPage({\n data: {\n  motto: 'Hello World',\n  userInfo: {},\n  hasUserInfo: false,\n  canIUse: wx.canIUse('button.open-type.getUserInfo')\n },\n \/\/\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\n goLogs: function() {\n  wx.navigateTo({\n   url: '\/pages\/logs\/logs'\n  })\n },\n onLoad: function (options) {\n  console.log(options)\n  if (options.share_query){\n   wx.showLoading({\n    title: '\u6211\u662f\u4ece\u5206\u4eab\u9875\u9762\u8fdb\u5165\u7684',\n   })\n   setTimeout(function () {\n    wx.hideLoading()\n    wx.navigateTo({\n     url: '\/pages\/logs\/logs',\n    })\n   }, 2000)\n  \n  }\n  }\n \n})\n&lt;!--logs.wxml--&gt;\n&lt;view class=\"container log-list\"&gt;\n &lt;block wx:for=\"{{logs}}\" wx:for-item=\"log\"&gt;\n  &lt;text class=\"log-item\"&gt;{{index + 1}}. {{log}}&lt;\/text&gt;\n &lt;\/block&gt;\n&lt;\/view&gt;\nconst app = getApp()\nPage({\n data: {\n  motto: 'Hello World',\n  userInfo: {},\n  hasUserInfo: false,\n  canIUse: wx.canIUse('button.open-type.getUserInfo')\n },\n \/\/\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\n goLogs: function() {\n  wx.navigateTo({\n   url: '\/pages\/logs\/logs'\n  })\n },\n onLoad: function (options) {\n  console.log(options)\n  \/\/\u5224\u65ad\u662f\u5426\u5206\u4eab\u8fdb\u5165\n  if (options.share_query){\n   wx.showLoading({\n    title: '\u6211\u662f\u4ece\u5206\u4eab\u9875\u9762\u8fdb\u5165\u7684',\n   })\n   setTimeout(function () {\n    wx.hideLoading()\n    wx.navigateTo({\n     url: '\/pages\/logs\/logs',\n    })\n   }, 2000)  \n  }\n  } \n})<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u76f8\u4fe1\u770b\u4e86\u672c\u6587\u6848\u4f8b\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u65b9\u6cd5\uff0c\u66f4\u591a\u7cbe\u5f69\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n<p>\u63a8\u8350\u9605\u8bfb\uff1a<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5206\u4eab\u9875\u9762\u540e\u8fd4\u56de\u9996\u9875\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\u6b21\u7ed9\u5927\u5bb6\u5e26\u6765\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u5206\u4eab\u9875\u9762\u540e\u8fd4\u56de\u9996\u9875\uff0c\u7684\u6ce8\u610f\u4e8b\u9879\u6709\u54ea\u4e9b\uff0c\u4e0b\u9762\u5c31\u662f\u5b9e\u6218\u6848\u4f8b\uff0c\u4e00\u8d77\u6765\u770b\u4e00\u4e0b\u3002 \u505a\u5c0f\u7a0b\u5e8f\u5f00\u53d1\u53d1\u73b0\uff0c\u9875\u9762\u5206\u4eab\u51fa\u53bb\u540e\uff0c\u7528\u6237\u901a\u8fc7\u5206\u4eab\u8fdb\u53bb\u7684\u9875\u9762\u5f88\u96be\u627e\u5230\u8fd4\u9996\u9875\u7684\u60c5\u51b5\u3002\uff08\u5fae\u4fe1\u5b98\u65b9\u64cd\u4f5c\u662f\u70b9\u51fb\u53f3\u4e0a\u89d2\u4e09\u4e2a\u70b9\uff0c\u5728\u624b\u673a\u4e0b\u65b9\u663e\u793a\u8fd4\u56de\u9996\u9875\uff09\u3002\u6c11\u95f4\u5f88\u591a\u65b9\u6848\u662f\u81ea\u5df1\u5728\u9875\u9762\u52a0\u4e2a\u60ac\u6d6eHome\u6807\u6ce8\u3002 \u4eca\u5929\u6211\u5206\u4eab\u53e6\u5916\u4e00\u79cd\u65b9\u6cd5\u3002\u8bf7\u770b\u4e0b\u9762.gif; \u6709\u6ca1\u6709\u53d1\u73b0\uff0c\u5de6\u4e0a\u89d2\u6709\u8fd4\u56de\u6309\u94ae\u4e86\u3002\u539f\u7406\u7b80\u5355\uff0c\u5728\u4f60\u8981\u5206\u4eab\u7684\u9875\u9762\uff0c\u5206\u4eab\u914d\u7f6e\u65f6\u914d\u7f6e\u4f60\u7684\u9996\u9875\uff0c\u5e76\u5e26\u4e0a\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5728\u9996\u9875 onLoad\u65b9\u6cd5\u4e2d\u53ef\u4ee5\u83b7\u53d6\u3002\u4ee3\u7801\u5982\u4e0b\uff1a &lt;!&#8211;index.wxml&#8211;&gt; &lt;view class=&#8221;container&#8221;&gt; &lt;text&gt;\u6211\u662f\u9996\u9875&lt;\/text&gt; &lt;button bindtap=&#8217;goLogs&#8217;&gt;go logsPage&lt;\/button&gt; &lt;\/view&gt; const app = getApp() Page({ data: { motto: &#8216;Hello World&#8217;, userInfo: {}, hasUserInfo: false, canIUse: wx.canIUse(&#8216;button.open-type.getUserInfo&#8217;) }, \/\/\u4e8b\u4ef6\u5904\u7406\u51fd\u6570 goLogs: function() { wx.navigateTo({ url: &#8216;\/pages\/logs\/logs&#8217; }) }, onLoad: function (options) { console.log(options) if (options.share_query){ wx.showLoading({ title: &#8216;\u6211\u662f\u4ece\u5206\u4eab\u9875\u9762\u8fdb\u5165\u7684&#8217;, }) setTimeout(function () { wx.hideLoading() wx.navigateTo({ [&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-31613","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31613","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=31613"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/31613\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=31613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=31613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=31613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}