Commit c75aa59e by lmf

修复bug

parent d8ab10ca
...@@ -80,33 +80,37 @@ if ($_attributeType && $_attributeType == 'text') { ...@@ -80,33 +80,37 @@ 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"'): ?>
<div class="joshine-desction"> <?= /* @noEscape */ $_attributeValue ?>
<div id="accordion" data-mage-init='{ <?php else:?>
<div class="joshine-desction">
<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> <div data-role="content">
<div data-role="content"> <div class="desction-info">
<div class="desction-info"> <?= /* @noEscape */ $_attributeValue ?>
<?= /* @noEscape */ $_attributeValue ?> <?= /* @noEscape */ $this->helper(Magento\Catalog\Helper\Output::class)->productAttribute(
<?= /* @noEscape */ $this->helper(Magento\Catalog\Helper\Output::class)->productAttribute( $block->getProduct(),
$block->getProduct(), $block->getProduct()->getDescription(),
$block->getProduct()->getDescription(), 'description'
'description' ) ?>
) ?> </div>
</div> </div>
</div> </div>
</div> </div>
</div>
<?php endif; ?>
</div> </div>
</div> </div>
<?php endif; ?> <?php endif; ?>
......
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