Authored by 陈峰

解决undefined类型bug

@@ -346,6 +346,7 @@ let getintroIntro = (data) => { @@ -346,6 +346,7 @@ let getintroIntro = (data) => {
346 }, { 346 }, {
347 cache: true 347 cache: true
348 }).then(result => { 348 }).then(result => {
  349 + result = result || '';
349 result = $.load(result); 350 result = $.load(result);
350 351
351 result = result('#productDesc'); 352 result = result('#productDesc');
@@ -450,7 +450,7 @@ const _formShopData = (data, shopId, isApp) => { @@ -450,7 +450,7 @@ const _formShopData = (data, shopId, isApp) => {
450 shopCategory.list.push({ 450 shopCategory.list.push({
451 url: helpers.urlFormat('', { 451 url: helpers.urlFormat('', {
452 shop_id: shopId, 452 shop_id: shopId,
453 - sort: item.relation_parameter.sort 453 + sort: (item.relation_parameter && item.relation_parameter.sort) || ''
454 }, 'search'), 454 }, 'search'),
455 categoryId: item.category_id, 455 categoryId: item.category_id,
456 name: item.category_name 456 name: item.category_name