Authored by htoooth

fix

... ... @@ -1596,7 +1596,7 @@ const getPackage = (skn) => {
let resData = {code: data.code},
packageList = [];
if (data.code === 200) {
if (data.code === 200 && !_.isEmpty(data.data)) {
let bundleInfo = data.data.bundleInfo || {};
let productList = data.data.productList || {};
... ... @@ -1623,6 +1623,9 @@ const getPackage = (skn) => {
});
resData.data.packageData = packageList;
} else {
resData.code = 400;
resData.message = '没有数据';
}
return resData;
... ...
... ... @@ -20,11 +20,11 @@ module.exports = {
// test2
singleApi: 'http://192.168.102.27:8092/brower',
// api: 'http://api-test2.yohops.com:9999/',
// service: 'http://service-test2.yohops.com:9999/',
api: 'http://api-test2.yohops.com:9999/',
service: 'http://service-test2.yohops.com:9999/',
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/'
//api: 'http://api.yoho.cn/',
//service: 'http://service.yoho.cn/'
// api: 'http://dev-api.yohops.com:9999/',
// service: 'http://dev-service.yohops.com:9999/',
... ...
... ... @@ -526,7 +526,7 @@ bindEvent.add(function() {
return;
}
if (!getUid()) {
if (!window.getUid()) {
return window.jumpUrl(window.signinUrl());
}
... ... @@ -1686,9 +1686,9 @@ $(function() {
for (var i = 1; i <= 4; i++) {
if (i !== 2) {
$('.description-content ul li:nth-child(' + (i + 4) + ') .valueSpace').css({
'display': 'inline-block',
display: 'inline-block',
'text-align': 'right',
'width': $('.description-content ul li:nth-child(' + i + ') .valueSpace').width()
width: $('.description-content ul li:nth-child(' + i + ') .valueSpace').width()
});
}
}
... ...
... ... @@ -108,5 +108,7 @@ exports.statusFav = function(sid, bid) {
}
});
}
return $.Deferred().reject().promise();
};
... ...
... ... @@ -5,7 +5,9 @@ exports.statusAsync = function(sku) {
var uid = getUid();
if (!uid) {
return $.Deferred().reject({}).promise(); // eslint-disable-line
return $.Deferred().reject({ data: {// eslint-disable-line
sku: sku
}}).promise();
}
if (!sku) {
... ...