{"id":18798839,"url":"https://github.com/rttmoa/react-redux-dianping","last_synced_at":"2026-04-13T13:32:47.586Z","repository":{"id":142403443,"uuid":"599647492","full_name":"rttmoa/react-redux-dianping","owner":"rttmoa","description":"dianping-h5","archived":false,"fork":false,"pushed_at":"2024-09-09T03:37:28.000Z","size":35812,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-21T19:53:36.951Z","etag":null,"topics":["koa","less","react-redux","reactjs"],"latest_commit_sha":null,"homepage":"","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/rttmoa.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":"2023-02-09T15:31:11.000Z","updated_at":"2024-09-09T02:44:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"9ab856e7-5ca9-44cc-8081-e8f4f65a18e1","html_url":"https://github.com/rttmoa/react-redux-dianping","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rttmoa/react-redux-dianping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rttmoa%2Freact-redux-dianping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rttmoa%2Freact-redux-dianping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rttmoa%2Freact-redux-dianping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rttmoa%2Freact-redux-dianping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rttmoa","download_url":"https://codeload.github.com/rttmoa/react-redux-dianping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rttmoa%2Freact-redux-dianping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31754986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T13:27:56.013Z","status":"ssl_error","status_checked_at":"2026-04-13T13:21:23.512Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["koa","less","react-redux","reactjs"],"created_at":"2024-11-07T22:13:07.403Z","updated_at":"2026-04-13T13:32:47.560Z","avatar_url":"https://github.com/rttmoa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 项目目录\n\n**安装：**`npm install`\n\n**启动：**`npm run mock \u0026 npm start`\n\n**改动程序需多次重启服务**\n\n**项目已备份**\n\n**[Url](https://coding.imooc.com/class/chapter/313.html#Anchor](https://coding.imooc.com/class/chapter/313.html#Anchor))**\n\n* [X] 端口：本地(8080)，Mock(3000)\n* [X] Webpack配置(开发与生产环境)\n* [X] Class组件开发\n* [X] 路由跳转 及 请求参数\n* [X] 全局Less、IconFont图标(eot,svg,ttf,woff)的配置：[icomoon](https://icomoon.io/app/#/select)\n* [X] 轮播图 | 超值特惠 | 猜你喜欢 本地图片渲染 \u0026  远程地址(error)\n* [X] import * as Name from \"\"\n\n  ```\n  import * as userInfoActionsFromOtherFile from'../actions/userinfo'\n  asuserInfoActionsFromOtherFilefrom： {__esModule: true, update: ƒ, User: ƒ}\n  导出所有as名称 可以使用所有属性方法\n  ```\n* [X] Redux使用\n\n  ```\n  export default connect( mapStateToProps, mapDispatchToProps )(Home)\n  ```\n* [X] Login页面登陆后、刷新页面、Redux数据消失 --\u003e 解决办法  1、使用localstoreage  2、redux持久化(persist)\n* [X] Login页面父子组件传值\n* [X] User页面组件封装(订单评价)\n* [X] User页面订单列表接口 \u0026 提交评论接口\n* [X] City页面\n\n  ```\n  Redux取值、Redux储存、localstoreage存储、history跳转\n  ```\n* [X] Search页面\n\n  ```\n  window.history.back()\n  hashHistory.push('/search/all/' + encodeURIComponent(value))\n  /api/search/0/北京/all/UserName长\n  根据城市名+文章+关键词发请求\n  滚动加载 获取数据 重新渲染\n  处理重新搜索：componentDidUpdate(prevProps, prevState) {\n  \tif (keyword === prevProps.keyword \u0026\u0026 category === prevProps.category) { return } \n  }\n  节流函数、滚动加载 \u003cLoadMore /\u003e组件   |  window.addEventListener('scroll', function () {}\n  ```\n* [X] Detail页面\n\n  ```\n  购买拦截：hashHistory.push('/Login/' + encodeURIComponent('/detail/' + id))\n  \t \u003cRoute path='/Login(/:router)' component={Login}/\u003e\n  获取首页数据:    /api/detail/comment/1/5889520870693865\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frttmoa%2Freact-redux-dianping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frttmoa%2Freact-redux-dianping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frttmoa%2Freact-redux-dianping/lists"}