Commit c39ce46c by lmf

修复详情页位置

parent c75aa59e
...@@ -80,36 +80,36 @@ if ($_attributeType && $_attributeType == 'text') { ...@@ -80,36 +80,36 @@ if ($_attributeType && $_attributeType == 'text') {
<strong class="type"><?= $block->escapeHtml($_attributeLabel) ?></strong> <strong class="type"><?= $block->escapeHtml($_attributeLabel) ?></strong>
<?php endif; ?> <?php endif; ?>
<div class="value" <?= /* @noEscape */ $_attributeAddAttribute ?>> <div class="value" <?= /* @noEscape */ $_attributeAddAttribute ?>>
<?php if($_attributeAddAttribute != 'itemprop="description"'): ?> <!--商品描述部分-->
<?= /* @noEscape */ $_attributeValue ?> <?php if($_attributeAddAttribute == 'itemprop="description"'): ?>
<?php else:?> <div class="joshine-desction">
<div class="joshine-desction"> <div id="accordion" data-mage-init='{
<div id="accordion" data-mage-init='{
"accordion":{ "accordion":{
"active": [1, 2], "active": [1, 2],
"collapsible": true, "collapsible": true,
"openedState": "active", "openedState": "active",
"multipleCollapsible": true "multipleCollapsible": true
}}'> }}'>
<div data-role="collapsible"> <div data-role="collapsible">
<div data-role="trigger"> <div data-role="trigger">
<a class="desction-left info-desc" href="#">Description</a> <a class="desction-left info-desc" href="#">Description</a>
<a class="desction-right info-desc" href="#">+</a> <a class="desction-right info-desc" href="#">+</a>
</div>
</div> </div>
<div data-role="content"> </div>
<div class="desction-info"> <div data-role="content">
<?= /* @noEscape */ $_attributeValue ?> <div class="desction-info">
<?= /* @noEscape */ $this->helper(Magento\Catalog\Helper\Output::class)->productAttribute( <?= /* @noEscape */ $_attributeValue ?>
$block->getProduct(), <?= /* @noEscape */ $this->helper(Magento\Catalog\Helper\Output::class)->productAttribute(
$block->getProduct()->getDescription(), $block->getProduct(),
'description' $block->getProduct()->getDescription(),
) ?> 'description'
</div> ) ?>
</div> </div>
</div> </div>
</div> </div>
</div>
<?php else:?>
<?= /* @noEscape */ $_attributeValue ?>
<?php endif; ?> <?php endif; ?>
</div> </div>
</div> </div>
......
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