Authored by htoooth

Merge branch 'feature/promotion-list' into release/5.4

@@ -143,3 +143,7 @@ public/bundle/* @@ -143,3 +143,7 @@ public/bundle/*
143 .vscode/ 143 .vscode/
144 .DS_Store 144 .DS_Store
145 .devhost 145 .devhost
  146 +
  147 +### foreman ###
  148 +Procfile
  149 +.env
@@ -99,10 +99,19 @@ router.get('/passport/reg/index', reg.index); @@ -99,10 +99,19 @@ router.get('/passport/reg/index', reg.index);
99 // NOTE: 该接口的存在只是为了兼容前端 ajax 请求 99 // NOTE: 该接口的存在只是为了兼容前端 ajax 请求
100 router.post('/passport/reg/checkmobile', reg.fakeCheckMobile); 100 router.post('/passport/reg/checkmobile', reg.fakeCheckMobile);
101 101
102 -router.post('/passport/reg/piccaptcha', reg.checkCode, reg.picCaptcha);  
103 router.post('/passport/reg/msgcaptcha', reg.checkMobileMiddleware, reg.msgCaptcha); 102 router.post('/passport/reg/msgcaptcha', reg.checkMobileMiddleware, reg.msgCaptcha);
104 -router.post('/passport/reg/sendBindMsg', reg.checkMobileMiddleware, reg.checkCode, reg.sendBindMsg);  
105 -router.post('/passport/reg/mobileregister', reg.checkMobileMiddleware, reg.checkPassword, reg.checkCode, reg.mobileRegister); //eslint-disable-line 103 +
  104 +router.post('/passport/reg/sendBindMsg',
  105 + captcha.requiredAPI,
  106 + reg.checkMobileMiddleware,
  107 + reg.sendBindMsg);
  108 +
  109 +router.post('/passport/reg/mobileregister',
  110 + captcha.requiredAPI,
  111 + reg.checkMobileMiddleware,
  112 + reg.checkPassword,
  113 + reg.mobileRegister);
  114 +
106 router.get('/passport/reg/success', reg.success); 115 router.get('/passport/reg/success', reg.success);
107 116
108 /** 117 /**
@@ -349,7 +349,7 @@ const _getSkuDataByProductBaseInfo = (data) => { @@ -349,7 +349,7 @@ const _getSkuDataByProductBaseInfo = (data) => {
349 goodsId: size.size_id, 349 goodsId: size.size_id,
350 notify: size.notify, 350 notify: size.notify,
351 soldOut: _.parseInt(size.storage_number) === 0, 351 soldOut: _.parseInt(size.storage_number) === 0,
352 - info: _.get(size, 'size_info', '').replace(/:/ig, '/').replace(/ /ig, '  ') 352 + info: _.get(size, 'size_info', '').replace(/ /ig, '/').replace(/:/ig, ' ')
353 }); 353 });
354 354
355 // 单个sku商品的总数 355 // 单个sku商品的总数
@@ -1491,7 +1491,8 @@ const getDetailHeader = (pid, uid, isStudent, vipLevel, dataMd5, cookie) => { @@ -1491,7 +1491,8 @@ const getDetailHeader = (pid, uid, isStudent, vipLevel, dataMd5, cookie) => {
1491 * 是否支持退换货,true 支持,false 不支持 1491 * 是否支持退换货,true 支持,false 不支持
1492 */ 1492 */
1493 const saleReturn = (skn) => { 1493 const saleReturn = (skn) => {
1494 - return productAPI.isSupportReturnedSale(skn).then(result => _.get(result, `data.${skn}`, 'N') === 'N' ? 'Y' : 'N'); 1494 + return productAPI.isSupportReturnedSale(skn)
  1495 + .then(result => _.get(result, `data.${skn}`, 'N') === 'N' ? 'Y' : 'N');
1495 }; 1496 };
1496 1497
1497 /** 1498 /**