Authored by 郭成尧

merge

const co = require('bluebird').coroutine;
const GradeModel = require('../models/grade-model');
const headerModel = require('../../../doraemon/models/header'); // 头部model
class Grade {
/**
... ... @@ -37,6 +38,19 @@ class Grade {
});
})().catch(next);
}
droit(req, res) {
res.render('grade/droit', {
module: 'activity',
page: 'grade-droit',
pageHeader: headerModel.setNav({
navTitle: '会员权益说明',
}),
width750: true,
title: '会员权益说明',
localCss: true
});
}
}
module.exports = new Grade();
... ...
... ... @@ -317,5 +317,6 @@ router.get('/coupon-list/receiveAll', couponList.receiveAll); // 全场优惠券
router.get('/grade/detail', auth, grade.page); // 成长值明细页面
router.get('/grade/graph', auth, grade.graph); // 成长值明细图表数据
router.get('/grade/monthDetail', auth, grade.monthDetail); // 成长值明细图表数据
router.get('/grade/droit', auth, grade.droit); // 权益说明
module.exports = router;
... ...
<div class="grade-droit-page">
<div class="droit-nav">
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
<div class="droit-nav-item">
<div class="droit-nav-icon"></div>
<span class="name">运费卷</span>
</div>
</div>
</div>
... ...
import 'activity/grade-droit.page.css';
import Page from 'yoho-page';
class GradeDroitPage extends Page {
constructor() {
super();
}
}
export default new GradeDroitPage();
... ...
.grade-droit-page {
width: 750px;
.droit-nav {
width: inherit;
overflow-x: auto;
white-space: nowrap;
.droit-nav-item {
text-align: center;
padding: 14px 0;
margin: 0 20px;
display: inline-block;
.droit-nav-icon {
width: 100px;
height: 100px;
border-radius: 50%;
background-image: url("/activity/grade/iconYF@2x.png");
background-repeat: no-repeat;
background-size: contain;
}
.name {
height: 34px;
font-size: 24px;
color: #a69073;
}
}
}
}
... ...