Authored by 王水玲

有货分期

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

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
  1 +/**
  2 + * Created by yoho on 2016/8/1.
  3 + */
  1 +.installment-page {
  2 + background: #efefef;
  3 +
  4 + .open-index {
  5 + background: #fff;
  6 + height: auto;
  7 + overflow: hidden;
  8 + padding-bottom: 70px;
  9 + }
  10 +
  11 + .open-info {
  12 + margin: 95px auto 56px;
  13 + width: 560px;
  14 + height: auto;
  15 + overflow: hidden;
  16 +
  17 +
  18 + li {
  19 + float: left;
  20 + margin: 0 47px;
  21 + }
  22 + }
  23 +
  24 + .open-icon-1 {
  25 + background: url("/home/installment-icon1.png") no-repeat;
  26 + width: 67px;
  27 + height: 67px;
  28 + display: block;
  29 + margin: 0 auto 34px;
  30 + }
  31 +
  32 + .open-icon-2 {
  33 + background: url("/home/installment-icon2.png") no-repeat;
  34 + width: 67px;
  35 + height: 72px;
  36 + display: block;
  37 + margin: 0 auto 34px;
  38 + }
  39 +
  40 + .open-icon-3 {
  41 + background: url("/home/installment-icon3.png") no-repeat;
  42 + width: 67px;
  43 + height: 68px;
  44 + display: block;
  45 + margin: 0 auto 34px;
  46 + }
  47 +
  48 + .open-btn {
  49 + width: 472px;
  50 + height: 88px;
  51 + background: #444;
  52 + color: #fff;
  53 + text-align: center;
  54 + line-height: 88px;
  55 + border-radius: 6px;
  56 + margin: 0 auto;
  57 + }
  58 +
  59 + .installment-only {
  60 + background: #fff;
  61 + margin-top: 30px;
  62 + border-top: 1px solid #dedee0;
  63 +
  64 + h2 {
  65 + height: 85px;
  66 + line-height: 85px;
  67 + text-align: center;
  68 + font-size: 16PX;
  69 + border-bottom: 1px solid #dedee0;
  70 + }
  71 + }
  72 +}