Commit 3c1b158e by yuananting

feat:数据面板-考试数

parent 3b5f2118
...@@ -68,7 +68,9 @@ class Home extends React.Component { ...@@ -68,7 +68,9 @@ class Home extends React.Component {
Service.Hades('public/hades/storePanelInfo', { storeId: User.getStoreId() }).then((res) => { Service.Hades('public/hades/storePanelInfo', { storeId: User.getStoreId() }).then((res) => {
if (res.success) { if (res.success) {
this.setState({ this.setState({
examNum: res.result.examNum,
incCustomerNum: res.result.incCustomerNum, incCustomerNum: res.result.incCustomerNum,
incExamNum: res.result.incExamNum,
incLiveCourseNum: res.result.incLiveCourseNum, incLiveCourseNum: res.result.incLiveCourseNum,
incVideoCourseNum: res.result.incVideoCourseNum, incVideoCourseNum: res.result.incVideoCourseNum,
incPictureCourseNum: res.result.incPictureCourseNum, incPictureCourseNum: res.result.incPictureCourseNum,
...@@ -180,6 +182,8 @@ class Home extends React.Component { ...@@ -180,6 +182,8 @@ class Home extends React.Component {
render() { render() {
const { const {
examNum,
incExamNum,
list, list,
incCustomerNum, incCustomerNum,
incLiveCourseNum, incLiveCourseNum,
...@@ -278,18 +282,19 @@ class Home extends React.Component { ...@@ -278,18 +282,19 @@ class Home extends React.Component {
<span className="footer-number">0</span> <span className="footer-number">0</span>
</div> </div>
</div> </div>
<div className="data-item"> <div className="data-item">
<div className="header"> <div className="header">
<img className="header-icon" src="https://image.xiaomaiketang.com/xm/3CfrPs23Re.png" /> <img className="header-icon" src="https://image.xiaomaiketang.com/xm/3CfrPs23Re.png" />
<span className="header-word">考试总数 (个)</span> <span className="header-word">考试总数 (个)</span>
</div> </div>
<div className="data-number">0</div> <div className="data-number">{examNum}</div>
<div className="data-footer"> <div className="data-footer">
<span className="footer-word">本月新增</span> <span className="footer-word">本月新增</span>
{false && {incExamNum > 0 &&
<span className="icon iconfont">&#xe635;</span> <span className="icon iconfont">&#xe635;</span>
} }
<span className="footer-number">0</span> <span className="footer-number">{incExamNum}</span>
</div> </div>
</div> </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