Giter Club home page Giter Club logo

umi-dva-antd-mobile's Introduction

🎉 🌟 ✨ 基于 [email protected] 和 antd-mobile@next 新搭建的一个 移动端应用框,传送门 ✨ 🌟 🎉

     

抱歉各位,本项目已经停止维护,为了不给您使用造成问题,请仅做参考使用,感谢各位支持

后续将会以我现在搭建的h5 框架重新开源,再次感谢各位的支持。

umi-dva-antd-mobile

Build With Umi Build With dva Build With antd-mobile GitHub license

该项目主要以 UMI + DVA 为底层框架,以Ant Design Mobile为 UI 组件库,包含完整的前端工程化实践。

部分代码及功能参考于 Ant Design pro

👏 已经支持微信开发,相见 wx 分支。

目录结构

|-- config                                # umi 配置,包含路由,构建等配置
|-- mock                                  # 本地模拟数据
|-- public                                
|   |-- favicon.png                       # favicon
|-- src                                   # 
|   |-- assets                            # 本地静态资源
|   |-- components                        # 业务通用组件
|   |-- layout                            # 通用布局
|   |-- models                            # 全局 dva model
|   |-- services                          # 后台接口服务
|   |-- pages                             # 业务页面入口和常用模板
|   |-- e2e                               # 集成测试用例
|   |-- global.less                       # 全局样式
|   |-- global.tsx                         # 全局 JS
|   |-- theme.js                          
|-- tests                                 # 测试工具
|-- .gitignore                            # git忽略文件
|-- .editorconfig                         # 编辑器代码风格配置
|-- .eslintignore                         # eslint忽略文件
|-- .eslintrc                             # eslint规则
|-- .prettierignore                       # 代码风格配置忽略文件
|-- .prettierrc                           # 代码风格配置文件
|-- .stylelintrc                          # 样式风格配置文件
|-- package.json                          
|-- README.md                              

快速开始

// 安装项目
$ git clone --depth=1 https://github.com/hqwlkj/umi-dva-antd-mobile.git my-project

$ cd my-project

// 安装依赖
$ yarn or npm install

// 运行
$ yarn start or npm run start # 访问 http://localhost:8080

// 打包
$ yarn build or npm run build

更多命令可在package.json中查看

线上项目预览地址

DEMO 地址已经全部提供到 Issue 中👏👏👏

1、蔚来汽车H5活动 建议在手机浏览器或者微信浏览器预览。

2、H5 DEMO 建议在手机浏览器或者微信浏览器预览。

3、抽奖大转盘 DEMO 建议在手机浏览器或者微信浏览器预览。

*注 由于 DEMO 代码是从正式项目中提取的,没有放在 examples 目录下;有需要的同学,请在 Issue 中索要,看见消息后我会及时提供,谢谢各位同学的 ⭐ 🌟 💫

DEMO

请扫描下方二维码预览效果。

由于demo服务器当前不稳定,建议本地运行查看效果,谢谢

H5 应用(已完成) APP 应用

demo 还在持续完善中。。。

支持环境

iOS Safari
iOS Safari
Android
Android
iOS Safari Android 4.0+

参与贡献

我们非常欢迎你的贡献,你可以通过以下方式和我一起共建 😃:

umi-dva-antd-mobile's People

Contributors

allahbin avatar dependabot[bot] avatar hqwlkj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

umi-dva-antd-mobile's Issues

发布版本后,缓存问题

发布新的版本后,有些手机访问会一直停留在 加载时的组件页面;有时候刷新就没事了,有时候刷新了也不行,需要退出微信重新进去才可以。

Failed to compile

✖ Webpack
Compiled with some errors in 765.82ms

ERROR Failed to compile with 2 errors 10:20:25

These relative modules were not found:

  • ../tabbar/Koubei in ./src/pages/.umi/router.js
  • ../tabbar/index in ./src/pages/.umi/router.js

关于wx分支的疑问

你好楼主,冒昧的问下,wx分支比master分支少了22个commits,应该是说wx分支少了些功能和bug修复吗?

页面缓存问题

点击router.push进入另一个页面之后,返回上一级页面,都是重新刷新上一级页面,有没有类似于vue keep alive的配置,不让上一级页面刷新?

wx分支下缺失文件

These dependencies were not found:

  • /tabbar/Koubei in ./src/pages/.umi/router.js
  • /tabbar/index in ./src/pages/.umi/router.js

git clone之后run没问题,但build会报错

ERROR Failed to compile with 1 errors

error

umi.0432bf59.js from UglifyJs
Unexpected token: keyword «const» [umi.0432bf59.js:38316,6]

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: umi build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

您好,路由如何设置?

在router.config.js文件中增加了一条
{ path: '/echarts', component: './echarts/index', title: '报表'},
结果就直接跳转到403页面了,地址栏是跳转了,但是内容到了403页面,不知道该怎么设置?
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.