# 小歆记账WebApp项目(Web服务端)
[基础版本](https://github.com/xiaoxinpro/xxjzWeb/tree/Base) | [微信小程序](https://github.com/xiaoxinpro/xxjzWeChat)
![](http://upload-images.jianshu.io/upload_images/1568014-caeefa6ab53be35b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
## 1、简介
小歆记账WebApp是一个面向移动端的记账工具,此项目为Web服务端;使用ThinkPHP+MySQL作为后台,AmazeUI作为前端。
>GitHub:https://github.com/xiaoxinpro/xxjzWeb
目前项目正在进行二次开发,增加微信小程序后台适配,你可以使用Demo账号登陆体验,也可以自行搭建[基础版本](https://github.com/xiaoxinpro/xxjzWeb/tree/Base)项目。
>基础版本:https://github.com/xiaoxinpro/xxjzWeb/tree/Base
>Demo :http://jz.xxgzs.org/xxjzApp/index.php
Demo账号:demo
Demo密码:xxgzs.org
## 2、安装使用
>环境要求PHP5.3以上(含PHP7以上版本),MySQl数据库,支持Windows和Linux服务器环境。
### 2.1、快速安装
部署项目文件后使用浏览器访问/install.php文件,填写数据库配置信息与管理员账号、密码和邮箱。提交后若配置信息无误则自动跳转到登陆页面。
![小歆记账Web安装向导.png](http://upload-images.jianshu.io/upload_images/1568014-d370ca30a08a8b2e.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
点击安装后若配置信息无误则自动跳转到登陆页面,使用刚刚填写的管理员账号和密码就可以登陆使用了。
> 如果你只是日常使用阅读到这里就可以了,如果你想进一步完善或优化请往下看。
### 2.2、使用优化
#### 2.2.1、关闭调试模式
该项目目前处于开发阶段,默认开启了调试模式。在实际使用中,为了提高运行效率,建议手动关闭调试模式。
打开根目录下的/index.php文件,将第**18**行改为`define('APP_DEBUG',false);`
#### 2.2.2、修改配置文件
配置文件只在/Application/Common/Conf/config.php文件中存放,在该文件中你可以修改数据库、邮箱系统、用户登录限制、列表分页等配置,配置文件注释详细这里不再展开赘述。
#### 2.2.3、重新安装数据库
为了防止重复安装破坏数据库,项目在安装完成后关闭了安装入口。可以手动删除项目根目录下的`_install.tmp`文件,再按照[2.1、快速安装](#21快速安装)流程安装即可。
* 重复安装前请注意原数据库的备份。
* 安装向导不会进行覆盖安装。
## 3、目录结构
xxjzWeb WEB部署目录(或者子目录)
├─Application 应用目录
│ ├─Common 配置文件目录
│ │ ├─Common 未使用
│ │ ├─Conf 配置文件目录
│ │ │ ├─config.php 配置文件
│ │ │ └─index.html index文件
│ │ └─index.html index文件
│ ├─Home 模块目录
│ │ ├─Common 公共函数目录
│ │ │ ├─function.php 全局函数文件
│ │ │ └─index.html index文件
│ │ ├─Conf 未使用
│ │ ├─Controller 控制器目录
│ │ │ ├─AddController.class.php 记账控制器文件
│ │ │ ├─ApiController.class.php API控制器文件
│ │ │ ├─BaseController.class.php 公共控制器文件
│ │ │ ├─ChartController.class.php 图表控制器文件
│ │ │ ├─ClassController.class.php 分类控制器文件
│ │ │ ├─EditController.class.php 编辑账目控制器文件
│ │ │ ├─FindController.class.php 搜索账目控制器文件
│ │ │ ├─IndexController.class.php 主页控制器文件
│ │ │ ├─ListController.class.php 列表控制器文件
│ │ │ ├─LoginController.class.php 登录控制器文件
│ │ │ ├─UserController.class.php 用户控制器文件
│ │ │ └─index.html index文件
│ │ ├─Model 未使用
│ │ └─View 视图目录
│ │ ├─Add 记账视图目录
│ │ ├─Chart 图表视图目录
│ │ ├─Class 分类视图目录
│ │ ├─Edit 编辑视图目录
│ │ ├─Find 搜索账目视图目录
│ │ ├─Index 主页视图目录
│ │ ├─List 列表视图目录
│ │ ├─Login 登录视图目录
│ │ ├─Public 公共视图目录
│ │ ├─User 用户视图目录
│ │ └─index.html index文件
│ └─index.html index文件
├─Public 资源文件目录
│ └─Home Home资源目录
│ ├─css CSS目录
│ ├─fonts 字体目录
│ ├─i 图片目录
│ └─js JavaScript目录
├─ThinkPHP ThinkPHP目录
├─index.php 入口文件
├─install.php 安装文件
└─README.md README文件
## 4、数据结构
### 4.1、账目表 xxjz_account
| 字段 | 类型 | 备注 |
|:--------:|--------|--------|
|acid|int(11) unsigned |账目ID|
|acmoney|double(9,2) unsigned|金额|
|acclassid|int(8)|分类ID|
|actime|int(11)|时间戳|
|acremark|varchar(50)|备注|
|jiid|int(11)|用户ID|
|zhifu|int(1)|收入1/支出2|
### 4.2、分类表 xxjz_account_class
| 字段 | 类型 | 备注 |
|:--------:|--------|--------|
|classid|int(8) |分类ID|
|classname|varchar(24)|分类名称|
|classtype|int(1)|收入1/支出2|
|ufid|int(11)|所属用户ID|
### 4.3、用户表 xxjz_user
| 字段 | 类型 | 备注 |
|:--------:|--------|--------|
|uid|int(11) 自动增量|用户ID|
|username|varchar(24)|账号/用户名|
|password|varchar(32)|密码|
|email|varchar(255)|邮箱|
|utime|int(11)|注册时间戳|
### 4.4、用户登陆表 xxjz_user_login
| 字段 | 类型 | 备注 |
|:--------:|--------|--------|
|lid|int(11) 自动增量|登陆ID|
|uid|int(11)|用户ID|
|login_name|varchar(32)|登陆平台名称|
|login_id|varchar(32)|平台openid|
|login_key|varchar(32)|平台session_key|
|login_token|varchar(32)|平台unionid|
## 5、Bug 反馈及需求提交
Bug 反馈及需求提交请使用GitHub中的[Issues](https://github.com/xiaoxinpro/xxjzWeb/issues)
## 6、参考
* [ThinkPHP (Apache2 License)](https://github.com/top-think/thinkphp)
* [Amaze UI (MIT License)](https://github.com/amazeui/amazeui)
* [Font Awesome(SIL OFL 1.1 License)](https://github.com/FortAwesome/Font-Awesome)
可能会有部分项目遗漏,后续会不断整理更新。
没有合适的资源?快使用搜索试试~ 我知道了~
小歆记账微信小程序项目(WeUI框架客户端)xxjzWeb-master.zip
共483个文件
php:336个
html:34个
css:20个
需积分: 10 5 下载量 74 浏览量
2019-09-25
12:54:06
上传
评论
收藏 2.12MB ZIP 举报
温馨提示
小歆记账微信小程序项目(WeUI框架客户端)xxjzWeb-master.zip
资源推荐
资源详情
资源评论
收起资源包目录
小歆记账微信小程序项目(WeUI框架客户端)xxjzWeb-master.zip (483个子文件)
php_xxtea.c 6KB
xxtea.c 2KB
COPYING 1KB
CREDITS 51B
amazeui.flat.css 325KB
amazeui.css 324KB
amazeui.flat.min.css 250KB
amazeui.min.css 249KB
pace-theme-loading-bar.css 9KB
admin.css 5KB
pace-theme-bounce.css 5KB
pace-theme-barber-shop.css 3KB
pace-theme-mac-osx.css 3KB
pace-theme-center-atom.css 3KB
pace-theme-flash.css 2KB
pace-theme-center-circle.css 2KB
pace-theme-corner-indicator.css 2KB
pace-theme-center-radar.css 1KB
pace-theme-center-simple.css 1021B
pace-theme-flat-top.css 885B
pace-theme-big-counter.css 863B
pace-theme-fill-left.css 442B
pace-theme-minimal.css 409B
app.css 23B
768.dhp 40KB
512.dhp 35KB
1024.dhp 32KB
1536.dhp 28KB
3072.dhp 28KB
2048.dhp 25KB
4096.dhp 25KB
96.dhp 20KB
128.dhp 18KB
160.dhp 14KB
192.dhp 12KB
256.dhp 10KB
php_xxtea.dsp 9KB
fontawesome-webfont.eot 75KB
php_xxtea.h 1KB
xxtea.h 1KB
signup.html 8KB
index.html 6KB
index.html 6KB
index.html 6KB
index.html 6KB
chart.html 5KB
list_data.html 5KB
index.html 4KB
index.html 3KB
regist.html 3KB
index.html 3KB
header.html 3KB
list_index.html 3KB
list_common.html 2KB
proc.html 2KB
edit.html 1KB
menu.html 1KB
forget.html 1KB
index.html 950B
bars.html 883B
list_index.html 833B
footer.html 676B
base.html 395B
common.html 157B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
index.html 1B
INSTALL 2KB
3.jpg 31KB
6.jpg 31KB
1.jpg 30KB
7.jpg 30KB
8.jpg 29KB
2.jpg 29KB
4.jpg 28KB
5.jpg 27KB
amazeui.js 457KB
amazeui.min.js 206KB
amazeui.ie8polyfill.js 111KB
jquery.min.js 84KB
handlebars.min.js 71KB
amazeui.ie8polyfill.min.js 35KB
amazeui.widgets.helper.js 34KB
amazeui.widgets.helper.min.js 33KB
pace.min.js 12KB
function.js 1KB
app.js 372B
composer.json 580B
composer.json 416B
LICENSE 3KB
config.m4 235B
README.md 7KB
README.md 870B
共 483 条
- 1
- 2
- 3
- 4
- 5
资源评论
weixin_38744153
- 粉丝: 346
- 资源: 2万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功