Authored by htoooth

fix

@@ -1596,7 +1596,7 @@ const getPackage = (skn) => { @@ -1596,7 +1596,7 @@ const getPackage = (skn) => {
1596 let resData = {code: data.code}, 1596 let resData = {code: data.code},
1597 packageList = []; 1597 packageList = [];
1598 1598
1599 - if (data.code === 200) { 1599 + if (data.code === 200 && !_.isEmpty(data.data)) {
1600 let bundleInfo = data.data.bundleInfo || {}; 1600 let bundleInfo = data.data.bundleInfo || {};
1601 let productList = data.data.productList || {}; 1601 let productList = data.data.productList || {};
1602 1602
@@ -1623,6 +1623,9 @@ const getPackage = (skn) => { @@ -1623,6 +1623,9 @@ const getPackage = (skn) => {
1623 }); 1623 });
1624 1624
1625 resData.data.packageData = packageList; 1625 resData.data.packageData = packageList;
  1626 + } else {
  1627 + resData.code = 400;
  1628 + resData.message = '没有数据';
1626 } 1629 }
1627 1630
1628 return resData; 1631 return resData;
@@ -20,11 +20,11 @@ module.exports = { @@ -20,11 +20,11 @@ module.exports = {
20 // test2 20 // test2
21 singleApi: 'http://192.168.102.27:8092/brower', 21 singleApi: 'http://192.168.102.27:8092/brower',
22 22
23 - // api: 'http://api-test2.yohops.com:9999/',  
24 - // service: 'http://service-test2.yohops.com:9999/', 23 + api: 'http://api-test2.yohops.com:9999/',
  24 + service: 'http://service-test2.yohops.com:9999/',
25 25
26 - api: 'http://api.yoho.cn/',  
27 - service: 'http://service.yoho.cn/' 26 + //api: 'http://api.yoho.cn/',
  27 + //service: 'http://service.yoho.cn/'
28 28
29 // api: 'http://dev-api.yohops.com:9999/', 29 // api: 'http://dev-api.yohops.com:9999/',
30 // service: 'http://dev-service.yohops.com:9999/', 30 // service: 'http://dev-service.yohops.com:9999/',
@@ -526,7 +526,7 @@ bindEvent.add(function() { @@ -526,7 +526,7 @@ bindEvent.add(function() {
526 return; 526 return;
527 } 527 }
528 528
529 - if (!getUid()) { 529 + if (!window.getUid()) {
530 return window.jumpUrl(window.signinUrl()); 530 return window.jumpUrl(window.signinUrl());
531 } 531 }
532 532
@@ -1686,9 +1686,9 @@ $(function() { @@ -1686,9 +1686,9 @@ $(function() {
1686 for (var i = 1; i <= 4; i++) { 1686 for (var i = 1; i <= 4; i++) {
1687 if (i !== 2) { 1687 if (i !== 2) {
1688 $('.description-content ul li:nth-child(' + (i + 4) + ') .valueSpace').css({ 1688 $('.description-content ul li:nth-child(' + (i + 4) + ') .valueSpace').css({
1689 - 'display': 'inline-block', 1689 + display: 'inline-block',
1690 'text-align': 'right', 1690 'text-align': 'right',
1691 - 'width': $('.description-content ul li:nth-child(' + i + ') .valueSpace').width() 1691 + width: $('.description-content ul li:nth-child(' + i + ') .valueSpace').width()
1692 }); 1692 });
1693 } 1693 }
1694 } 1694 }
@@ -108,5 +108,7 @@ exports.statusFav = function(sid, bid) { @@ -108,5 +108,7 @@ exports.statusFav = function(sid, bid) {
108 } 108 }
109 }); 109 });
110 } 110 }
  111 +
  112 + return $.Deferred().reject().promise();
111 }; 113 };
112 114
@@ -5,7 +5,9 @@ exports.statusAsync = function(sku) { @@ -5,7 +5,9 @@ exports.statusAsync = function(sku) {
5 var uid = getUid(); 5 var uid = getUid();
6 6
7 if (!uid) { 7 if (!uid) {
8 - return $.Deferred().reject({}).promise(); // eslint-disable-line 8 + return $.Deferred().reject({ data: {// eslint-disable-line
  9 + sku: sku
  10 + }}).promise();
9 } 11 }
10 12
11 if (!sku) { 13 if (!sku) {