# react-wangyiyun-shop
**Repository Path**: adengweb/react-wangyiyun-shop
## Basic Information
- **Project Name**: react-wangyiyun-shop
- **Description**: React-wangyiyun-shop React仿网易云商城
云音乐商城是专注于音乐场景打造的音乐购物平台,包含音乐人周边、3c影音数码、音乐市集等,和我们一起让音乐购有趣,给生活加点料
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 5
- **Forks**: 0
- **Created**: 2020-11-26
- **Last Updated**: 2022-05-12
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## React-wangyiyun-shop React仿网易云商城
云音乐商城是专注于音乐场景打造的音乐购物平台,包含音乐人周边、3c影音数码、音乐市集等,和我们一起让音乐购有趣,给生活加点料
## 使用插件
``` bash
Ant Design Mobile // 蚂蚁金服React UI框架
node-sass // css预处理 yarn add node-sass
React router //路由
axios // 使用Promise管理异步的http库
redux // 状态管理模式 npm install redux
JSON-server // 启动API服务器
iconfont
```
## 服务启动
``` bash
启动API: json-server --watch --port 3200 db.json
开发环境: yarn start npm run start
打包环境: yarn build npm run build
```
## API
``` bash
http://localhost:3200/user // 用户数据
http://localhost:3200/welfareInfo // 用户福利社 需要用户status = 1展示
http://localhost:3200/banners // 首页banner
http://localhost:3200/hotProduct // 热门推荐
http://localhost:3200/gettopics // 首页分类
http://localhost:3200/categoryList // 分类
http://localhost:3200/searchConfigKey //搜索关键字
```
## Project issue
``` bash
React组件的写法
1、函数式
function Comp(props){
return(...)
}
2、类
class Comp extends React.Component {
render(){
return ( ... )
}
}
属性
{this.state.msg}
} // 如果前面不为空就输出 {this.state.list.map( u =>
首页
分类
登录
个人中心
## License
MIT
[前端蜗牛](http://adeng.vip)