Authored by 郭成尧

merge

@@ -2,12 +2,12 @@ @@ -2,12 +2,12 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-06-21 10:15:38 3 * @Date: 2017-06-21 10:15:38
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-06-23 17:53:27 5 + * @Last Modified time: 2017-06-23 18:09:26
6 */ 6 */
7 const _ = require('lodash'); 7 const _ = require('lodash');
8 const co = require('bluebird').coroutine; 8 const co = require('bluebird').coroutine;
9 const headerModel = require('../../../doraemon/models/header'); 9 const headerModel = require('../../../doraemon/models/header');
10 -const BuyNowModel = require('../models/BuyNowModel'); 10 +const BuyNowModel = require('../models/buy-now-model');
11 const addressModel = require('../models/address'); 11 const addressModel = require('../models/address');
12 const userModel = require('../models/user'); 12 const userModel = require('../models/user');
13 const orderModel = require('../models/order'); 13 const orderModel = require('../models/order');
@@ -16,7 +16,7 @@ const countController = require(`${cRoot}/count`); @@ -16,7 +16,7 @@ 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 const ticketsConfirmController = require(`${cRoot}/ticketsConfirm`);
19 -const BuyNowController = require(`${cRoot}/BuyNowController`); 19 +const BuyNowController = require(`${cRoot}/buy-now-controller`);
20 20
21 // Your controller here 21 // Your controller here
22 router.all('/index/seckill/', authMW); 22 router.all('/index/seckill/', authMW);
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-06-21 10:30:21 3 * @Date: 2017-06-21 10:30:21
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-06-23 17:12:13 5 + * @Last Modified time: 2017-06-23 18:04:49
6 */ 6 */
7 require('buynow/order-ensure.page.css'); 7 require('buynow/order-ensure.page.css');
8 const $ = require('yoho-jquery'); 8 const $ = require('yoho-jquery');
@@ -341,7 +341,7 @@ if (!orderInfo('address_id')) { @@ -341,7 +341,7 @@ if (!orderInfo('address_id')) {
341 } 341 }
342 342
343 $('.delivery-id').on('touchend', 'li', function() { 343 $('.delivery-id').on('touchend', 'li', function() {
344 - orderInfo('deliveryId', $(this).data('id')); 344 + orderInfo('delivery_way', $(this).data('id'));
345 345
346 // 实付金额发生变化,使用有货币为0 346 // 实付金额发生变化,使用有货币为0
347 orderInfo('use_yoho_coin', 0); 347 orderInfo('use_yoho_coin', 0);
@@ -491,7 +491,7 @@ function phoneHidden(phone) { @@ -491,7 +491,7 @@ function phoneHidden(phone) {
491 $('.info-phone').html(phoneHidden($('.info-phone').html())); 491 $('.info-phone').html(phoneHidden($('.info-phone').html()));
492 492
493 if (orderInfo('address') && orderInfo('address').is_support === 'N') { 493 if (orderInfo('address') && orderInfo('address').is_support === 'N') {
494 - orderInfo('deliveryId', $('.delivery-id .icon-cb-radio').data('id')); 494 + orderInfo('delivery_way', $('.delivery-id .icon-cb-radio').data('id'));
495 orderCompute(); 495 orderCompute();
496 } 496 }
497 497