Authored by mark

Merge branch 'feature/new-product-detail' of http://git.yoho.cn/fe/yohobuy-node

…into feature/new-product-detail
@@ -1350,10 +1350,10 @@ $(function() { @@ -1350,10 +1350,10 @@ $(function() {
1350 type: 'GET', 1350 type: 'GET',
1351 url: '/product/detail/getPacakge', 1351 url: '/product/detail/getPacakge',
1352 data: { 1352 data: {
1353 - skn: '51127118' 1353 + skn: skn
1354 } 1354 }
1355 }).then(function(result) { 1355 }).then(function(result) {
1356 - if (result.code === 200) { 1356 + if (result.code === 200 && result.data.packageData.length > 0) {
1357 var packageTpl = require('hbs/product/package.hbs'); // eslint-disable-line 1357 var packageTpl = require('hbs/product/package.hbs'); // eslint-disable-line
1358 1358
1359 pkgData = result.data; 1359 pkgData = result.data;
@@ -1363,6 +1363,8 @@ $(function() { @@ -1363,6 +1363,8 @@ $(function() {
1363 $('.good-info .good-detail-text > a').dotdotdot({ 1363 $('.good-info .good-detail-text > a').dotdotdot({
1364 wrap: 'letter' 1364 wrap: 'letter'
1365 }); 1365 });
  1366 + } else {
  1367 + $('#package').addClass('hide');
1366 } 1368 }
1367 }); 1369 });
1368 1370