https://github.com/freyhill/wepy-scaffold
🏢微信小程序框架wepy终极架构
https://github.com/freyhill/wepy-scaffold
es6 eslint github mini-program node nodejs redux vue wepy xcxutil
Last synced: 2 months ago
JSON representation
🏢微信小程序框架wepy终极架构
- Host: GitHub
- URL: https://github.com/freyhill/wepy-scaffold
- Owner: freyhill
- Created: 2018-08-29T06:37:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T09:18:15.000Z (almost 8 years ago)
- Last Synced: 2025-10-12T12:03:20.962Z (8 months ago)
- Topics: es6, eslint, github, mini-program, node, nodejs, redux, vue, wepy, xcxutil
- Language: CSS
- Homepage:
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#### use
###### 克隆
```
git clone git@gitee.com:quxueche2016/saas_coach.git
```
###### 安装依赖
```
npm install
```
###### appid
```
wx49fb1c5f4fe95a95
```
###### 编译
```
wepy build --watch
```
#### 项目文件结构
```
|-- dist
|-- node_modules
|-- src
| |-- components
|-- stu-item.wpy
|-- tab-slider.wpy
|-- ...
|-- images
|-- x.png
|-- pages
|-- student.wpy
|-- exam.wpy
|-- ...
|-- store
|-- actions
|-- studentAction.js
|-- examAction.js
|-- reducers
|-- sdudentReducer.js
|-- examReducer.js
|-- index.js //合并reducer
|-- types
|-- index.js
|-- styles
|-- weui.scss
|-- global.scss
|-- style.scss
|-- utils
|-- http.js
|-- ...
|-- app.wpy
|-- config.js
|-- package.json
```
#### 数据请求
* 使用 promise
* 使用 async await
#### 权限
* 使用globaldata保存登陆后的session_key
* 使用localStorage保存登陆后数据
#### 组件传值
* 静态传值
* 动态传值
#### 状态管理
* redux
* redux-actions
* wepy-redux
#### 事件
* 父组件事件
* 子组件事件触发父组件
#### 样式
* weui.scss (样式库)
* global.scss (全局样式)
* style.scss (入口)
=======
# wepy-demo
wepy项目实战