123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <?php
- /**
- * FecShop file.
- *
- * @link http://www.fecshop.com/
- * @copyright Copyright (c) 2016 FecShop Software LLC
- * @license http://www.fecshop.com/license/
- */
- ?>
- <div class="swiper-container" data-space-between='10'>
- <div class="swiper-wrapper">
- <div class="swiper-slide"><img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/banner-1.jpg','apphtml5'); ?>" alt="" ></div>
- <div class="swiper-slide"><img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/banner-2.jpg','apphtml5'); ?>" alt="" ></div>
- <div class="swiper-slide"><img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/banner-3.jpg','apphtml5'); ?>" alt="" ></div>
- <div class="swiper-slide"><img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/banner-4.jpg','apphtml5'); ?>" alt="" ></div>
- </div>
- <div class="swiper-pagination"></div>
- </div>
- <div style="padding:10px; padding-bottom: 0px;">
- <div class="row">
- <div class="pb-20">
- <a href=""> <img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/index-1.jpg','apphtml5'); ?>" alt="" style='width: 100%'></a>
- </div>
- <div class="mb-10">
- <a href=""> <img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/index-2.jpg','apphtml5'); ?>" alt="" style='width: 100%'></a>
- </div>
- <div class="mb-10">
- <a href=""> <img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/index-3.jpg','apphtml5'); ?>" alt="" style='width: 100%'></a>
- </div>
- <div class="mb-10">
- <a href=""> <img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/index-4.jpg','apphtml5'); ?>" alt="" style='width: 100%'></a>
- </div>
- <div class="mb-10">
- <a href=""> <img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/index-5.jpg','apphtml5'); ?>" alt="" style='width: 100%'></a>
- </div>
- <div class="mb-10">
- <a href=""> <img class="lazy" data-src="<?= Yii::$service->image->getImgUrl('custom/index-6.jpg','apphtml5'); ?>" alt="" style='width: 100%'></a>
- </div>
- </div>
- </div>
- <style type="text/css">
- .infinite-scroll-preloader {
- margin-top:-20px;
- }
- </style>
- <div style="clear:both;"></div>
- <div style="padding:10px; display: none">
- <!-- 添加 class infinite-scroll 和 data-distance 向下无限滚动可不加infinite-scroll-bottom类,这里加上是为了和下面的向上无限滚动区分-->
- <div class=" infinite-scroll infinite-scroll-bottom" data-distance="100">
- <div class="list-block">
- <div class="list-container">
- <?php
- $parentThis['products'] = $bestFeaturedProducts;
- $parentThis['name'] = 'featured';
- $config = [
- 'view' => 'cms/home/index/product.php',
- ];
- echo Yii::$service->page->widget->renderContent('category_product_price',$config,$parentThis);
- ?>
-
- </div>
- </div>
-
- </div>
- </div>
- <div class="footer_bar">
- <div class="change-bar">
- <div class="c_left"><?= Yii::$service->page->translate->__('Language'); ?>: </div>
- <div class="c_right">
- <select class="lang" rel="">
- <?php foreach($stores as $store=> $langName): ?>
- <?php $selected = ""; ?>
- <?php if($store == $currentStore){ $selected = 'selected = "selected"'; } ?>
- <option <?= $selected ?> value="<?= '//'.$store ?>"><?= $langName ?></option>
- <?php endforeach; ?>
- </select>
- </div>
- <div class="clear"></div>
- </div>
-
- <div class="change-bar">
- <div class="c_left"><?= Yii::$service->page->translate->__('Currency'); ?>: </div>
- <div class="c_right">
- <select class="currency">
- <?php foreach($currencys as $c): ?>
- <?php $selected = ""; ?>
- <?php if($c['code'] == $currency['code']){ $selected = 'selected = "selected"'; } ?>
- <option <?= $selected ?> value="<?= $c['code'] ?>"><label><?= $c['symbol'] ?></label><?= $c['code'] ?></option>
- <?php endforeach; ?>
- </select>
- </div>
- <div class="clear"></div>
- </div>
- </div>
- <div class="footer-bottom">
- <?= Yii::$service->cms->staticblock->getStoreContentByIdentify('copy_right_apphtml5','appfront') ?>
- </div>
-
- <script>
- <?php $this->beginBlock('owl_fecshop_slider') ?>
- $.init();
- $(document).ready(function(){
- currentBaseUrl = "<?= $currentBaseUrl; ?>";
- $(".footer_bar .change-bar .lang").change(function(){
- redirectUrl = $(this).val();
- location.href=redirectUrl;
-
- });
-
- $(".footer_bar .change-bar .currency").change(function(){
- currency = $(this).val();
-
- htmlobj=$.ajax({url:currentBaseUrl+"/cms/home/changecurrency?currency="+currency,async:false});
- //alert(htmlobj.responseText);
- location.reload() ;
- });
-
- });
- <?php $this->endBlock(); ?>
- </script>
- <?php $this->registerJs($this->blocks['owl_fecshop_slider'],\yii\web\View::POS_END);//将编写的js代码注册到页面底部 ?>
|