Authored by lijing

门票确认

  1 +'use strict';
  2 +
  3 +const index = (req, res ,next) => {
  4 + let headerData = headerModel.setNav({
  5 + navTitle: '确认订单'
  6 + });
  7 +
  8 + let responseData = {
  9 + pageHeader: headerData,
  10 + module: 'cart',
  11 + page: 'index-editor',
  12 + title: '确认订单',
  13 + pageFooter: true,
  14 + localCss: true
  15 + };
  16 +
  17 + res.render('ticketsConfirm', responseData);
  18 +}
  19 +
  20 +module.exports = {
  21 + index
  22 +};
@@ -15,6 +15,7 @@ const order = require(cRoot + '/order'); @@ -15,6 +15,7 @@ const order = require(cRoot + '/order');
15 const countController = require(`${cRoot}/count`); 15 const countController = require(`${cRoot}/count`);
16 const payController = require(`${cRoot}/pay`); 16 const payController = require(`${cRoot}/pay`);
17 const indexController = require(`${cRoot}/index`); 17 const indexController = require(`${cRoot}/index`);
  18 +const ticketsConfirmController = require(`${cRoot}/ticketsConfirm`);
18 19
19 // Your controller here 20 // Your controller here
20 router.all('/index/seckill/', authMW); 21 router.all('/index/seckill/', authMW);
@@ -62,4 +63,7 @@ router.post('/index/new/giftinfo', indexController.giftinfo); // 获取购物车 @@ -62,4 +63,7 @@ router.post('/index/new/giftinfo', indexController.giftinfo); // 获取购物车
62 // 支付中心 URL,由于微信安全限制,在现有 URL 后追加 new ,通过 subDomain 中间件转发到此 63 // 支付中心 URL,由于微信安全限制,在现有 URL 后追加 new ,通过 subDomain 中间件转发到此
63 router.get('/home/orders/paynew', authMW, payController.payCenter); 64 router.get('/home/orders/paynew', authMW, payController.payCenter);
64 65
  66 +// 门票确认
  67 +router.get('/index/ticketsConfirm', authMW, ticketsConfirmController.index);
  68 +
65 module.exports = router; 69 module.exports = router;
  1 +<div class="order-ensure-page yoho-page tickets-confirm-page">
  2 + <section class="dispatch block">
  3 + <!--<div class="sorry-tips">
  4 + <p>虚拟商品不支持退换货,抱歉!</p>
  5 + </div>-->
  6 + <div class="sub-block payment-type">
  7 + <h3>
  8 + <p>支付方式</p>
  9 + <span>在线支付</span>
  10 + </h3>
  11 + </div>
  12 + <div class="sub-block delivery-id">
  13 + <h3>
  14 + <p>发送时间</p>
  15 + <span>自动发货</span>
  16 + </h3>
  17 + <h4>在您支付成功后,系统将立即为您发送二维码,您可以在订单中查看。</h4>
  18 + </div>
  19 + </section>
  20 +
  21 + <section class="block tickets-mobile">
  22 + <input type="text" name="mobile" placeholder="手机号" id="mobile">
  23 + <span class="mobile-tips">(必填)</span>
  24 + </section>
  25 +
  26 + <section class="block goods-bottom">
  27 + {{#each goods}}
  28 + {{> me/order/good}}
  29 + {{/each}}
  30 + </section>
  31 +
  32 + <section class="block dispatch">
  33 + <div class="yoho-coin">
  34 + <ul class="sale-invoice">
  35 + <li class="coin" data-yoho-coin="{{yohoCoinCompute.yohoCoin}}" data-yoho-coin-click={{yohoCoinCompute.yohoCoinClick}}>
  36 + <span class="title">有货币</span>
  37 + <span class="desc msg">{{yohoCoinCompute.yohoCoinMsg}}</span>
  38 + <span class="yoho-coin-help"></span>
  39 + {{#if yohoCoinCompute.useYohoCoin}}
  40 + <span class="coin-check">
  41 + <i class="iconfont checkbox icon-cb-radio"></i>
  42 + </span>
  43 + {{else}}
  44 + <span class="coin-check">
  45 + <i class="iconfont checkbox icon-radio"></i>
  46 + </span>
  47 + {{/if}}
  48 + </li>
  49 + </ul>
  50 + </div>
  51 + <div class="sub-block delivery-id">
  52 + <h3>
  53 + <p>发票</p>
  54 + </h3>
  55 + <h4>
  56 + 如需开具发票,请于我们的客服联系<br>
  57 + 客服电话:400-889-9646。
  58 + </h4>
  59 + </div>
  60 + </section>
  61 +
  62 + <section class="price-cal block">
  63 + <ul class="total">
  64 + {{#cartPayData}}
  65 + <li>
  66 + <p>{{promotion}}</p>
  67 + <span>{{promotion_amount}}</span>
  68 + </li>
  69 + {{/cartPayData}}
  70 + </ul>
  71 + <div class="price-cost">
  72 + 实付金额
  73 + <span>¥{{price}}</span>
  74 + </div>
  75 + </section>
  76 + <div class="bill">
  77 + 您需要支付:<span>¥{{price}}</span>
  78 + <a href="javascript:;" id="ticketsConfirm">确认</a>
  79 + </div>
  80 + <!--有货币使用弹框提示-->
  81 + <div class="yoho-coin-help-dialog-bg hide"></div>
  82 + <div class="yoho-coin-help-dialog hide">
  83 + <div class="yoho-coin-title">有货币使用条件:</div>
  84 + <div class="yoho-coin-content">
  85 + <p>1.订单金额大于20元(含)</p>
  86 + <p>2.有货币数量大于{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}个(含)</p>
  87 + <p>3.有货币支付不得超过每笔订单应付金额的{{yohoCoinCompute.yoho_coin_pay_rule.max_pay_rate_desc}}</p>
  88 + <p>备注:使用有货币数量为{{yohoCoinCompute.yoho_coin_pay_rule.num_limit}}的整数倍,100有货币抵1元。</p>
  89 + </div>
  90 + <div class="yoho-coin-footer">知道了</div>
  91 + </div>
  92 +
  93 + <input type="hidden" name="ticketsPage" id="ticketsPage" value="1">
  94 + <input type="hidden" name="productSku" id="productSku" value="{{productSku}}">
  95 + <input type="hidden" name="buyNumber" id="buyNumber" value="{{buyNumber}}">
  96 +</div>