diff --git a/.gitignore b/.gitignore index 600d2d3..7f32e4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.vscode \ No newline at end of file +.vscode +node_modules \ No newline at end of file diff --git a/main.js b/main.js index 0656173..dc6b511 100644 --- a/main.js +++ b/main.js @@ -1,11 +1,11 @@ import Vue from 'vue' import App from './App' - +import uView from "uview-ui"; Vue.config.productionTip = false - +Vue.use(uView); App.mpType = 'app' const app = new Vue({ ...App }) -app.$mount() +app.$mount() diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..6318c8b --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "deming", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "uview-ui": { + "version": "1.2.9", + "resolved": "https://registry.npm.taobao.org/uview-ui/download/uview-ui-1.2.9.tgz", + "integrity": "sha1-PwC6ziaB/LXyMacGRkMfPrZfF2c=" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..314bcc3 --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "deming", + "version": "1.0.0", + "description": "- scss - uniapp - 组建库 [uview](http://www.uviewui.com/) ## 目录结构 ```1= |-pages tabes 目录 |-pageA 前期注册用页面 |-pageB 首页类页面 |-pageC 商城下页面 |-pageD 我的页面 |-pageE 其余杂乱页面 |-components 组建目录 |-static 静态文件目录 |-|images 图片文件 |util js库文件 |App.js |main.js |pages.json |manifest.json |uni.scss ``` ## 开发规范 - 使用组建化 - 要使用scss - 命名尽量规范 可以语义化但不可以胡乱输入 - scss层级关系使用好 - 统一使用rpx - 组建目录需要根据页面或功能命名子目录 ## 分支开发规则 - master分支将开启保护 请使用gitea合并功能 - 每人各自工作分支 每天合并 - 合并请及时拉取处理冲突", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "http://git.luyuan.tk/luyuan/deming.git" + }, + "author": "", + "license": "ISC", + "dependencies": { + "uview-ui": "^1.2.9" + } +} diff --git a/uni.scss b/uni.scss index 09ffb46..6123f00 100644 --- a/uni.scss +++ b/uni.scss @@ -1,3 +1,4 @@ +@import 'node_modules/uview-ui/theme.scss'; /** * 这里是uni-app内置的常用样式变量 *