Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yangyuji/h5-factory
h5制作,移动端专题活动页面可视化编辑
https://github.com/yangyuji/h5-factory
h5-creater h5-editor h5-factory low-code
Last synced: 3 months ago
JSON representation
h5制作,移动端专题活动页面可视化编辑
- Host: GitHub
- URL: https://github.com/yangyuji/h5-factory
- Owner: yangyuji
- License: mit
- Created: 2019-03-29T07:34:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T17:56:30.000Z (over 1 year ago)
- Last Synced: 2024-06-26T02:34:12.023Z (5 months ago)
- Topics: h5-creater, h5-editor, h5-factory, low-code
- Language: Vue
- Homepage: https://yangyuji.github.io/h5-factory/
- Size: 25.9 MB
- Stars: 816
- Watchers: 23
- Forks: 223
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-lesscode - h5-factory - factory)](https://github.com/yangyuji/h5-factory) ![GitHub last commit](https://img.shields.io/github/last-commit/yangyuji/h5-factory?label=%E6%9C%80%E5%90%8E%E6%9B%B4%E6%96%B0%E6%97%B6%E9%97%B4) (精选 LessCode 项目)
README
# h5-factory
![GitHub forks](https://img.shields.io/github/forks/yangyuji/h5-factory)
![GitHub stars](https://img.shields.io/github/stars/yangyuji/h5-factory)
![GitHub MIT](https://img.shields.io/github/license/yangyuji/h5-factory)> h5专题页面可视化编辑工具,拖拽编辑,灵活切换,一键生成html文件
## Build Setup
``` bash
# install dependencies
npm install# serve with hot reload at localhost:9999
npm run dev# build for production with minification
npm run build# build report
npm run build:report
```### 组件
* 文本
* 图片
* 表单
* 轮播图
* 底部导航
* 楼层导航
* 倒计时
* 横向滚动
* 滚动新闻
* 金刚位
* ...### 消费使用
我的消费端页面模板例子,仅供参考:
``` bash
// 页面配置信息里的样式
body {
background-color: #fff;
background-image: url();
background-repeat: no-repeat;
}
// 根据用到的组件添加style
// 优先执行的js
// 页面全局配置参数
window.pageConfig = {
shareInfo: {
api: '',
url: '',
title: '',
desc: '',
thumb: ''
}
}
<!--headJs-->
// 异常或错误显示的dom
// 回到顶部等预置的dom
goTop
// 按需生成script标签
<script>
<script type="text/javascript">
// 底部代码,比如统计代码等
```
我的app内点击兼容处理:
```bash
// 拨打电话
if (type === 'tel') {
if (common.isApp()) {
var app = {
actionName: 'callphone',
phoneNumber: config
};
common.openApp(app);
} else {
location.href = 'tel:' + tel;
}
}
// 系统内部页面
if (type === 'inside') {
if (common.isApp()) {
var app = {
actionName: 'appLogin',
params: obj
};
common.openApp(app);
} else {
location.href = url;
}
}
// 外链页面,也可以直接渲染到a[href],但是不方便自己写统计代码
if (type === 'outside') {
location.href = url;
}
// 调用后端接口(领取优惠券)
if (type === 'coupon') {
common.getCoupon(url);
}
```根据模板由后端生成纯静态html文件,SEO友好,页面秒开,随时随地部署使用。还可以在此基础上开发业务相关的组件,例如商品列表,文章列表等。
### 发散使用
* APP和M站首页的可视化制作;
* 一键配置生成小程序页面;
* 配置即生成dom串存到数据库,后端渲染出页面;## 文档
系统架构设计和组件拆分原则可阅读我的掘金文章:[《搭建一个简单易用的专题页面制作平台》](https://juejin.im/post/5cf328706fb9a07f042030f0)[在线体验地址](https://yangyuji.github.io/h5-factory/)
## 许可证
[MIT](https://github.com/yangyuji/h5-factory/blob/master/LICENSE)![reward](https://yangyuji.github.io/h5-factory/static/img/reward.jpg)