Commit 3c1b158e by yuananting

feat:数据面板-考试数

parent 3b5f2118
......@@ -68,7 +68,9 @@ class Home extends React.Component {
Service.Hades('public/hades/storePanelInfo', { storeId: User.getStoreId() }).then((res) => {
if (res.success) {
this.setState({
examNum: res.result.examNum,
incCustomerNum: res.result.incCustomerNum,
incExamNum: res.result.incExamNum,
incLiveCourseNum: res.result.incLiveCourseNum,
incVideoCourseNum: res.result.incVideoCourseNum,
incPictureCourseNum: res.result.incPictureCourseNum,
......@@ -180,6 +182,8 @@ class Home extends React.Component {
render() {
const {
examNum,
incExamNum,
list,
incCustomerNum,
incLiveCourseNum,
......@@ -278,18 +282,19 @@ class Home extends React.Component {
<span className="footer-number">0</span>
</div>
</div>
<div className="data-item">
<div className="header">
<img className="header-icon" src="https://image.xiaomaiketang.com/xm/3CfrPs23Re.png" />
<span className="header-word">考试总数 (个)</span>
</div>
<div className="data-number">0</div>
<div className="data-number">{examNum}</div>
<div className="data-footer">
<span className="footer-word">本月新增</span>
{false &&
{incExamNum > 0 &&
<span className="icon iconfont">&#xe635;</span>
}
<span className="footer-number">0</span>
<span className="footer-number">{incExamNum}</span>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment