{"id":67347,"date":"2026-03-09T15:29:44","date_gmt":"2026-03-09T07:29:44","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/?p=67347"},"modified":"2026-03-09T15:29:44","modified_gmt":"2026-03-09T07:29:44","slug":"%e5%bf%ab%e5%ba%94%e7%94%a8%e6%89%93%e5%8c%85%e6%9c%89%e5%93%aa%e4%ba%9b%e5%8a%9e%e6%b3%95%e4%bb%8b%e7%bb%8d","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appkaifa\/67347.html","title":{"rendered":"\u5feb\u5e94\u7528\u6253\u5305\u6709\u54ea\u4e9b\u529e\u6cd5\u4ecb\u7ecd"},"content":{"rendered":"<p>\u5feb\u5e94\u7528\u6253\u5305\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd<\/p>\n<p>\u5feb\u5e94\u7528\uff0c\u53c8\u79f0\u4e3aQuick App\uff0c\u662f\u4e00\u79cd\u65b0\u578b\u7684\u5e94\u7528\u5f62\u6001\uff0c\u5b83\u4ee5\u8f7b\u91cf\u7ea7\u7684\u5f62\u5f0f\u63d0\u4f9b\u4e86\u5ab2\u7f8e\u539f\u751f\u5e94\u7528\u7684\u7528\u6237\u4f53\u9a8c\u3002\u7528\u6237\u65e0\u9700\u4e0b\u8f7d\u5b89\u88c5\u5373\u53ef\u4f7f\u7528\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u5e94\u7528\u7684\u4f7f\u7528\u95e8\u69db\u3002\u5feb\u5e94\u7528\u4e3b\u8981\u4f9d\u8d56\u4e8e\u624b\u673a\u64cd\u4f5c\u7cfb\u7edf\u7684\u652f\u6301\uff0c\u76ee\u524d\u5df2\u7ecf\u5f97\u5230\u4e86\u534e\u4e3a\u3001\u5c0f<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-04\/06\/11\/17983474345.jpg\" \/><\/figure>\n<\/p>\n<p>\u7c73\u3001OPPO\u3001vivo\u7b49\u4e3b\u6d41\u5382\u5546\u7684\u652f\u6301\u3002<\/p>\n<p>\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5feb\u5e94\u7528\u7684\u6253\u5305\u539f\u7406\u53ca\u8fc7\u7a0b\u3002<\/p>\n<p>\u4e00\u3001\u5feb\u5e94\u7528\u6253\u5305\u539f\u7406<\/p>\n<p>\u5feb\u5e94\u7528\u6253\u5305\u7684\u6838\u5fc3\u76ee\u7684\u662f\u5c06\u5f00\u53d1\u8005\u7f16\u5199\u7684\u6e90\u4ee3\u7801\u3001\u8d44\u6e90\u6587\u4ef6\u548c\u914d\u7f6e\u4fe1\u606f\u8fdb\u884c\u7ec4\u7ec7\u3001\u538b\u7f29\u548c\u4f18\u5316\uff0c\u6700\u7ec8\u751f\u6210\u4e00\u4e2a\u4ee5.rpk\u4e3a\u540e\u7f00\u540d\u7684\u5e94\u7528\u5305\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u5c06\u88ab\u5e94\u7528\u5546\u5e97\u8bc6\u522b\u548c\u5904\u7406\uff0c\u4f9b\u7528\u6237\u4f7f\u7528\u3002<\/p>\n<p>1. \u6e90\u4ee3\u7801\u7f16\u8bd1<\/p>\n<p>\u5f00\u53d1\u8005\u4f7f\u7528\u5feb\u5e94\u7528\u7684\u5f00\u53d1\u6846\u67b6\u7f16\u5199\u6e90\u4ee3\u7801\uff08\u5305\u62ecJavaScript\u3001CSS\u548cHTML\uff09\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u5728.vue\u6587\u4ef6\u4e2d\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u5de5\u5177\u4f1a\u5bf9\u8fd9\u4e9b\u6e90\u4ee3\u7801\u8fdb\u884c\u7f16\u8bd1\u548c\u8f6c\u6362\uff0c\u751f\u6210\u7528\u4e8e\u8fd0\u884c\u5728\u624b\u673a\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u7684\u5feb\u5e94\u7528\u4ee3\u7801\u3002<\/p>\n<p>2. \u8d44\u6e90\u6587\u4ef6\u5904\u7406<\/p>\n<p>\u5feb\u5e94\u7528\u7684\u8d44\u6e90\u6587\u4ef6\u4e3b\u8981\u5305\u62ec\u56fe\u7247\u3001\u97f3\u9891\u3001\u89c6\u9891\u7b49\u3002\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\uff0c\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\u4f1a\u88ab\u538b\u7f29\u3001\u4f18\u5316\u548c\u91cd\u65b0\u7ec4\u7ec7\uff0c\u4ee5\u4fbf\u5728\u624b\u673a\u8bbe\u5907\u4e0a\u4ee5\u6700\u4f73\u7684\u6027\u80fd\u663e\u793a\u548c\u64ad\u653e\u3002<\/p>\n<p>3. \u914d\u7f6e\u4fe1\u606f\u5904\u7406<\/p>\n<p>\u5feb\u5e94\u7528\u7684\u914d\u7f6e\u4fe1\u606f\u5305\u62ec\u5e94\u7528\u7684\u540d\u79f0\u3001\u56fe\u6807\u3001\u7248\u672c\u53f7\u3001\u6743\u9650\u3001\u9875\u9762\u8def\u7531\u7b49\u3002\u8fd9\u4e9b\u4fe1\u606f\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\u9700\u8981\u88ab\u63d0\u53d6\u548c\u6574\u7406\uff0c\u751f\u6210\u4e00\u4e2amanifest.json\u6587\u4ef6\uff0c\u4f9b\u5e94\u7528\u5546\u5e97\u548c\u624b\u673a\u64cd\u4f5c\u7cfb\u7edf\u5904\u7406\u3002<\/p>\n<p>\u4e8c\u3001\u5feb\u5e94\u7528\u6253\u5305\u8be6\u7ec6\u8fc7\u7a0b<\/p>\n<p><a href=\"https:\/\/appfengzhuang.yimenapp.com\/app-412.html\">\u5c01app<\/a>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5feb\u5e94\u7528\u7684\u6253\u5305\u8fc7\u7a0b\uff0c\u5305\u62ec\u6253\u5305\u6240\u9700\u7684\u73af\u5883\u3001\u5de5\u5177\u548c\u64cd\u4f5c\u6b65\u9aa4\u3002<\/p>\n<p>1. \u6253\u5305\u73af\u5883\u548c\u5de5\u5177<\/p>\n<p>\u5feb\u5e94\u7528\u7684\u6253\u5305\u9700\u8981\u57fa\u4e8eNode.js\u73af\u5883\uff0c\u786e\u4fdd\u5b89\u88c5\u4e86Node.js\uff08&gt;=v10.0.0\uff09\u548cnpm\uff08&gt;=v5.0.0\uff09\u3002\u6253\u5305\u5de5\u5177\u4e3a\u5feb\u5e94\u7528\u5b98\u65b9\u63d0\u4f9b\u7684hap-toolkit\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>npm install -g hap-toolkit<\/p>\n<p>&#8220;`<\/p>\n<p>2. \u521d\u59cb\u5316\u9879\u76ee<\/p>\n<p>\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u5feb\u5e94\u7528\u9879\u76ee\u3002\u5728\u547d\u4ee4\u884c\u5de5\u5177\u4e2d\uff0c\u8fdb\u5165\u5230\u5e0c\u671b\u521b\u5efa\u9879\u76ee\u7684\u6587\u4ef6\u5939\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>hap init [\u9879\u76ee\u540d]<\/p>\n<p>&#8220;`<\/p>\n<p>\u9879\u76ee\u521d\u59cb\u5316\u540e\uff0c\u4f1a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a[\u9879\u76ee\u540d]\u7684\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u7cfb\u5217\u5feb\u5e94\u7528\u9879\u76ee\u7684\u57fa\u672c\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u3002<\/p>\n<p>3. \u5f00\u59cb\u6253\u5305<\/p>\n<p>\u8fdb\u5165\u521a\u521a\u521b\u5efa\u7684\u9879\u76ee\u6587\u4ef6\u5939\uff0c\u7136\u540e\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>cd [\u9879\u76ee\u540d]<\/p>\n<p>npm install<\/p>\n<p>npm run build<\/p>\n<p>&#8220;`<\/p>\n<p>4. \u6253\u5305\u5b8c\u6210<\/p>\n<p>\u6253\u5305\u5b8c\u6210\u540e\uff0c\u4f1a\u5f97\u5230\u4e00\u4e2a\u540d\u4e3adist\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e2a\u4ee5.rpk\u4e3a\u540e\u7f00\u540d\u7684\u5e94\u7528\u5305\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u5373\u4e3a\u6700\u7ec8\u7684\u5feb\u5e94\u7528\u3002<\/p>\n<p>5. \u4e0a\u4f20\u5e94\u7528\u5546\u5e97<\/p>\n<p>\u5c06\u751f\u6210\u7684.rpk\u6587\u4ef6\u4e0a\u4f20\u5230\u5404\u5927\u5e94\u7528\u5546\u5e97\uff0c\u7528\u6237\u4fbf\u53ef\u4ee5\u5728\u624b\u673a\u4e0a\u65e0\u9700\u5b89\u88c5\u5373\u53ef\u8bd5\u7528\u8be5\u5feb\u5e94\u7528\u3002<\/p>\n<p>\u5feb\u5e94\u7528\u7684\u6253\u5305\u8fc7\u7a0b\u8ba9\u5f00\u53d1\u8005\u66f4\u52a0\u4e13<a href=\"https:\/\/appfengzhuang.yimenapp.com\/app-1047.html\">\u5982\u4f55\u5236\u4f5capp\u5e73\u53f0<\/a>\u6ce8\u4e8e\u5b9e\u9645\u7684\u529f\u80fd\u5b9e\u73b0\uff0c\u800c\u65e0\u9700\u8fc7\u591a\u5173\u6ce8\u5e95\u5c42\u6280\u672f\u7ec6\u8282\u3002\u968f\u7740\u5feb\u5e94\u7528\u751f\u6001\u7684\u4e0d\u65ad\u6210\u719f\uff0c\u76f8\u4fe1\u672a\u6765\u4f1a\u6709\u8d8a\u6765\u8d8a\u591a\u7684\u5e94\u7528\u9009\u62e9\u4ee5\u5feb\u5e94\u7528\u7684\u5f62\u5f0f\u9762\u5411\u7528\u6237\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5feb\u5e94\u7528\u6253\u5305\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd\u5feb\u5e94\u7528\uff0c\u53c8\u79f0\u4e3aQuick App\uff0c\u662f\u4e00\u79cd\u65b0\u578b\u7684\u5e94\u7528\u5f62\u6001\uff0c\u5b83\u4ee5\u8f7b\u91cf\u7ea7\u7684\u5f62\u5f0f\u63d0\u4f9b\u4e86\u5ab2\u7f8e\u539f\u751f\u5e94\u7528\u7684\u7528\u6237\u4f53\u9a8c\u3002\u7528\u6237\u65e0\u9700\u4e0b\u8f7d\u5b89\u88c5\u5373\u53ef\u4f7f\u7528\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u5e94\u7528\u7684\u4f7f\u7528\u95e8\u69db\u3002\u5feb\u5e94\u7528\u4e3b\u8981\u4f9d\u8d56\u4e8e\u624b<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[305,39242,802,3490,1220],"class_list":["post-67347","post","type-post","status-publish","format-standard","hentry","category-appkaifa","tag-discuzapp","tag-webapp","tag-802","tag-3490","tag-1220"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/67347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=67347"}],"version-history":[{"count":1,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/67347\/revisions"}],"predecessor-version":[{"id":67414,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/67347\/revisions\/67414"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=67347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=67347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=67347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}