Authored by htoooth

fix empty

@@ -506,7 +506,7 @@ const _getProductComfort = (data) => { @@ -506,7 +506,7 @@ const _getProductComfort = (data) => {
506 let flag = false; 506 let flag = false;
507 507
508 _.range(1, 6).forEach(i => { 508 _.range(1, 6).forEach(i => {
509 - if (i === value.wearSense.value) { 509 + if (i === _.get(value, 'wearSense.value')) {
510 flag = true; 510 flag = true;
511 blocks.push({ 511 blocks.push({
512 cur: true 512 cur: true
@@ -537,7 +537,7 @@ const _getProductComfort = (data) => { @@ -537,7 +537,7 @@ const _getProductComfort = (data) => {
537 * 基础商品描述 537 * 基础商品描述
538 */ 538 */
539 const _getBasicDescription = (productDescBo) => { 539 const _getBasicDescription = (productDescBo) => {
540 - let sex = (function (gender) { 540 + let sex = (function(gender) {
541 if (gender === 1) { 541 if (gender === 1) {
542 return '男款'; 542 return '男款';
543 } else if (gender === 2) { 543 } else if (gender === 2) {
@@ -639,7 +639,7 @@ const _getSizeData = (sizeInfo) => { @@ -639,7 +639,7 @@ const _getSizeData = (sizeInfo) => {
639 let boyReference = _.get(sizeInfo, 'productExtra.boyReference', false); 639 let boyReference = _.get(sizeInfo, 'productExtra.boyReference', false);
640 let girlReference = _.get(sizeInfo, 'productExtra.girlReference', false); 640 let girlReference = _.get(sizeInfo, 'productExtra.girlReference', false);
641 let gender = _.get(sizeInfo, 'productDescBo.gender', 3); 641 let gender = _.get(sizeInfo, 'productDescBo.gender', 3);
642 - let referenceName = (function () { 642 + let referenceName = (function() {
643 if (gender === 3 && boyReference) { 643 if (gender === 3 && boyReference) {
644 return '参考尺码(男)'; 644 return '参考尺码(男)';
645 } else if (gender === 3 && girlReference) { 645 } else if (gender === 3 && girlReference) {
@@ -890,7 +890,7 @@ const _getSizeAttrByMaxSortId = (maxSortId, sizeList) => { @@ -890,7 +890,7 @@ const _getSizeAttrByMaxSortId = (maxSortId, sizeList) => {
890 } 890 }
891 891
892 // 不同分类,取得属性值不同 892 // 不同分类,取得属性值不同
893 - let attributeIds = (function (id) { 893 + let attributeIds = (function(id) {
894 if (id === 1 && id === 2) { 894 if (id === 1 && id === 2) {
895 return [3, 4]; 895 return [3, 4];
896 } else if (id === 3) { 896 } else if (id === 3) {