Authored by 邱骏

去掉旧代码

@@ -923,57 +923,6 @@ function activityPlan() { @@ -923,57 +923,6 @@ function activityPlan() {
923 } 923 }
924 } 924 }
925 925
926 -// 单独改变未完成的楼层的高度  
927 -/* function changeShopAndProductHeightSingle(parent, className) {  
928 - let img = $(parent).find('.' + className);  
929 -  
930 - if (img[0] && !img.hasClass('completed')) {  
931 - // console.log(img[0].src, /(\.jpg|\.png)/.test(img[0].src));  
932 - if (/(\.jpg|\.png)/.test(img[0].src)) {  
933 - let image = new Image();  
934 -  
935 - image.src = img[0].src;  
936 - image.onload = function() {  
937 - img.removeClass(className);  
938 - img.addClass('completed');  
939 - let height = $(parent).find('.product-wrapper .feature-product-info').height();  
940 -  
941 - $(parent).find('.shop-wrapper .feature-shop-info').height(height);  
942 - };  
943 - } else {  
944 - setTimeout(changeShopAndProductHeightSingle, 300, parent, className);  
945 - }  
946 - }  
947 -}*/  
948 -  
949 -// 改变店铺+商品组中店铺的高度  
950 -/* function changeShopAndProductHeight() {  
951 - $('.shop-product-container').each(function() {  
952 - let img = $(this).find('.product-detail-img').eq(0);  
953 - let that = this;  
954 -  
955 - if (img[0] && !img.hasClass('completed')) {  
956 - // console.log(img[0].src, /(\.jpg|\.png)/.test(img[0].src));  
957 - if (/(\.jpg|\.png)/.test(img[0].src)) {  
958 - let image = new Image();  
959 -  
960 - image.src = img[0].src;  
961 - image.onload = function() {  
962 - img.addClass('completed');  
963 - let height = $(that).find('.product-wrapper .feature-product-info').height();  
964 -  
965 - $(that).find('.shop-wrapper .feature-shop-info').height(height);  
966 - };  
967 - } else {  
968 - let className = 'no-completed-' + Math.random().toString(16).substr(2, 8);  
969 -  
970 - img.addClass(className);  
971 - setTimeout(changeShopAndProductHeightSingle, 300, that, className);  
972 - }  
973 - }  
974 - });  
975 -}*/  
976 -  
977 $(function() { 926 $(function() {
978 if ($('.over').length) { 927 if ($('.over').length) {
979 // 过期/删除 状态的 活动 928 // 过期/删除 状态的 活动
@@ -1038,8 +987,6 @@ $(function() { @@ -1038,8 +987,6 @@ $(function() {
1038 // 定时计划 987 // 定时计划
1039 activityPlan(); 988 activityPlan();
1040 989
1041 - // changeShopAndProductHeight();  
1042 -  
1043 getShopProductLinks(); 990 getShopProductLinks();
1044 991
1045 // 小程序相关处理 992 // 小程序相关处理