Commit 40d3e5e1 by halweg

fix:修复翻页空白bug

parent ca60b27a
......@@ -82,4 +82,21 @@ class BlockHelper implements \Magento\Framework\Data\CollectionDataSourceInterfa
->setReviewId($reviewId);
}
public function translateSizeFits($value)
{
$default = __('True to Size');
if (intval($value) == 1) {
return __('Small');
}
if (intval($value) == 2) {
return __('True to Size');
}
if (intval($value) == 3) {
return __('Large');
}
return $default;
}
}
......@@ -129,7 +129,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div class="joshine-foot-mark rate-fit">
<div class="rate-fit-item">
<?php $fitsValue = $review->getSizeFits(); ?>
<span><strong class="joshine-font-w-bolder">Size Fits:</strong> <?= $t[$fitsValue] ?></span>
<span><strong class="joshine-font-w-bolder">Size Fits:</strong> <?= $helper->translateSizeFits($fitsValue); ?></span>
</div>
</div>
</div>
......@@ -231,7 +231,7 @@ $imagesBlock = $helper->getReviewImagesBlock(15, $block->getProductId());
<div class="row joshine-foot-mark">
<?php $fitsValue = $review->getSizeFits(); ?>
<span><strong class="joshine-font-w-bolder">Size Fits:</strong> <?= $t[$fitsValue] ?></span>
<span><strong class="joshine-font-w-bolder">Size Fits:</strong> <?= $helper->translateSizeFits($fitsValue); ?></span>
</div>
<div class="row joshine-font-w-bolder" style="font-size: .9em;">
......
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