Authored by hongweigao

没有套餐时,隐藏

... ... @@ -1349,10 +1349,10 @@ $(function() {
type: 'GET',
url: '/product/detail/getPacakge',
data: {
skn: '51127118'
skn: skn
}
}).then(function(result) {
if (result.code === 200) {
if (result.code === 200 && result.data.packageData.length > 0) {
var packageTpl = require('hbs/product/package.hbs'); // eslint-disable-line
pkgData = result.data;
... ... @@ -1362,6 +1362,8 @@ $(function() {
$('.good-info .good-detail-text > a').dotdotdot({
wrap: 'letter'
});
} else {
$('#package').addClass('hide');
}
});
... ...