{"id":18052894,"url":"https://github.com/minooo/cra-antm-mobx","last_synced_at":"2025-04-05T07:43:56.648Z","repository":{"id":87399078,"uuid":"141534545","full_name":"minooo/CRA-ANTM-MOBX","owner":"minooo","description":"create-react-app antd-mobile mobx","archived":false,"fork":false,"pushed_at":"2018-07-19T09:45:07.000Z","size":165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T15:32:30.163Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minooo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-19T06:31:48.000Z","updated_at":"2018-07-19T09:45:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bd36972-7457-4775-ba9e-19f23e432ba6","html_url":"https://github.com/minooo/CRA-ANTM-MOBX","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/minooo%2FCRA-ANTM-MOBX","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minooo%2FCRA-ANTM-MOBX/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minooo%2FCRA-ANTM-MOBX/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minooo%2FCRA-ANTM-MOBX/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minooo","download_url":"https://codeload.github.com/minooo/CRA-ANTM-MOBX/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305901,"owners_count":20917203,"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-10-30T23:13:31.494Z","updated_at":"2025-04-05T07:43:56.615Z","avatar_url":"https://github.com/minooo.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CRA-ANTM-MOBX\ncreate-react-app antd-mobile mobx\n\n#嘟嘟插件项目前端移动端模板\n\n## 参考\n\n* [react 文档](https://reactjs.org/docs/context.html)\n* [create-react-app 文档](https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#making-a-progressive-web-app)\n* [react-router 文档](https://reacttraining.com/react-router/web/guides/philosophy)\n* [mobx 文档](https://cn.mobx.js.org/)\n* [antd-mobile 文档](https://mobile.ant.design/docs/react/introduce-cn)\n* 前期没图片的情况下，一律使用这个格式的图片，https://dummyimage.com/600x400，自定义图片参照这个格式 想玩点花样可以 https://dummyimage.com/600x400/ff0/f00\u0026text=plugin\n* 人民币的符号统一使用 `¥`\n* 填坑大全之如果支付出现问题，首先排查 Window.AppConfig.wx.jsConfig 是否有值，然后看url中#前面是否有 ?index, 最后是调起支付时，传的支付参数是否对应。\n\n```\n// 开发\nnpm start\n\n// 打包\nnpm run build\n```\n\n## 一些必要讲解的\n- 支持直接引入图片\n```js\nimport React from 'react';\nimport logo from './logo.png'; // Tell Webpack this JS file uses this image\n\nconsole.log(logo); // /logo.84287d09.png\n\nfunction Header() {\n  // Import result is the URL of your image\n  return \u003cimg src={logo} alt=\"Logo\" /\u003e;\n}\n\nexport default Header;\n```\n\n## 后端约定\n\n以下建议是根据近期项目开发总结而来，请各位务必认真对待。有问题随时提，我们要将此作为今后的约定规范\n\n* 所有请求的数据统一用 data 作为键名\n\n* 请求数据的状态字段为 errcode（0 表示成功，其他后端商定），值类型必须为数字；消息字段为 msg，值类型必须为字符串，这俩字段每个接口都必须返回。\n\n* 一些极常用的约定字段关于物的标题，副标题，内容 分别为 ：title, caption, con；关于人的标题，副标题，内容 分别为 ：nickname (real_name, 如果需要）, intro, con，产品/人物 的 id 是必须的，创建时间 created_time (其他涉及时间的，统一用 xxx_time 的格式) 手机号 mobile 地址 address\n  缩略图 thumb (thumb 统一用于列表中的图片字段，image(s)用于详情里的图片)，头像，avatar，价格 price (优惠价：low_price)\n  其他字段，按需发挥，但是尽量简明扼要，统一下划线命名","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminooo%2Fcra-antm-mobx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminooo%2Fcra-antm-mobx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminooo%2Fcra-antm-mobx/lists"}