Authored by lijing

修改接口,详情页清除缓存,webpack报错

@@ -17,7 +17,7 @@ const domains = { @@ -17,7 +17,7 @@ const domains = {
17 api: 'http://api-test3.yohops.com:9999/', 17 api: 'http://api-test3.yohops.com:9999/',
18 service: 'http://service-test3.yohops.com:9999/', 18 service: 'http://service-test3.yohops.com:9999/',
19 global: 'http://api-global.yohobuy.com', 19 global: 'http://api-global.yohobuy.com',
20 - store: 'http://192.168.102.210:8080/portal-gateway/', 20 + store: 'http://192.168.102.47:8080/portal-gateway/',
21 21
22 // liveApi: 'http://api.live.yoho.cn/', 22 // liveApi: 'http://api.live.yoho.cn/',
23 // singleApi: 'http://single.yoho.cn/', 23 // singleApi: 'http://single.yoho.cn/',
@@ -27,7 +27,7 @@ _.mergeWith(baseConfig, { @@ -27,7 +27,7 @@ _.mergeWith(baseConfig, {
27 }] 27 }]
28 }, 28 },
29 devServer: { 29 devServer: {
30 - host: '0.0.0.0', 30 + host: devInfo.host,
31 port: devInfo.port, 31 port: devInfo.port,
32 publicPath: devInfo.publicPath, 32 publicPath: devInfo.publicPath,
33 contentBase: [path.join(__dirname, './bundle/'), path.join(__dirname, '../')], 33 contentBase: [path.join(__dirname, './bundle/'), path.join(__dirname, '../')],
@@ -259,19 +259,23 @@ function pullPicBig(cIndex) { @@ -259,19 +259,23 @@ function pullPicBig(cIndex) {
259 259
260 function chosenDefault() { 260 function chosenDefault() {
261 if ($('.class-detail').length > 0) { 261 if ($('.class-detail').length > 0) {
  262 + clearCookieArr(3);
262 window.setCookie('chosenClass', $('.class-detail').find('.name').text()); 263 window.setCookie('chosenClass', $('.class-detail').find('.name').text());
263 window.setCookie('packageId', $('.class-detail').find('.name').attr('id')); 264 window.setCookie('packageId', $('.class-detail').find('.name').attr('id'));
264 } 265 }
265 if ($('.adviser-info').find('.name').length > 0) { 266 if ($('.adviser-info').find('.name').length > 0) {
  267 + clearCookieArr(3);
266 window.setCookie('chosenCutter', $('.adviser-info').find('.name').text()); 268 window.setCookie('chosenCutter', $('.adviser-info').find('.name').text());
267 window.setCookie('chosenAdviser', $('.adviser-info').find('.name').text()); 269 window.setCookie('chosenAdviser', $('.adviser-info').find('.name').text());
268 window.setCookie('cutterId', $('.cutter-id').val()); 270 window.setCookie('cutterId', $('.cutter-id').val());
269 } 271 }
270 if ($('.style-detail').length > 0) { 272 if ($('.style-detail').length > 0) {
  273 + clearCookieArr(3);
271 window.setCookie('styleId', window.queryString.id); 274 window.setCookie('styleId', window.queryString.id);
272 window.setCookie('chosenStyle', ' ' + decodeURI(window.queryString.styleName) + ' '); 275 window.setCookie('chosenStyle', ' ' + decodeURI(window.queryString.styleName) + ' ');
273 } 276 }
274 if ($('.package-detail').length > 0 && $('.foot-btn').length > 0) { 277 if ($('.package-detail').length > 0 && $('.foot-btn').length > 0) {
  278 + clearCookieArr(3);
275 window.setCookie('chosenPackage', $('.package-detail').find('.name').text()); 279 window.setCookie('chosenPackage', $('.package-detail').find('.name').text());
276 window.setCookie('packageLimit', $('.package-detail').find('.limit').val()); 280 window.setCookie('packageLimit', $('.package-detail').find('.limit').val());
277 window.setCookie('packageStyle', $('.package-detail').find('.styleid').val()); 281 window.setCookie('packageStyle', $('.package-detail').find('.styleid').val());