摘要:
import React from 'react'; import MUtil from 'util/mm.jsx' import Product from 'service/product-service.jsx' import PageTitle from 'component/page-tit 阅读全文
posted @ 2018-06-26 22:37
gisery
阅读(345)
评论(0)
推荐(0)
摘要:
引入了CategorySelector 二级联动组件、FileUploader图片上传组件和RichEditor富文本编辑组件 import React from 'react'; import MUtil from 'util/mm.jsx' import Product from 'servic 阅读全文
posted @ 2018-06-26 22:29
gisery
阅读(553)
评论(0)
推荐(0)
摘要:
品类选择器二级联动 阅读全文
posted @ 2018-06-26 22:21
gisery
阅读(263)
评论(0)
推荐(0)
摘要:
1.Simditor组件的github地址:https://github.com/mycolorway/simditor 网址:http://simditor.tower.im/ 2.在util里边新建rich-editor文件夹,里边新建index.jsx import React from 'r 阅读全文
posted @ 2018-06-26 20:14
gisery
阅读(1192)
评论(0)
推荐(0)
摘要:
1.React文件上传组件github地址: https://github.com/SoAanyip/React-FileUpload 2.Util里边新建file-uploader文件夹,里边新建index.jsx import React from 'react'; import FileUpl 阅读全文
posted @ 2018-06-26 19:56
gisery
阅读(4522)
评论(0)
推荐(0)
摘要:
1.商品列表页面结构 <div id="page-wrapper"> <PageTitle title="商品列表"> <div className="page-header-right"> <Link to="/product/save" className="btn btn-primary"> 阅读全文
posted @ 2018-06-26 19:26
gisery
阅读(1160)
评论(0)
推荐(0)
摘要:
1.商品列表搜索框 2.搜索框页面的结构为 <div className="row search-wrap"> <div className="col-md-12"> <div className="form-inline"> <div className="form-group"> <select 阅读全文
posted @ 2018-06-26 19:05
gisery
阅读(2277)
评论(0)
推荐(0)
摘要:
table-list组件可用于商品列表,用户列表页面 需要传入一个tableHeads集合和tablebody import React from 'react'; // 通用的列表 class TableList extends React.Component{ constructor(props 阅读全文
posted @ 2018-06-26 17:55
gisery
阅读(407)
评论(0)
推荐(0)
摘要:
1.页面的结构 //遍历list, 返回数据 let listBody= this.state.list.map((user,index)=> { return ( <tr key={index}> <td>{user.id}</td> <td>{user.username}</td> <td>{u 阅读全文
posted @ 2018-06-26 17:39
gisery
阅读(1423)
评论(0)
推荐(0)
摘要:
1.用户列表页面使用的rc-pagination分页组件 Github地址: https://github.com/react-component/pagination 2.安装 cnpm install --save-dev rc-pagination 3.引入 import React from 阅读全文
posted @ 2018-06-26 17:01
gisery
阅读(730)
评论(0)
推荐(0)
摘要:
登录页面 <div className="col-md-4 col-md-offset-4"> <div className="panel panel-default login-panel"> <div className="panel-heading">欢迎登录 - MMALL管理系统</div 阅读全文
posted @ 2018-06-26 16:41
gisery
阅读(9628)
评论(0)
推荐(0)
摘要:
1.Home组件要显示用户总数、商品总数和订单总数,数据请求后端的 /manage/statistic/base_count.do接口,返回的是 this.state = { userCount : '-', productCount : '-', orderCount : '-' } //页面挂载 阅读全文
posted @ 2018-06-26 15:41
gisery
阅读(615)
评论(0)
推荐(0)
摘要:
1新建文件夹 service ,里边建4个文件,分别是statistic-service.jsx 首页数据统计接口, user-service.jsx用户接口, product-service.jsx产品接口,order-service.jx订单接口 2.首页数据统计接口statistic-serv 阅读全文
posted @ 2018-06-26 15:27
gisery
阅读(3163)
评论(0)
推荐(0)
摘要:
1.新建文件夹 util , 在util里边新建 mm.jsx文件 2.使用jquery里边的ajax发送请求,回调用promise,返回一个promise对象 request(param){ return new Promise((resolve, reject) => { $.ajax({ ty 阅读全文
posted @ 2018-06-26 15:12
gisery
阅读(523)
评论(0)
推荐(0)
浙公网安备 33010602011771号