浏览代码

初始化

develop
JinxChen 1 个月前
父节点
当前提交
3a67f342a5
共有 3 个文件被更改,包括 4 次插入24 次删除
  1. +1
    -21
      README.md
  2. +2
    -2
      package.json
  3. +1
    -1
      pages/index/index.vue

+ 1
- 21
README.md 查看文件

@@ -1,22 +1,2 @@
<h1 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uni-template</h1>
<h1 align="center">基于uni-app的基础项目模板</h1>

## 说明

uni-template是基于uni-app的基础项目模板,使用[uView2.0](https://www.uviewui.com/)框架作为项目UI基础,使用[uni-simple-router](https://hhyang.cn/v2/)管理路由,保留了Vue-router完全相似的书写风格,让你在页面跳转及页面拦截时倍感亲切,模板完成了登录认证及路由拦截等基础功能,下载后只需修改接口地址即可快速上手。

* [uView2.0](https://www.uviewui.com/)
* [uni-simple-router](https://hhyang.cn/v2/)

* vuex
* uni.request封装

## 快速上手 ## 快速上手

1、从插件市场下载 `uni-template` 模板

2、在项目根目录下执行 `npm install` 命令安装项目所需依赖

3、全局搜索 `TODO` 文字,根据自身需求修改注释下的代码

4、运行项目即可
`npm install`

+ 2
- 2
package.json 查看文件

@@ -1,12 +1,12 @@
{ {
"name": "uni-template",
"name": "ai-skin-measurement-mp",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "Miss丶盟",
"author": "author",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"uni-read-pages": "^1.0.5", "uni-read-pages": "^1.0.5",


+ 1
- 1
pages/index/index.vue 查看文件

@@ -11,7 +11,7 @@
export default { export default {
data() { data() {
return { return {
title: 'uni-template'
title: ''
} }
}, },
onLoad() { onLoad() {


正在加载...
取消
保存