{"id":13604018,"url":"https://github.com/hugetiny/quit-smoking","last_synced_at":"2025-05-15T13:31:37.007Z","repository":{"id":110250906,"uuid":"162898829","full_name":"hugetiny/quit-smoking","owner":"hugetiny","description":"一星好评不能再多了，我到现在都没戒烟。Taro+Taro UI","archived":false,"fork":false,"pushed_at":"2020-03-25T07:02:50.000Z","size":9046,"stargazers_count":48,"open_issues_count":0,"forks_count":17,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T09:36:12.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugetiny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-23T14:42:08.000Z","updated_at":"2025-01-07T06:46:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"165259ec-8ebd-4917-8c44-f0a86a6565b5","html_url":"https://github.com/hugetiny/quit-smoking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugetiny%2Fquit-smoking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugetiny%2Fquit-smoking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugetiny%2Fquit-smoking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugetiny%2Fquit-smoking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugetiny","download_url":"https://codeload.github.com/hugetiny/quit-smoking/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254349364,"owners_count":22056339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T19:00:38.263Z","updated_at":"2025-05-15T13:31:31.981Z","avatar_url":"https://github.com/hugetiny.png","language":"JavaScript","funding_links":[],"categories":["开源项目"],"sub_categories":["Taro1"],"readme":"\n# Quit smoking is a Taro\u0026Taro UI Demo\n\u003cimg src=\"weappcode.jpg\" width=\"200px\" /\u003e\n\n# Quit smoking的诞生\n\u003cimg src=\"quit-smoking.gif\" width=\"480px\" /\u003e\n\n\n# 安装\n\n需要安装 `Taro` 开发工具 `@tarojs/cli`\n\n```bash\nnpm install -g @tarojs/cli\n```\n\n## 编译并预览\n\n进入项目目录开始开发，可以选择小程序预览模式，或者 h5 预览模式，若使用微信小程序预览模式，则需要自行下载并打开微信开发者工具，选择预览项目根目录。\n\n**微信小程序编译预览模式**\n\n```bash\n# npm script\n$ npm run dev:weapp\n# 仅限全局安装\n$ taro build --type weapp --watch\n# npx用户也可以使用\n$ npx taro build --type weapp --watch\n```\n\n**H5 编译预览模式**\ntaro\n```bash\n# npm script\n$ npm run dev:h5\n# 仅限全局安装\n$ taro build --type h5 --watch\n# npx用户也可以使用\n$ npx taro build --type h5 --watch\n```\n\n# 适配进度\n\n- [x] H5 -- 完成\n- [x] 微信小程序 -- 完成\n- [ ] 支付宝小程序 -- 95%\n- [ ] 百度小程序 -- 25%\n- [ ] React Native -- Taro匹配RN优先级是最低的，要等\n- [ ] 字节跳动小程序 -- 0%\n- [ ] 快应用 -- 0%\n\n## 技术栈\n\nReact + Taro + Taro UI + Dva + Scss + ES6/ES7\n\n## 业务介绍\n\n目录结构\n\n    ├── .temp                  // H5编译结果目录\n    ├── .rn_temp               // RN编译结果目录\n    ├── dist                   // 小程序编译结果目录,目前所有平台小程序都会打包到这里\n    ├── config                 // Taro配置目录\n    │   ├── dev.js                 // 开发时配置\n    │   ├── index.js               // 默认配置\n    │   └── prod.js                // 打包时配置\n    ├── src                    // 源码目录\n    │   ├── components             // 公共组件\n    │   ├── config                 // 项目开发配置\n    │   ├── assets                 // 静态文件\n    │   ├── models                 // redux models\n    │   ├── pages                  // 页面文件目录\n    │   │   └── home\n    │   │       ├── index.js           // 页面逻辑\n    │   │       ├── index.scss         // 页面样式\n    │   │       └── service.js        // 页面api\n    │   ├── styles             // 样式文件\n    │   ├── utils              // 常用工具类\n    │   ├── app.js             // 入口文件\n    │   └── index.html\n    └── package.json\n\n\n\n\n\n# 文档\n\n### Taro开发文档\n\n\u003e https://nervjs.github.io\n\n### dva开发文档\n\n\u003e https://dvajs.com\n\n### Taro UI开发文档\n\n\u003e https://taro-ui.aotu.io\n\n### 微信小程序开发文档\n\n\u003e https://developers.weixin.qq.com/miniprogram/dev\n\n### 支付宝小程序开发文档\n\n\u003e https://docs.alipay.com/mini/developer/\n\n### 钉钉小程序开发文档\n\n\u003e https://open-doc.dingtalk.com/\n\n### 百度小程序开发文档\n\n\u003e https://smartprogram.baidu.com/docs/develop/tutorial/codedir/\n\n\n\n\n\u003cimg src=\"wechatsponse.jpeg\" width=\"200px\" /\u003e \n\u003cimg src=\"alipaysponse.jpeg\" width=\"200px\" /\u003e\n\nTaro UI一直不支持RN这点让我放弃了继续维护的动力\n一个官方的UI框架都不能完全支持官方本身的框架的话，那真的很鸡肋\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugetiny%2Fquit-smoking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugetiny%2Fquit-smoking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugetiny%2Fquit-smoking/lists"}