Commit 49d6abd9 by halweg

feat : 留言相册

parent 39829c19
...@@ -72,4 +72,14 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa ...@@ -72,4 +72,14 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa
->createBlock(ToolBar::class) ->createBlock(ToolBar::class)
->toHtml(); ->toHtml();
} }
public function getReviewImagesBlock($reviewId, $productId) : Images
{
return $this->blockFactory
->createBlock(Images::class)
->setProductId($productId)
->setReviewId($reviewId);
}
} }
...@@ -2,10 +2,9 @@ ...@@ -2,10 +2,9 @@
/** @var \Joshine\Review\Block\Images $block */ /** @var \Joshine\Review\Block\Images $block */
$collection = $block->getCollection(); $collection = $block->getCollection();
?> ?>
<?php if ($collection->getSize()): ?> <?php if ($collection->getSize()): ?>
<?php foreach ($collection as $item): ?> <?php foreach ($collection as $item): ?>
<div class="joshine-review-pic-item joshine-col-xs-4" data-amreview-js="slider-item" data-img-src="<?= $block->getFullImagePath($item) ?>" <div class="joshine-review-pic-item joshine-col-xs-4" data-img-src="<?= $block->getFullImagePath($item) ?>"
data-product-id="<?= $block->getProductId() ?>" data-product-id="<?= $block->getProductId() ?>"
data-reviews-id="<?= $block->getReviewId() ?>"> data-reviews-id="<?= $block->getReviewId() ?>">
<img class="review-image rounded" src="<?= $block->getResizedImagePath($item) ?>"/> <img class="review-image rounded" src="<?= $block->getResizedImagePath($item) ?>"/>
...@@ -14,3 +13,4 @@ $collection = $block->getCollection(); ...@@ -14,3 +13,4 @@ $collection = $block->getCollection();
<?php endif;?> <?php endif;?>
<style>
.joshine-model-warp .joshine-mask {
z-index: 1000;
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,.8);
}
</style>
<div class="joshine-model-warp joshine-hidden">
Place Your Contents Here
<div class="joshine-mask"></div>
</div>
...@@ -236,4 +236,13 @@ ...@@ -236,4 +236,13 @@
.joshine-review-container-mobile .joshine-review-item .fit-item .joshine-process .joshine-process-active{ .joshine-review-container-mobile .joshine-review-item .fit-item .joshine-process .joshine-process-active{
background-color: #222; background-color: #222;
border-radius: 4px; border-radius: 4px;
}
.modal-reviews-details__image-swiper .swiper-button-next {
cursor : url(static/frontend/Joshine/breeze/en_US/Joshine_Review/img/favicon-next.ico), auto;
}
.modal-reviews-details__image-swiper .swiper-button-prev {
cursor : url(static/frontend/Joshine/breeze/en_US/Joshine_Review/img/favicon-pre.ico), auto;
} }
\ No newline at end of file
...@@ -14,9 +14,6 @@ define([ ...@@ -14,9 +14,6 @@ define([
handler.handlePage($(this), event); handler.handlePage($(this), event);
}); });
/*$(document).on('click', '.joshine-review-pic-item', function (event) {
handler.handleReviewsImgClick($(this), event);
});*/
}, },
}); });
return $.mage.joshineReview return $.mage.joshineReview
......
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