Authored by 黄涛

ok

@@ -447,41 +447,41 @@ const getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => { @@ -447,41 +447,41 @@ const getFashionTopGoodsStatus = (uid, showStatus, isBeginSale) => {
447 // 显示获取限购码按钮 447 // 显示获取限购码按钮
448 switch (showStatus) { 448 switch (showStatus) {
449 case 1: // 开售前/后,立即分享获得限购码(用户未领取限购码) 449 case 1: // 开售前/后,立即分享获得限购码(用户未领取限购码)
450 - {  
451 - if (isBeginSale) { 450 + {
  451 + if (isBeginSale) {
  452 + result.buyNow = true;
  453 + result.dis = true;
  454 + } else {
  455 + result.openSoon = true;
  456 + result.hasLimitedCode = false;
  457 + }
  458 + break;
  459 + }
  460 + case 2: // 开售后,限购码已抢光(用户未领取限购码)
  461 + {
452 result.buyNow = true; 462 result.buyNow = true;
453 result.dis = true; 463 result.dis = true;
454 - } else {  
455 - result.openSoon = true; 464 + result.limitedCodeSoldOut = true;
  465 + result.getLimitedCode = false;
456 result.hasLimitedCode = false; 466 result.hasLimitedCode = false;
  467 + break;
457 } 468 }
458 - break;  
459 - }  
460 - case 2: // 开售后,限购码已抢光(用户未领取限购码)  
461 - {  
462 - result.buyNow = true;  
463 - result.dis = true;  
464 - result.limitedCodeSoldOut = true;  
465 - result.getLimitedCode = false;  
466 - result.hasLimitedCode = false;  
467 - break;  
468 - }  
469 case 3: // 开售后,商品已经售罄 469 case 3: // 开售后,商品已经售罄
470 - {  
471 - result.soldOut = true;  
472 - result.getLimitedCode = false;  
473 - break;  
474 - } 470 + {
  471 + result.soldOut = true;
  472 + result.getLimitedCode = false;
  473 + break;
  474 + }
475 case 4:// 开售后,立即购买(用户已领取限购码) 475 case 4:// 开售后,立即购买(用户已领取限购码)
476 - {  
477 - result.buyNow = true;  
478 - result.dis = false;  
479 - result.hasLimitedCode = true;  
480 - if (uid) { // 限购码失效  
481 - result.getLimitedCodeDis = true; 476 + {
  477 + result.buyNow = true;
  478 + result.dis = false;
  479 + result.hasLimitedCode = true;
  480 + if (uid) { // 限购码失效
  481 + result.getLimitedCodeDis = true;
  482 + }
  483 + break;
482 } 484 }
483 - break;  
484 - }  
485 case 5: // 开售前,限购码已被抢光(用户未领取限购码) 485 case 5: // 开售前,限购码已被抢光(用户未领取限购码)
486 result.openSoon = true; 486 result.openSoon = true;
487 result.hasLimitedCode = true; 487 result.hasLimitedCode = true;
@@ -518,7 +518,7 @@ function getSortNavAsync(smallSortId, gender) { @@ -518,7 +518,7 @@ function getSortNavAsync(smallSortId, gender) {
518 518
519 let navs = []; 519 let navs = [];
520 520
521 - //let data = yield SearchData.getSortByConditionAsync({sort: smallSortId}); 521 + // let data = yield SearchData.getSortByConditionAsync({sort: smallSortId});
522 522
523 let data = {}; 523 let data = {};
524 524
@@ -753,19 +753,19 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { @@ -753,19 +753,19 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => {
753 if (domainBrand.type && domainBrand.shopId) { 753 if (domainBrand.type && domainBrand.shopId) {
754 switch (parseInt(domainBrand.type)) { 754 switch (parseInt(domainBrand.type)) {
755 case 1: 755 case 1:
756 - { 756 + {
757 // 多品店不显示 757 // 多品店不显示
758 - banner = [];  
759 - break;  
760 - } 758 + banner = [];
  759 + break;
  760 + }
761 case 2: 761 case 2:
762 - { 762 + {
763 // TODO:单品店显示新版的店铺banner,item.php 210 763 // TODO:单品店显示新版的店铺banner,item.php 210
764 - let basisData = ShopModel.basisTemplate(domainBrand.shopId); 764 + let basisData = ShopModel.basisTemplate(domainBrand.shopId);
765 765
766 - banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg;  
767 - break;  
768 - } 766 + banner.bgImg = basisData.shopTopBanner.banner || banner.bgImg;
  767 + break;
  768 + }
769 769
770 } 770 }
771 } 771 }
@@ -844,15 +844,15 @@ function getDescriptionDataBySizeInfoAsync(sizeInfo) { @@ -844,15 +844,15 @@ function getDescriptionDataBySizeInfoAsync(sizeInfo) {
844 844
845 switch (sizeInfo.productDescBo.gender) { 845 switch (sizeInfo.productDescBo.gender) {
846 case 1: 846 case 1:
847 - {  
848 - sex = '男款';  
849 - break;  
850 - } 847 + {
  848 + sex = '男款';
  849 + break;
  850 + }
851 case 2: 851 case 2:
852 - {  
853 - sex = '女款';  
854 - break;  
855 - } 852 + {
  853 + sex = '女款';
  854 + break;
  855 + }
856 } 856 }
857 857
858 description.basic = []; 858 description.basic = [];
@@ -1216,25 +1216,25 @@ function getSizeAttrByMaxSortId(maxSortId, sizeList) { @@ -1216,25 +1216,25 @@ function getSizeAttrByMaxSortId(maxSortId, sizeList) {
1216 switch (maxSortId) { 1216 switch (maxSortId) {
1217 case 1: 1217 case 1:
1218 case 2: 1218 case 2:
1219 - {  
1220 - attributeIds = [3, 4];  
1221 - break;  
1222 - } 1219 + {
  1220 + attributeIds = [3, 4];
  1221 + break;
  1222 + }
1223 1223
1224 case 3: 1224 case 3:
1225 - {  
1226 - attributeIds = [6, 10];  
1227 - break;  
1228 - } 1225 + {
  1226 + attributeIds = [6, 10];
  1227 + break;
  1228 + }
1229 case 6: 1229 case 6:
1230 - {  
1231 - attributeIds = [13];  
1232 - break;  
1233 - } 1230 + {
  1231 + attributeIds = [13];
  1232 + break;
  1233 + }
1234 default: 1234 default:
1235 - {  
1236 - attributeIds = [];  
1237 - } 1235 + {
  1236 + attributeIds = [];
  1237 + }
1238 } 1238 }
1239 1239
1240 let sizeInfos = []; 1240 let sizeInfos = [];
@@ -16,7 +16,7 @@ function shareBase(options) { @@ -16,7 +16,7 @@ function shareBase(options) {
16 desc: '', 16 desc: '',
17 channel: '' 17 channel: ''
18 }; 18 };
19 - var shareChannels = ['weibo', 'tweibo', 'qzone', 'renren', 'qq', 'douban','weixin']; 19 + var shareChannels = ['weibo', 'tweibo', 'qzone', 'renren', 'qq', 'douban', 'weixin'];
20 var sharebox; 20 var sharebox;
21 var shareCon = '<em><i></i></em>'; 21 var shareCon = '<em><i></i></em>';
22 22
1 var $ = require('yoho-jquery'), 1 var $ = require('yoho-jquery'),
2 lazyLoad = require('yoho-jquery-lazyload'); 2 lazyLoad = require('yoho-jquery-lazyload');
3 3
4 -$(".description-material").on("click",function(){  
5 - alert("ok") ; 4 +$('.description-material').on('click', function() {
  5 + alert('ok');
6 }); 6 });
@@ -32,7 +32,7 @@ var $latestWalkCount = $('#latest-walk-count'); @@ -32,7 +32,7 @@ var $latestWalkCount = $('#latest-walk-count');
32 if (data.code === 200) { 32 if (data.code === 200) {
33 res = data.data; 33 res = data.data;
34 34
35 - //若无最近浏览,请隐藏容器 35 + // 若无最近浏览,请隐藏容器
36 if (res.length === 0) { 36 if (res.length === 0) {
37 $('.latest-walk').addClass('hide'); 37 $('.latest-walk').addClass('hide');
38 return; 38 return;