ERP对接项目

zhuxc 6bbee120d2 Merge branch 'master' of git.linkerplus.com:zhuxc/linker_erp 7 anos atrás
hooks 0f80faa4c0 init erp_h5 7 anos atrás
platforms 0f80faa4c0 init erp_h5 7 anos atrás
plugins 0f80faa4c0 init erp_h5 7 anos atrás
resources 0f80faa4c0 init erp_h5 7 anos atrás
scss 6bbee120d2 Merge branch 'master' of git.linkerplus.com:zhuxc/linker_erp 7 anos atrás
www 6bbee120d2 Merge branch 'master' of git.linkerplus.com:zhuxc/linker_erp 7 anos atrás
.bowerrc 0f80faa4c0 init erp_h5 7 anos atrás
.gitignore 0f80faa4c0 init erp_h5 7 anos atrás
README.md 0f80faa4c0 init erp_h5 7 anos atrás
_anywhere.bat 0f80faa4c0 init erp_h5 7 anos atrás
_runandroid.bat 0f80faa4c0 init erp_h5 7 anos atrás
bower.json 0f80faa4c0 init erp_h5 7 anos atrás
color.png 0f80faa4c0 init erp_h5 7 anos atrás
config.xml 0f80faa4c0 init erp_h5 7 anos atrás
docker.md 0f80faa4c0 init erp_h5 7 anos atrás
gulpfile.js 0f80faa4c0 init erp_h5 7 anos atrás
ionic.config.json 0f80faa4c0 init erp_h5 7 anos atrás
ionic.md 0f80faa4c0 init erp_h5 7 anos atrás
ionic.project 0f80faa4c0 init erp_h5 7 anos atrás
package.json 0f80faa4c0 init erp_h5 7 anos atrás
runandroid.sh 0f80faa4c0 init erp_h5 7 anos atrás

README.md

h5

先安装node.js

安装成功后,现在命令行进行安装ionic和cordova

mac下需加sudo权限

1、安装npm镜像
npm install -g cnpm

cnpm install -g ionic@1.7.16
cnpm install -g cordova

安装完成后进入到项目所在文件夹,进行npm,bower,sass的更新和安装
1、安装gulp自动化构建工具
cnpm install gulp //windows 加 -g

2、安装bower前端包管理工具
cnpm install bower //windows 加 -g

3、安装npm插件
cnpm install

4、安装bower插件
bower install   //mac 加 --allow-root

5、安装sass插件
ionic setup sass

Debug 在chrome进行调试

chrome://inspect/#devices
手机进入某一个应用模块,再chrome进入webview页面即可

Android/IOS打包 apk

添加resources

ionic resources

添加相对应的平台

ionic platform add anroid/ios

Android需安装JDK

配置环境变量JAVA_HOME
准备SDK
添加 CORDOVA_ANDROID_GRADLE_DISTRIBUTION_URL file:///D:/android-sdk/gradle-2.13-all.zip

前端资源打包

ionic prepare android/ios

初始化

安装cnpm

npm install -g cnpm --registry=https://registry.npm.taobao.org

安装依赖

* bower install
* cnpm install

运行

ionic run android --device s -cls

webstorm破解

http://idea.iteblog.com/key.php

资料

ionic 中文官方文档

http://www.ionic-china.com/
在网页的右上角 --> 中文文档

ionic 例子

http://codepen.io/ionic/pens/public/

underscore

http://www.css88.com/doc/underscore/