Commit d795e931 by lmf

优化尺码弹框显示速度

parent 90745d3b
...@@ -220,7 +220,7 @@ $short_description = $this->helper(Magento\Catalog\Helper\Output::class)->produc ...@@ -220,7 +220,7 @@ $short_description = $this->helper(Magento\Catalog\Helper\Output::class)->produc
setTimeout(function(){ setTimeout(function(){
$("#product-intro-fast-delivery").show(); $("#product-intro-fast-delivery").show();
$("#product-intro-free-return").show(); $("#product-intro-free-return").show();
},1000); },3000);
}); });
</script> </script>
......
...@@ -67,9 +67,13 @@ ...@@ -67,9 +67,13 @@
' <a href="javascript:void(0);">Size Guide</a></span></div>'; ' <a href="javascript:void(0);">Size Guide</a></span></div>';
$(".swatch-attribute.size > span:last").after(size); $(".swatch-attribute.size > span:last").after(size);
} }
$("#product-intro-size-chart").show(); },1000);
setTimeout(function(){
var content = '<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('product-intro-size-chart')->toHtml();?>';
$("#product-intro-size-chart").html(content);
},3000); },3000);
}); });
</script> </script>
...@@ -81,9 +85,7 @@ ...@@ -81,9 +85,7 @@
'responsive': true, 'responsive': true,
'buttons' : [] 'buttons' : []
}}"> }}">
<div class="content" id="product-intro-size-chart" style="display: none;"> <div class="content" id="product-intro-size-chart" ></div>
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('product-intro-size-chart')->toHtml();?>
</div>
</div> </div>
<style> <style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment