{"id":34212,"date":"2024-11-25T11:40:26","date_gmt":"2024-11-25T03:40:26","guid":{"rendered":"https:\/\/fwq.ai\/blog\/34212\/"},"modified":"2024-11-25T11:40:26","modified_gmt":"2024-11-25T03:40:26","slug":"%e6%b7%b1%e5%85%a5%e6%b5%85%e6%9e%90%e5%b0%8f%e7%a8%8b%e5%ba%8f%e4%b8%ad%e7%9a%84%e5%85%a8%e5%b1%80%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/34212\/","title":{"rendered":"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e"},"content":{"rendered":"<p>\u672c\u7bc7\u6587\u7ae0\u5e26\u5927\u5bb6\u804a\u804a\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\uff0c\u4e86\u89e3\u4e00\u4e0b\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5e38\u7528\u914d\u7f6e\u9879\u548c\u9875\u9762\u914d\u7f6e\u6587\u4ef6\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/000\/000\/024\/61ef661f2b248173.jpg\" class=\"aligncenter\" title=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe\" alt=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe\" \/><\/p>\n<h2><strong>\u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u53ca\u5e38\u7528\u7684\u914d\u7f6e\u9879<\/strong><\/h2>\n<p>\u5c0f\u7a0b\u5e8f\u6839\u76ee\u5f55\u4e0b\u7684 app.json \u6587\u4ef6\u662f\u5c0f\u7a0b\u5e8f\u7684\u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u3002\u5e38\u7528\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<ul>\n<li>pages\uff1a\u8bb0\u5f55\u5f53\u524d\u5c0f\u7a0b\u5e8f\u6240\u6709\u9875\u9762\u7684\u5b58\u653e\u8def\u5f84<\/li>\n<li>window\uff1a\u5168\u5c40\u8bbe\u7f6e\u5c0f\u7a0b\u5e8f\u7a97\u53e3\u7684\u5916\u89c2<\/li>\n<li>tabBar\uff1a\u8bbe\u7f6e\u5c0f\u7a0b\u5e8f\u5e95\u90e8\u7684 tabBar \u6548\u679c<\/li>\n<li>style\uff1a\u662f\u5426\u542f\u7528\u65b0\u7248\u7684\u7ec4\u4ef6\u6837\u5f0f&nbsp; &nbsp;\u3010\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a\u3011<\/li>\n<\/ul>\n<hr>\n<h2>window<\/h2>\n<p><strong><span style=\"font-size: 16px\">\u5c0f\u7a0b\u5e8f\u7a97\u53e3\u7684\u7ec4\u6210\u90e8\u5206<\/span><\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/938\/107\/478\/1643079029708837.png\" class=\"aligncenter\" title=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe1\" alt=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe1\" \/><\/p>\n<p><strong><span style=\"font-size: 16px\">window \u5e38\u7528\u914d\u7f6e\u9879<\/span><\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027\u540d<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>navigationBarTitleText<\/td>\n<td>String<\/td>\n<td>\u5b57\u7b26\u4e32<\/td>\n<td>\u5bfc\u822a\u680f\u6807\u9898\u6587\u5b57\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>navigationBarBackgroundColor<\/td>\n<td>HexColor<\/td>\n<td>#000000<\/td>\n<td>\u5bfc\u822a\u680f\u80cc\u666f\u989c\u8272<\/td>\n<\/tr>\n<tr>\n<td>navigationBarTextStyle<\/td>\n<td>String<\/td>\n<td>white<\/td>\n<td>\u5bfc\u822a\u680f\u6807\u9898\u989c\u8272\uff0c\u4ec5\u652f\u6301black\/white<\/td>\n<\/tr>\n<tr>\n<td>backgroundColor<\/td>\n<td>HexColor<\/td>\n<td>#ffffff<\/td>\n<td>\u7a97\u53e3\u7684\u80cc\u666f\u8272<\/td>\n<\/tr>\n<tr>\n<td>backgroundTextStyle<\/td>\n<td>String<\/td>\n<td>dark<\/td>\n<td>\u4e0b\u62c9loading\u7684\u6837\u5f0f\uff0c\u4ec5\u652f\u6301dark\/light<\/td>\n<\/tr>\n<tr>\n<td>enablePullDownRefresh<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u5168\u5c40\u5f00\u542f\u4e0b\u62c9\u5237\u65b0<\/td>\n<\/tr>\n<tr>\n<td>onReachBottomDistance<\/td>\n<td>Number<\/td>\n<td>50<\/td>\n<td>\u9875\u9762\u4e0a\u62c9\u89e6\u5e95\u4e8b\u4ef6\u89e6\u53d1\u65f6\u8ddd\u9875\u9762\u5e95\u90e8\u7684\u8ddd\u79bb\uff0c\u5355\u4f4d\u4e3apx<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong><span style=\"font-size: 16px\">\u8bbe\u7f6e\u5bfc\u822a\u680f\u7684\u6807\u9898<\/span><\/strong><\/p>\n<p>app.json -&gt; window -&gt; navigationBarTitleText<\/p>\n<p><strong><span style=\"font-size: 16px\">\u8bbe\u7f6e\u5bfc\u822a\u680f\u7684\u80cc\u666f\u8272<\/span><\/strong><\/p>\n<p>app.json -&gt; window -&gt; navigationBarBackgroundColor<\/p>\n<p><strong><span style=\"font-size: 16px\">\u8bbe\u7f6e\u5bfc\u822a\u680f\u6807\u9898\u989c\u8272<\/span><\/strong><\/p>\n<p>app.json -&gt; window -&gt; enablePullDownRefresh<\/p>\n<p><strong><span style=\"font-size: 18px\">\u5168\u5c40\u5f00\u542f\u4e0b\u62c9\u5237\u65b0\uff08\u5728 <\/span><span style=\"font-size: 18px\">app.json<\/span><span style=\"font-size: 18px\"> \u4e2d\u542f\u7528\u4e0b\u62c9\u5237\u65b0\u529f\u80fd\uff0c\u4f1a\u4f5c\u7528\u4e8e\u6bcf\u4e2a\u5c0f\u7a0b\u5e8f\u9875\u9762\uff09<\/span><\/strong><\/p>\n<p>\u4e0b\u62c9\u5237\u65b0\uff1a\u901a\u8fc7\u624b\u6307\u5728\u5c4f\u5e55\u4e0a\u7684\u4e0b\u62c9\u6ed1\u52a8\u64cd\u4f5c\uff0c\u4ece\u800c\u91cd\u65b0\u52a0\u8f7d\u9875\u9762\u6570\u636e\u7684\u884c\u4e3a<\/p>\n<p>app.json -&gt; window -&gt; enablePullDownRefresh<\/p>\n<p><strong><span style=\"font-size: 16px\">\u8bbe\u7f6e\u4e0b\u62c9\u5237\u65b0\u65f6\u7a97\u53e3\u7684\u80cc\u666f\u8272<\/span><\/strong><\/p>\n<p>\u5f53\u5168\u5c40\u5f00\u542f\u4e0b\u62c9\u5237\u65b0\u529f\u80fd\u540e\uff0c\u9ed8\u8ba4\u7684\u7a97\u53e3\u80cc\u666f\u4e3a\u767d\u8272\u3002\u8bbe\u7f6e\u81ea\u5b9a\u4e49\u4e0b\u62c9\u5237\u65b0\u7a97\u53e3\u80cc\u666f\u8272<\/p>\n<p>app.json -&gt; window -&gt; backgroundColor<\/p>\n<p><strong><span style=\"font-size: 16px\">\u8bbe\u7f6e\u4e0b\u62c9\u5237\u65b0\u65f6 loading \u7684\u6837\u5f0f<\/span><\/strong><\/p>\n<p>\u5f53\u5168\u5c40\u5f00\u542f\u4e0b\u62c9\u5237\u65b0\u529f\u80fd\u540e\uff0c\u9ed8\u8ba4\u7684\u7a97\u53e3\u7684 loading \u4e3a\u767d\u8272\u3002\u8bbe\u7f6e loading \u6837\u5f0f\u7684\u6548\u679c<\/p>\n<p>app.json -&gt; window -&gt; backgroundTextStyle<\/p>\n<p><strong><span style=\"font-size: 16px\">\u8bbe\u7f6e\u4e0a\u62c9\u89e6\u5e95\u7684\u8ddd\u79bb<\/span><\/strong><\/p>\n<p>\u4e0a\u62c9\u89e6\u5e95\uff1a\u901a\u8fc7\u624b\u6307\u5728\u5c4f\u5e55\u4e0a\u7684\u4e0a\u62c9\u6ed1\u52a8\u64cd\u4f5c\uff0c\u4ece\u800c\u52a0\u8f7d\u66f4\u591a\u6570\u636e\u7684\u884c\u4e3a<\/p>\n<p>app.json -&gt; window -&gt; onReachBottomDistance<\/p>\n<hr>\n<h2><strong>tabBar<\/strong><\/h2>\n<p><strong><span style=\"font-size: 16px\">\u4ec0\u4e48\u662ftabBar<\/span><\/strong><\/p>\n<ul>\n<li>tabBar\u662f\u79fb\u52a8\u7aef\u5e94\u7528\u5e38\u89c1\u7684\u9875\u9762\u6548\u679c\uff0c\u7528\u4e8e\u5b9e\u73b0\u591a\u9875\u9762\u7684\u5feb\u901f\u5207\u6362\uff0c\u5c0f\u7a0b\u5e8f\u4e2d\u5c06\u5176\u5206\u4e3a\u4fe9\u79cd\uff1a\n<ul>\n<li>\u5e95\u90e8 tabBar<\/li>\n<li>\u9876\u90e8 tabBar<\/li>\n<\/ul>\n<\/li>\n<li>\u6ce8\u610f\uff1a\n<ul>\n<li>tabBar \u4e2d\u53ea\u80fd\u914d\u7f6e\u6700\u5c112\u4e2a\uff0c\u6700\u591a5\u4e2a tab \u9875\u7b7e<\/li>\n<li>\u5f53\u6e32\u67d3\u9876\u90e8 tabBar \u65f6\uff0c\u4e0d\u663e\u793a icon\uff0c\u53ea\u663e\u793a\u6587\u672c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/232\/421\/712\/1643079035346756.png\" class=\"aligncenter\" title=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe2\" alt=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe2\" \/><\/p>\n<p><strong><span style=\"font-size: 16px\">tabBar \u7684 6 \u4e2a\u90e8\u5206<\/span><\/strong><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/591\/514\/961\/1643079039740158.png\" class=\"aligncenter\" title=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe3\" alt=\"\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\u63d2\u56fe3\" \/><\/p>\n<p><strong><span style=\"font-size: 16px\">tabBar \u5e38\u7528\u914d\u7f6e\u9879<\/span><\/strong><\/p>\n<ul>\n<li>\n<p>tabBar \u7ec4\u4ef6\u7684\u914d\u7f6e\u9879<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>position<\/td>\n<td>String<\/td>\n<td>\u5426<\/td>\n<td>bottom<\/td>\n<td>tabBar \u7684\u4f4d\u7f6e\uff0c\u4ec5\u652f\u6301&nbsp;bottom&nbsp;<\/td>\n<\/tr>\n<tr>\n<td>borderStyle<\/td>\n<td>String<\/td>\n<td>\u5426<\/td>\n<td>black<\/td>\n<td>tabbar \u4e0a\u8fb9\u6846\u7684\u989c\u8272\uff0c \u4ec5\u652f\u6301&nbsp;black&nbsp;\/&nbsp;white<\/td>\n<\/tr>\n<tr>\n<td>color<\/td>\n<td>HexColor<\/td>\n<td>\u5426<\/td>\n<td><\/td>\n<td>tabBar\u4e0a\u6587\u5b57\u7684\u9ed8\u8ba4\u989c\u8272\uff08\u672a\u9009\u4e2d\uff09<\/td>\n<\/tr>\n<tr>\n<td>selectedColor<\/td>\n<td>HexColor<\/td>\n<td>\u5426<\/td>\n<td><\/td>\n<td>tabBar\u9009\u4e2d\u65f6\u6587\u5b57\u7684\u9ed8\u8ba4\u989c\u8272<\/td>\n<\/tr>\n<tr>\n<td>backgroundColor<\/td>\n<td>HexColor<\/td>\n<td>\u5426<\/td>\n<td><\/td>\n<td>tabBar\u7684\u80cc\u666f\u8272<\/td>\n<\/tr>\n<tr>\n<td>list<\/td>\n<td>Array<\/td>\n<td>\u662f<\/td>\n<td><\/td>\n<td>tabBar\u7684\u9875\u7b7e\u5217\u8868\uff0c\u6700\u5c112\u4e2a\uff0c\u6700\u591a5\u4e2a<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<li>\n<p>\u6bcf\u4e2a tab \u9879\u7684\u914d\u7f6e\u9009\u9879<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>pagePath<\/td>\n<td>String<\/td>\n<td>\u662f<\/td>\n<td>\u9875\u9762\u8def\u5f84\uff0c\u5fc5\u987b\u5728 pages \u4e2d\u5148\u5b9a\u4e49<\/td>\n<\/tr>\n<tr>\n<td>text<\/td>\n<td>String<\/td>\n<td>\u662f<\/td>\n<td>tab \u4e0a\u6309\u94ae\u6587\u5b57<\/td>\n<\/tr>\n<tr>\n<td>iconPath<\/td>\n<td>String<\/td>\n<td>\u5426<\/td>\n<td>\u56fe\u7247\u8def\u5f84\uff0cicon \u5927\u5c0f\u9650\u5236\u4e3a 40kb\uff0c\u5efa\u8bae\u5c3a\u5bf8\u4e3a 81px * 81px\uff0c\u4e0d\u652f\u6301\u7f51\u7edc\u56fe\u7247<\/td>\n<\/tr>\n<tr>\n<td>selectedIconPath<\/td>\n<td>String<\/td>\n<td>\u5426<\/td>\n<td>\u9009\u4e2d\u65f6\u7684\u56fe\u7247\u8def\u5f84\uff0cicon \u5927\u5c0f\u9650\u5236\u4e3a 40kb\uff0c\u5efa\u8bae\u5c3a\u5bf8\u4e3a 81px * 81px\uff0c\u4e0d\u652f\u6301\u7f51\u7edc\u56fe\u7247<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<hr>\n<h2>\u9875\u9762\u914d\u7f6e\u6587\u4ef6<\/h2>\n<p><strong><span style=\"font-size: 16px\">\u9875\u9762\u914d\u7f6e\u6587\u4ef6\u7684\u4f5c\u7528<\/span><\/strong><\/p>\n<p>\u5c0f\u7a0b\u5e8f\u4e2d\uff0c\u6bcf\u4e2a\u9875\u9762\u90fd\u6709\u81ea\u5df1\u7684 .json \u914d\u7f6e\u6587\u4ef6\uff0c\u7528\u6765\u5bf9\u5f53\u524d\u9875\u9762\u7684\u7a97\u53e3\u5916\u89c2\u3001\u9875\u9762\u6548\u679c\u7b49\u8fdb\u884c\u914d\u7f6e<\/p>\n<p><strong><span style=\"font-size: 16px\">\u9875\u9762\u914d\u7f6e\u548c\u5168\u5c40\u914d\u7f6e\u7684\u5173\u7cfb<\/span><\/strong><\/p>\n<ul>\n<li>\n<p>\u5c0f\u7a0b\u5e8f\u4e2d\uff0capp.json \u4e2d\u7684 window \u8282\u70b9\uff0c\u53ef\u4ee5\u5168\u5c40\u914d\u7f6e\u5c0f\u7a0b\u5e8f\u4e2d\u6bcf\u4e2a\u9875\u9762\u7684\u7a97\u53e3\u8868\u73b0<\/p>\n<\/li>\n<li>\n<p>\u5bf9\u5c0f\u7a0b\u5e8f\u4e2d\u67d0\u4e2a\u9875\u9762\u60f3\u8981\u62e5\u6709\u7279\u6b8a\u7684\u7a97\u53e3\u8868\u73b0\uff0c\u6b64\u65f6\u9700\u8981\u5bf9\u9875\u9762\u7ea7\u522b\u7684 .json \u6587\u4ef6\u8fdb\u884c\u4fee\u6539<\/p>\n<\/li>\n<li>\n<p>\u6ce8\u610f\uff1a<\/p>\n<p>\u5f53\u9875\u9762\u914d\u7f6e\u4e0e\u5168\u5c40\u914d\u7f6e\u51b2\u7a81\u65f6\uff0c\u6839\u636e\u5c31\u8fd1\u539f\u5219\uff0c\u6700\u7ec8\u7684\u6548\u679c\u4ee5\u9875\u9762\u914d\u7f6e\u4e3a\u51c6<\/p>\n<\/li>\n<\/ul>\n<p><strong><span style=\"font-size: 16px\">\u9875\u9762\u914d\u7f6e\u4e2d\u5e38\u7528\u7684\u914d\u7f6e\u9879<\/span><\/strong><\/p>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>navigationBarBackgroundColor<\/td>\n<td>HexColor<\/td>\n<td>#000000<\/td>\n<td>\u5f53\u524d\u5bfc\u822a\u680f\u80cc\u666f\u989c\u8272<\/td>\n<\/tr>\n<tr>\n<td>navigationBarTextStyle<\/td>\n<td>String<\/td>\n<td>white<\/td>\n<td>\u5bfc\u822a\u680f\u6807\u9898\u989c\u8272\uff0c\u4ec5\u652f\u6301&nbsp;black&nbsp;\/&nbsp;white<\/td>\n<\/tr>\n<tr>\n<td>navigationBarTitleText<\/td>\n<td>String<\/td>\n<td><\/td>\n<td>\u5f53\u524d\u5bfc\u822a\u680f\u6807\u9898\u6587\u5b57\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td>backgroundColor<\/td>\n<td>HexColor<\/td>\n<td>#ffffff<\/td>\n<td>\u5f53\u524d\u7a97\u53e3\u7684\u80cc\u666f\u8272<\/td>\n<\/tr>\n<tr>\n<td>backgroundTextStyle<\/td>\n<td>String<\/td>\n<td>dark<\/td>\n<td>\u5f53\u524d\u9875\u9762\u4e0b\u62c9loading\u7684\u6837\u5f0f\uff0c\u4ec5\u652f\u6301dark\/light<\/td>\n<\/tr>\n<tr>\n<td>enablePullDownRefresh<\/td>\n<td>Boolean<\/td>\n<td>false<\/td>\n<td>\u662f\u5426\u4e3a\u5f53\u524d\u9875\u9762\u5f00\u542f\u4e0b\u62c9\u5237\u65b0<\/td>\n<\/tr>\n<tr>\n<td>onReachBottomDistance<\/td>\n<td>Number<\/td>\n<td>50<\/td>\n<td>\u9875\u9762\u4e0a\u62c9\u89e6\u5e95\u4e8b\u4ef6\u89e6\u53d1\u65f6\u8ddd\u9875\u9762\u5e95\u90e8\u8ddd\u79bb\uff0c\u5355\u4f4d\u4e3apx<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u66f4\u591a\u7f16\u7a0b\u76f8\u5173\u77e5\u8bc6\uff0c\u8bf7\u8bbf\u95ee\uff1a\uff01\uff01<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6df1\u5165\u6d45\u6790\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\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>\u672c\u7bc7\u6587\u7ae0\u5e26\u5927\u5bb6\u804a\u804a\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5168\u5c40\u914d\u7f6e\uff0c\u4e86\u89e3\u4e00\u4e0b\u5c0f\u7a0b\u5e8f\u4e2d\u7684\u5e38\u7528\u914d\u7f6e\u9879\u548c\u9875\u9762\u914d\u7f6e\u6587\u4ef6\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\uff01 \u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u53ca\u5e38\u7528\u7684\u914d\u7f6e\u9879 \u5c0f\u7a0b\u5e8f\u6839\u76ee\u5f55\u4e0b\u7684 app.json \u6587\u4ef6\u662f\u5c0f\u7a0b\u5e8f\u7684\u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u3002\u5e38\u7528\u7684\u914d\u7f6e\u5982\u4e0b\uff1a pages\uff1a\u8bb0\u5f55\u5f53\u524d\u5c0f\u7a0b\u5e8f\u6240\u6709\u9875\u9762\u7684\u5b58\u653e\u8def\u5f84 window\uff1a\u5168\u5c40\u8bbe\u7f6e\u5c0f\u7a0b\u5e8f\u7a97\u53e3\u7684\u5916\u89c2 tabBar\uff1a\u8bbe\u7f6e\u5c0f\u7a0b\u5e8f\u5e95\u90e8\u7684 tabBar \u6548\u679c style\uff1a\u662f\u5426\u542f\u7528\u65b0\u7248\u7684\u7ec4\u4ef6\u6837\u5f0f&nbsp; &nbsp;\u3010\u76f8\u5173\u5b66\u4e60\u63a8\u8350\uff1a\u3011 window \u5c0f\u7a0b\u5e8f\u7a97\u53e3\u7684\u7ec4\u6210\u90e8\u5206 window \u5e38\u7528\u914d\u7f6e\u9879 \u5c5e\u6027\u540d \u7c7b\u578b \u9ed8\u8ba4\u503c \u8bf4\u660e navigationBarTitleText String \u5b57\u7b26\u4e32 \u5bfc\u822a\u680f\u6807\u9898\u6587\u5b57\u5185\u5bb9 navigationBarBackgroundColor HexColor #000000 \u5bfc\u822a\u680f\u80cc\u666f\u989c\u8272 navigationBarTextStyle String white \u5bfc\u822a\u680f\u6807\u9898\u989c\u8272\uff0c\u4ec5\u652f\u6301black\/white backgroundColor HexColor #ffffff \u7a97\u53e3\u7684\u80cc\u666f\u8272 backgroundTextStyle String dark \u4e0b\u62c9loading\u7684\u6837\u5f0f\uff0c\u4ec5\u652f\u6301dark\/light enablePullDownRefresh Boolean false \u662f\u5426\u5168\u5c40\u5f00\u542f\u4e0b\u62c9\u5237\u65b0 onReachBottomDistance Number 50 \u9875\u9762\u4e0a\u62c9\u89e6\u5e95\u4e8b\u4ef6\u89e6\u53d1\u65f6\u8ddd\u9875\u9762\u5e95\u90e8\u7684\u8ddd\u79bb\uff0c\u5355\u4f4d\u4e3apx \u8bbe\u7f6e\u5bfc\u822a\u680f\u7684\u6807\u9898 app.json -&gt; window -&gt; navigationBarTitleText \u8bbe\u7f6e\u5bfc\u822a\u680f\u7684\u80cc\u666f\u8272 [&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-34212","post","type-post","status-publish","format-standard","hentry","category-19"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/34212","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=34212"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/34212\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=34212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=34212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=34212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}