{"id":13338066,"url":"https://github.com/pibigstar/wx-todo","last_synced_at":"2026-03-02T23:37:15.533Z","repository":{"id":94921309,"uuid":"162696570","full_name":"pibigstar/wx-todo","owner":"pibigstar","description":"微信小程序todo，前端","archived":false,"fork":false,"pushed_at":"2019-06-06T12:29:46.000Z","size":641,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-01T15:46:57.716Z","etag":null,"topics":["chart","movable-area","todo","weui","wx","wxcharts"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pibigstar.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-21T09:48:09.000Z","updated_at":"2024-06-16T06:52:12.000Z","dependencies_parsed_at":"2023-07-11T23:15:33.959Z","dependency_job_id":null,"html_url":"https://github.com/pibigstar/wx-todo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pibigstar/wx-todo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibigstar%2Fwx-todo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibigstar%2Fwx-todo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibigstar%2Fwx-todo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibigstar%2Fwx-todo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pibigstar","download_url":"https://codeload.github.com/pibigstar/wx-todo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pibigstar%2Fwx-todo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001101,"owners_count":26082991,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["chart","movable-area","todo","weui","wx","wxcharts"],"created_at":"2024-07-29T19:15:29.726Z","updated_at":"2025-10-09T08:20:35.300Z","avatar_url":"https://github.com/pibigstar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 任务发布系统微信小程序端\n\n## 项目截图\n\n\n![个人页面](https://github.com/pibigstar/wx-todo/blob/master/screenshot/me.png)\n![todo列表](https://github.com/pibigstar/wx-todo/blob/master/screenshot/todo.png)\n![左滑修改](https://github.com/pibigstar/wx-todo/blob/master/screenshot/todo2.png)\n![任务总览](https://github.com/pibigstar/wx-todo/blob/master/screenshot/task.png)\n\n## API接口封装\n\n### 抽取request请求\n\n抽取出来请求之后你可以在内部加一些逻辑判断，比如是否登录，或者收集formId之类的。\n\n```javascript\nconst apiRequest = (url, method, data) =\u003e {\n  var promise = new Promise(function (resolve, reject) {\n    wx.request({\n      url: domain + url,\n      data: data,\n      method: method,\n      header: {\"todo-token\": token},\n      success: function (res) {\n        console.log(res);\n        if (res.statusCode === 200) {\n           resolve(res.data);\n        } else {\n          reject({ errormsg: '服务器内部错误，请稍后重试', code: res.statusCode });\n        }\n      },\n      fail: function (res) {\n        // 调用接口失败\n        reject({ errormsg: '网络错误,请稍后重试', code: 0 });\n      }\n    })\n  });\n  return promise;\n};\n\n```\n### 使用\n\n```javascript\n// 引入util\nconst util = require(\"../../utils/util.js\")\n\n// 获取用户信息\ngetUserInfo: function(){\nutil.apiRequest(\"user/info\", \"get\").then(data =\u003e {\n  if (data.Code == 200) {\n\tconsole.log(data.Data)\n  }\n})\n},\n```\n\n## 相关项目\n\n- [任务发布系统后端-go语言编写](https://github.com/pibigstar/go-todo)\n- [任务发布系统小程序端](https://github.com/pibigstar/wx-todo)\n- [任务发布系统后端-react编写](https://github.com/pibigstar/admin-todo)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpibigstar%2Fwx-todo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpibigstar%2Fwx-todo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpibigstar%2Fwx-todo/lists"}