{"id":13601755,"url":"https://github.com/mini-mpvue/mpvue-douban","last_synced_at":"2026-01-14T16:55:23.736Z","repository":{"id":31258895,"uuid":"127271052","full_name":"mini-mpvue/mpvue-douban","owner":"mini-mpvue","description":"基于 mpvue 实现豆瓣电影微信小程序 @zce","archived":false,"fork":false,"pushed_at":"2022-12-08T00:37:25.000Z","size":14815,"stargazers_count":289,"open_issues_count":24,"forks_count":83,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-30T12:28:47.195Z","etag":null,"topics":["douban","film","mini-program","mpvue","mpvue-douban","mpvue-douban-movie","wx"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/mini-mpvue.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}},"created_at":"2018-03-29T09:45:06.000Z","updated_at":"2025-01-10T09:03:50.000Z","dependencies_parsed_at":"2023-01-14T18:45:30.907Z","dependency_job_id":null,"html_url":"https://github.com/mini-mpvue/mpvue-douban","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mini-mpvue/mpvue-douban","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mini-mpvue%2Fmpvue-douban","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mini-mpvue%2Fmpvue-douban/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mini-mpvue%2Fmpvue-douban/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mini-mpvue%2Fmpvue-douban/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mini-mpvue","download_url":"https://codeload.github.com/mini-mpvue/mpvue-douban/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mini-mpvue%2Fmpvue-douban/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28427110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"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":["douban","film","mini-program","mpvue","mpvue-douban","mpvue-douban-movie","wx"],"created_at":"2024-08-01T18:01:07.568Z","updated_at":"2026-01-14T16:55:23.717Z","avatar_url":"https://github.com/mini-mpvue.png","language":"JavaScript","funding_links":[],"categories":["示例"],"sub_categories":["目录"],"readme":"# mpvue-douban\n\n\u003e 基于 mpvue 实现豆瓣电影微信小程序\n\n其他实现：\n\n[基于 taro 实现豆瓣电影微信小程序](https://github.com/mini-mpvue/taro-douban)\n\n\n## 演示\n\n![mpvue-douban](mpvue-douban.gif)\n\n## 运行\n\n```bash\n# 基本本地代理1\nnpm run dev\n```\n\n### 基于本地代理2\n\n```bash\nnpm run dev:proxy2\n```\n\n## 目录结构\n\n```bash\n|__ douban                                    # 本地代理\n    |__ app.js                                  # 方式 1\n    |__ proxy.js                                # 方式 2\n|__ src\n    |__ App.vue\n    |__ components                            # 组件\n      |__ movie-item.vue                        # 电影列表项\n      |__ movie-list.vue                        # 电影列表\n    |__ main.js\n    |__ pages\n      |__ board                               # 榜单\n        |__ index.vue\n        |__ main.js\n      |__ item                                # 电影详情\n        |__ index.vue\n        |__ main.js\n      |__ list                                # 电影列表\n        |__ index.vue\n        |__ main.js\n      |__ profile                             # 关于我\n        |__ index.vue\n        |__ main.js\n      |__ search                              # 电影搜索\n        |__ index.vue\n        |__ main.js\n      |__ splash                              # 启动页面\n        |__ index.vue\n        |__ main.js\n    |__ store                                 # vuex\n      |__ index.js                              # 全局\n      |__ modules                               # 模块\n        |__ item.js                               # 电影详情-\u003e对应 pages/item\n      |__ mutations-type.js                     # mutations 常量\n    |__ utils                                 # 工具\n      |__ api.js                                # 豆瓣 api\n      |__ index.js                              # 工具方法\n      |__ request.js                            # flyio 配置\n      |__ wechat.js                             # 微信小程序 api\n      |__ wx.js                                 # wx\n|__ static                                    # 静态资源\n    |__ .gitkeep\n    |__ images                                  # 图片\n      |__ *.{png,jpg,gif,jpeg}\n```\n\n## 构建\n\n``` bash\n# 安装依赖\nnpm install\n\n# 开发\nnpm run dev\n\n# 基于本地代理1 开发\nnpm run dev:proxy1\n\n# 基于本地代理2 开发\nnpm run dev:proxy2\n\n# 基于nginx 代理开发\nnpm run dev:nginx\n\n# 生产\nnpm run build\n\n# 生产分析图表\nnpm run build --report\n\n# 启动本地代理1\nnpm run proxy1\n\n# 启动本地代理2\nnpm run proxy2\n```\n\n## 代理\n\n### Nginx 代理：\n\n`src/utils/request.js`\n\n```javascript\nrequest.config.baseURL = 'https://movie.douban.gusaifei.com/v2/movie'\n```\n\n随着应用一起启动\n\n### 本地代理：\n\n`douban/app.js`\n\n```bash\nnpm run proxy1\n```\n\n`douban/proxy.js`\n\n```bash\nnpm run proxy2\n```\n\n需要借助 npm scripts 启动，或者进入到 `douban` 目录，运行 `node app.js` 或 `node proxy.js`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmini-mpvue%2Fmpvue-douban","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmini-mpvue%2Fmpvue-douban","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmini-mpvue%2Fmpvue-douban/lists"}