Commit 06a6e271 by lmf

优化首页轮播图

parent aefc64b0
...@@ -67,18 +67,18 @@ ...@@ -67,18 +67,18 @@
overflow:"hidden" overflow:"hidden"
}).children(".imgbox").css({ }).children(".imgbox").css({
"width":"100%", "width":"100%",
}).children("a").css({ }).children("a").css({
position: "absolute", position: "absolute",
left:1920, left:1920,
top:0, top:0,
"width":"100%", "width":"100%",
}).eq(0).css({ }).eq(0).css({
left:0 left:0
}).end().children("img").css({ }).end().children("img").css({
"width":"100%", "width":"100%",
}); });
} }
this._obj.init(); this._obj.init();
...@@ -203,9 +203,11 @@ ...@@ -203,9 +203,11 @@
} }
} }
var img_arr = ["/media/wysiwyg/202210281.png", "/media/wysiwyg/202210282.png"]; var image_list = "hello ";
console.log(image_list);
var img_arr = ["/media/carousel/pc/1.png", "/media/carousel/pc/2.png"];
if (isMobile()) { if (isMobile()) {
img_arr = ["/media/wysiwyg/202210281-m.png", "/media/wysiwyg/202210282-m.png"]; img_arr = ["/media/carousel/mobile/1.png", "/media/carousel/mobile/2.png"];
} }
$(".banner1").banner({ $(".banner1").banner({
img: img_arr, img: img_arr,
...@@ -240,4 +242,6 @@ ...@@ -240,4 +242,6 @@
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_top_category_thumnail')->toHtml();?> <?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_top_category_thumnail')->toHtml();?>
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_new_arrivals')->toHtml();?> <?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_new_arrivals')->toHtml();?>
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('flashsaleproduct')->toHtml();?> <?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('flashsaleproduct')->toHtml();?>
<?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_category_thumnail')->toHtml();?> <?php echo $block->getLayout()->createBlock('Magento\Cms\Block\Block')->setBlockId('home_category_thumnail')->toHtml();?>
\ No newline at end of file
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
'type' => 'project', 'type' => 'project',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
'reference' => '54297ee0198f5ada7d18d3d02b1b23c4e90f00c0', 'reference' => 'aefc64b0030a650fdf153173e19d3ee65dba10c8',
'name' => 'magento/magento2ce', 'name' => 'magento/magento2ce',
'dev' => true, 'dev' => true,
), ),
...@@ -1015,7 +1015,7 @@ ...@@ -1015,7 +1015,7 @@
'type' => 'project', 'type' => 'project',
'install_path' => __DIR__ . '/../../', 'install_path' => __DIR__ . '/../../',
'aliases' => array(), 'aliases' => array(),
'reference' => '54297ee0198f5ada7d18d3d02b1b23c4e90f00c0', 'reference' => 'aefc64b0030a650fdf153173e19d3ee65dba10c8',
'dev_requirement' => false, 'dev_requirement' => false,
), ),
'magento/module-admin-analytics' => array( 'magento/module-admin-analytics' => array(
......
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