{"id":13783485,"url":"https://github.com/yangyuji/h5-factory","last_synced_at":"2025-05-11T19:31:04.491Z","repository":{"id":35863800,"uuid":"178355802","full_name":"yangyuji/h5-factory","owner":"yangyuji","description":"h5制作，移动端专题活动页面可视化编辑","archived":false,"fork":false,"pushed_at":"2023-03-03T17:56:30.000Z","size":27168,"stargazers_count":820,"open_issues_count":23,"forks_count":225,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-08-03T19:07:53.364Z","etag":null,"topics":["h5-creater","h5-editor","h5-factory","low-code"],"latest_commit_sha":null,"homepage":"https://yangyuji.github.io/h5-factory/","language":"Vue","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/yangyuji.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}},"created_at":"2019-03-29T07:34:49.000Z","updated_at":"2024-08-02T09:58:24.000Z","dependencies_parsed_at":"2023-01-16T07:59:15.802Z","dependency_job_id":"bacc509e-ab01-4d15-917f-806f8d0338e4","html_url":"https://github.com/yangyuji/h5-factory","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/yangyuji%2Fh5-factory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangyuji%2Fh5-factory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangyuji%2Fh5-factory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangyuji%2Fh5-factory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangyuji","download_url":"https://codeload.github.com/yangyuji/h5-factory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225086503,"owners_count":17418737,"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":["h5-creater","h5-editor","h5-factory","low-code"],"created_at":"2024-08-03T19:00:22.733Z","updated_at":"2024-11-17T20:30:37.807Z","avatar_url":"https://github.com/yangyuji.png","language":"Vue","funding_links":[],"categories":["Vue","![Open Source Love svg3](https://badges.frapsoft.com/os/v3/open-source.svg?v=103)","精选 LessCode 项目"],"sub_categories":[],"readme":"\n# h5-factory\n![GitHub forks](https://img.shields.io/github/forks/yangyuji/h5-factory)\n![GitHub stars](https://img.shields.io/github/stars/yangyuji/h5-factory)\n![GitHub MIT](https://img.shields.io/github/license/yangyuji/h5-factory)\n\n\u003e h5专题页面可视化编辑工具，拖拽编辑，灵活切换，一键生成html文件\n\n## Build Setup\n``` bash\n# install dependencies\nnpm install\n\n# serve with hot reload at localhost:9999\nnpm run dev\n\n# build for production with minification\nnpm run build\n\n# build report\nnpm run build:report\n```\n\n### 组件\n* 文本\n* 图片\n* 表单\n* 轮播图\n* 底部导航\n* 楼层导航\n* 倒计时\n* 横向滚动\n* 滚动新闻\n* 金刚位\n* ...\n\n### 消费使用\n我的消费端页面模板例子，仅供参考：\n``` bash\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003cmeta charset=\"UTF-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0\"\u003e\n    \u003cmeta content=\"telephone=no,email=no\" name=\"format-detection\"\u003e\n    \u003cmeta http-equiv=\"Cache-Control\" content=\"no-siteapp\"\u003e\n    \u003cmeta http-equiv=\"Pragma\" content=\"no-cache\"\u003e\n    \u003cmeta http-equiv=\"Expires\" content=\"0\"\u003e\n    \u003cmeta name=\"keywords\" content=\"\u003c!--shareTitle--\u003e\"\u003e\n    \u003cmeta name=\"description\" content=\"\u003c!--shareDesc--\u003e\"\u003e\n    \u003clink rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\"\u003e\n    \u003clink rel=\"dns-prefetch\" href=\"//域名\"\u003e\n    \u003ctitle\u003e\u003c!--pageName--\u003e\u003c/title\u003e\n    // 页面配置信息里的样式\n    \u003cstyle\u003e\n      body {\n        background-color: #fff;\n        background-image: url();\n        background-repeat: no-repeat;\n      }\n    \u003c/style\u003e\n\t  // 根据用到的组件添加style\n    \u003clink ref=\"stylesheet\" href=\"/css/swiper.min.css,form.min.css\"/\u003e\n    // 优先执行的js\n    \u003cscript type=\"text/javascript\"\u003e\n\t      // 页面全局配置参数\n        window.pageConfig = {\n          shareInfo: {\n            api: '',\n            url: '',\n            title: '',\n            desc: '',\n            thumb: ''\n          }\n        }\n        \u003c!--headJs--\u003e\n    \u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    // 异常或错误显示的dom\n    \u003cdiv class=\"err-panel\"\u003e\u003c/div\u003e\n    \n    \u003cdiv id=\"app\" class=\"app\"\u003e\n        \u003c!--pageContent--\u003e\n    \u003c/div\u003e\n    \n    // 回到顶部等预置的dom\n    \u003cdiv class=\"goto-top\" style=\"display:none;\"\u003egoTop\u003c/div\u003e\n    \n    // 按需生成script标签\n    \u003cscript src=\"common/body.min.js,lib/swiper.min.js,base/timeout.min.js,base/form.min.js\"\u003e\u003cscript\u003e\n    \n    \u003cscript type=\"text/javascript\"\u003e\n       // 底部代码，比如统计代码等\n    \u003c/script\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n\n```\n\n我的app内点击兼容处理：\n```bash\n// 拨打电话\nif (type === 'tel') {\n  if (common.isApp()) {\n     var app = {\n        actionName: 'callphone',\n        phoneNumber: config\n     };\n     common.openApp(app);\n  } else {\n     location.href = 'tel:' + tel;\n  }\n}\n// 系统内部页面\nif (type === 'inside') {\n  if (common.isApp()) {\n     var app = {\n        actionName: 'appLogin',\n        params: obj\n     };\n     common.openApp(app);\n  } else {\n     location.href = url;\n  }\n}\n// 外链页面，也可以直接渲染到a[href]，但是不方便自己写统计代码\nif (type === 'outside') {\n  location.href = url;\n}\n// 调用后端接口（领取优惠券）\nif (type === 'coupon') {\n  common.getCoupon(url);\n}\n```\n\n\n根据模板由后端生成纯静态html文件，SEO友好，页面秒开，随时随地部署使用。还可以在此基础上开发业务相关的组件，例如商品列表，文章列表等。\n\n### 发散使用\n* APP和M站首页的可视化制作；\n* 一键配置生成小程序页面；\n* 配置即生成dom串存到数据库，后端渲染出页面；\n\n## 文档\n系统架构设计和组件拆分原则可阅读我的掘金文章：[《搭建一个简单易用的专题页面制作平台》](https://juejin.im/post/5cf328706fb9a07f042030f0)\n\n[在线体验地址](https://yangyuji.github.io/h5-factory/)\n\n## 许可证\n[MIT](https://github.com/yangyuji/h5-factory/blob/master/LICENSE)\n\n![reward](https://yangyuji.github.io/h5-factory/static/img/reward.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangyuji%2Fh5-factory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangyuji%2Fh5-factory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangyuji%2Fh5-factory/lists"}