Authored by 王水玲

有货分期

... ... @@ -3,3 +3,51 @@
* @author: wsl<shuiling.wang@yoho.cn>
* @date: 2016/08/01
*/
const headerModel = require('../../../doraemon/models/header');
const index = (req, res) => {
res.render('installment/open-index', {
module: 'home',
page: 'installment',
title: '有货分期',
pageHeader: headerModel.setNav({
navTitle: '有货分期',
navBtn: false
}),
bannerTop: {
data: [
{
url: '',
src: '//img11.static.yhbimg.com/yhb-img01/2016/07/29/11/0112d076e4fa0c53635ed93b118ee3f74e.jpg?imageView2/2/w/640/h/240/q/70'
}
]
},
installmentOnly: {
title: '分期专享',
goods: [
{
}
]
},
pageFooter: true
});
};
const review = (req, res) => {
res.render('installment/result', {
module: 'home',
page: 'installment',
title: '有货分期',
pageHeader: headerModel.setNav({
navTitle: '有货分期',
navBtn: false
}),
pageFooter: true
});
};
module.exports = {
index,
review
};
... ...
... ... @@ -12,6 +12,7 @@ const installment = require(cRoot + '/installment');
const router = express.Router(); // eslint-disable-line
router.get('/installment', installment.index); // 星潮教室首页
router.get('/installment', installment.index); // 开通分期首页
router.get('/review', installment.review); // 开通分期首页
module.exports = router;
... ...
<div class="installment-page">
{{> resources/banner-top}}
{{# bannerTop}}
{{> resources/banner-top}}
{{/ bannerTop}}
<div class="open-index">
<ul class="open-info">
<li>
... ... @@ -15,5 +17,11 @@
<span>制定商品<br>立享优惠</span>
</li>
</ul>
<div class="open-btn">立即开通</div>
</div>
{{# installmentOnly}}
{{< installment-only}}
{{/ installmentOnly}}
</div>
... ...
<div class="installment-page">
{{# review}}
<i class="review-icon"></i>
<p class="review-txt1">审核中</p>
<p>审核结果会在5分钟内短信通知您</p>
<div class="open-btn">先去逛逛</div>
{{/review}}
{{#success}}
<div class="success">
<i class="success-icon"></i>
<p>可用额度</p>
<p>¥5000.00</p>
<div class="open-btn">去逛逛</div>
</div>
{{# installmentOnly}}
{{< installment-only}}
{{/ installmentOnly}}
{{/success}}
{{#error}}
<div class="error">
<i class="success-icon"></i>
<p>审核未通过,暂时无法授信</p>
<p>在有货更多的消费,增加信用度,<br>会大大提升审核通过率噢</p>
<div class="open-btn">去逛逛</div>
</div>
{{/error}}
</div>
... ...
<div class="installment-only">
<h2>{{title}}</h2>
<div id="goods-container" class="goods-container">
<div class="container clearfix">
{{# goods}}
{{> common/goods}}
{{/ goods}}
</div>
</div>
</div>
... ...
... ... @@ -34,9 +34,12 @@ module.exports = {
useOneapm: false,
useCache: false,
memcache: {
master: ['192.168.102.222:12111'],
slave: ['192.168.102.222:12111'],
session: ['192.168.102.222:12111'],
//master: ['192.168.102.222:12111'],
//slave: ['192.168.102.222:12111'],
//session: ['192.168.102.222:12111'],
master: ['192.168.102.205:12111'],
slave: ['192.168.102.205:12111'],
session: ['192.168.102.205:12111'],
timeout: 1000,
retries: 0
},
... ...
... ... @@ -16,4 +16,6 @@ module.exports = app => {
app.use('/product', require('./apps/product'));
app.use('/guang', require('./apps/guang'));
app.use('/activity', require('./apps/activity'));
app.use('/home', require('./apps/home'));
};
... ...

2.36 KB | W: | H:

1.88 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

1.88 KB | W: | H:

2.36 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
/**
* Created by yoho on 2016/8/1.
*/
... ...
.installment-page {
background: #efefef;
.open-index {
background: #fff;
height: auto;
overflow: hidden;
padding-bottom: 70px;
}
.open-info {
margin: 95px auto 56px;
width: 560px;
height: auto;
overflow: hidden;
li {
float: left;
margin: 0 47px;
}
}
.open-icon-1 {
background: url("/home/installment-icon1.png") no-repeat;
width: 67px;
height: 67px;
display: block;
margin: 0 auto 34px;
}
.open-icon-2 {
background: url("/home/installment-icon2.png") no-repeat;
width: 67px;
height: 72px;
display: block;
margin: 0 auto 34px;
}
.open-icon-3 {
background: url("/home/installment-icon3.png") no-repeat;
width: 67px;
height: 68px;
display: block;
margin: 0 auto 34px;
}
.open-btn {
width: 472px;
height: 88px;
background: #444;
color: #fff;
text-align: center;
line-height: 88px;
border-radius: 6px;
margin: 0 auto;
}
.installment-only {
background: #fff;
margin-top: 30px;
border-top: 1px solid #dedee0;
h2 {
height: 85px;
line-height: 85px;
text-align: center;
font-size: 16PX;
border-bottom: 1px solid #dedee0;
}
}
}
... ...