{"id":13756626,"url":"https://github.com/leancloud/leantodo-weapp","last_synced_at":"2025-04-07T07:12:41.569Z","repository":{"id":47257962,"uuid":"74035158","full_name":"leancloud/leantodo-weapp","owner":"leancloud","description":"LeanTodo implemented with Weapp","archived":false,"fork":false,"pushed_at":"2021-09-06T11:53:25.000Z","size":1219,"stargazers_count":331,"open_issues_count":4,"forks_count":83,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-03-31T06:03:02.646Z","etag":null,"topics":["demo","leancloud","weapp"],"latest_commit_sha":null,"homepage":"https://leancloud.cn/docs/weapp.html","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/leancloud.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}},"created_at":"2016-11-17T14:34:26.000Z","updated_at":"2024-09-24T09:04:39.000Z","dependencies_parsed_at":"2022-08-23T16:50:39.947Z","dependency_job_id":null,"html_url":"https://github.com/leancloud/leantodo-weapp","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/leancloud%2Fleantodo-weapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleantodo-weapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleantodo-weapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2Fleantodo-weapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/leantodo-weapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608153,"owners_count":20965952,"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":["demo","leancloud","weapp"],"created_at":"2024-08-03T11:00:49.562Z","updated_at":"2025-04-07T07:12:41.537Z","avatar_url":"https://github.com/leancloud.png","language":"JavaScript","readme":"# LeanTodo × 微信 / QQ 小程序\n\n\u003cimg width=\"250\" src=\"https://cloud.githubusercontent.com/assets/175227/20561252/b2fad728-b1b8-11e6-8d8e-a040bcac3e3c.png\"\u003e \u003cimg width=\"250\" src=\"https://cloud.githubusercontent.com/assets/175227/22677128/4912c060-ed2b-11e6-94d0-5a836de3b109.png\"\u003e \u003cimg width=\"250\" src=\"https://cloud.githubusercontent.com/assets/175227/20561251/b2cd82fa-b1b8-11e6-9783-afb868c9103e.png\"\u003e\n\n使用 LeanCloud 存储 SDK 在微信 / QQ 小程序平台上实现的 LeanTodo 应用。通过这个 demo 你可以学到：\n\n- 如何使用存储 SDK 对云端数据进行查询、增加、修改与删除\n- 查询结果为一个列表时，如何将其绑定到视图层进行展示以及如何在点击事件中得到对应的数组项\n- 如何使用 LiveQuery 实现对查询结果的实时更新\n- 如何自动登录 LeanCloud 用户系统\n- 如何在登录后设置帐号与密码以供用户在其他平台的 LeanTodo 应用上登录\n- 如何实现微信支付（需配合 [后端](https://url.leanapp.cn/weapp-pay-backend)）\n- 如何实现下拉刷新\n\n你可以通过微信 / QQ 扫描以下二维码进入 demo。\n\n\u003cimg src=\"https://user-images.githubusercontent.com/175227/72146568-b839c380-33d7-11ea-8ec0-abc46412ab64.jpg\" alt=\"LeanTodo Weapp QR\" width=\"250\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/175227/72147317-35b20380-33d9-11ea-9263-0d1bfe1614f3.png\" alt=\"LeanTodo QQ App QR\" width=\"250\"\u003e\n\n### 本地运行\n你也可以获取源码通过微信 / QQ 开发者工具本地进行本地运行：\n\n1. 按照 [文档 - 准备工作](https://leancloud.cn/docs/weapp.html#准备工作) 的说明，完成准备工作。\n2. 按照 [文档 - 一键登录](https://leancloud.cn/docs/weapp.html#一键登录) 的说明，在 LeanCloud 控制台配置小程序的 AppID 与 AppSecret。\n3. clone 本项目代码，导入微信 / QQ 开发者工具。\n4. 打开 app.js，将初始化 SDK 代码（`AV.init()`）中的 `appId` 、`appKey` 、`serverURL` 替换为你的 LeanCloud 应用的 AppID 、AppKey 、ServerURL。\n5. 如果要调试打赏（支付）功能，需要先按照 [后端](https://url.leanapp.cn/weapp-pay-backend) repo 的说明将其正确部署到云引擎中。\n","funding_links":[],"categories":["Demo","JavaScript"],"sub_categories":["数据接口有问题"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fleantodo-weapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2Fleantodo-weapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fleantodo-weapp/lists"}