Authored by 沈志敏

去除 require

@@ -14,7 +14,6 @@ const detailHelper = require(`${mRoot}/detail-helper`); @@ -14,7 +14,6 @@ const detailHelper = require(`${mRoot}/detail-helper`);
14 const Actions = require('./lib/actions'); 14 const Actions = require('./lib/actions');
15 const YohoAction = require('./lib/yoho-action'); 15 const YohoAction = require('./lib/yoho-action');
16 const moment = require('moment'); 16 const moment = require('moment');
17 -const camelCase = global.yoho.camelCase;  
18 const DEFAULT_AVATAR_ICO = 'http://static.yohobuy.com/images/v3/boy.jpg'; 17 const DEFAULT_AVATAR_ICO = 'http://static.yohobuy.com/images/v3/boy.jpg';
19 const _ = require('lodash'); 18 const _ = require('lodash');
20 19
@@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
8 const utils = '../../../utils'; 8 const utils = '../../../utils';
9 const helpers = global.yoho.helpers; 9 const helpers = global.yoho.helpers;
10 const _ = require('lodash'); 10 const _ = require('lodash');
11 -const camelCase = global.yoho.camelCase;  
12 const productProcess = require(`${utils}/product-process`); 11 const productProcess = require(`${utils}/product-process`);
13 const url = require('url'); 12 const url = require('url');
14 const queryString = require('querystring'); 13 const queryString = require('querystring');
@@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
8 'use strict'; 8 'use strict';
9 const utils = '../../../utils'; 9 const utils = '../../../utils';
10 const logger = global.yoho.logger; 10 const logger = global.yoho.logger;
11 -const camelCase = global.yoho.camelCase;  
12 const api = global.yoho.API; 11 const api = global.yoho.API;
13 const saleApi = require('./sale-api'); 12 const saleApi = require('./sale-api');
14 const publicHandler = require('./public-handler'); 13 const publicHandler = require('./public-handler');
@@ -6,10 +6,6 @@ @@ -6,10 +6,6 @@
6 6
7 'use strict'; 7 'use strict';
8 8
9 -// const utils = '../../../utils';  
10 -  
11 -// const logger = global.yoho.logger;  
12 -// const camelCase = global.yoho.camelCase;  
13 const api = global.yoho.API; 9 const api = global.yoho.API;
14 const queryString = require('querystring'); 10 const queryString = require('querystring');
15 const _ = require('lodash'); 11 const _ = require('lodash');