Commit 1eaa7415 by dhn

优惠券展开

parent 74d41df3
...@@ -21,11 +21,17 @@ $hasCouponCode = (bool) strlen($block->getCouponCode()); ...@@ -21,11 +21,17 @@ $hasCouponCode = (bool) strlen($block->getCouponCode());
padding:0px 1rem; padding:0px 1rem;
} }
</style> </style>
<!--
<div class="block discount" <div class="block discount"
id="block-discount" id="block-discount"
data-mage-init='{"collapsible":{"active": <?= $hasCouponCode ? 'true' : 'false' ?>, "openedState": "active", "saveState": false}}' data-mage-init='{"collapsible":{"active": <?= $hasCouponCode ? 'true' : 'false' ?>, "openedState": "active", "saveState": false}}'
> >
<div class="title" data-role="title" aria-controls="block-summary" role="tab" aria-selected="false" aria-expanded="false" tabindex="0"> -->
<div class="block discount"
id="block-discount"
data-mage-init='{"collapsible":{"active":"true", "openedState": "active", "saveState": false}}'
>
<div class="title" data-role="title" aria-controls="block-summary" role="tab" aria-selected="true" aria-expanded="true" tabindex="0">
<strong id="block-shipping-coupon" role="heading" aria-level="2"><?= __("Coupon Code") ?> </strong> <strong id="block-shipping-coupon" role="heading" aria-level="2"><?= __("Coupon Code") ?> </strong>
</div> </div>
<div class="content" data-role="content" aria-labelledby="block-discount-heading" style="display: block;"> <div class="content" data-role="content" aria-labelledby="block-discount-heading" style="display: block;">
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
*/ */
--> -->
<div class="payment-option _collapsible opc-payment-additional discount-code" <div class="payment-option _collapsible opc-payment-additional discount-code"
data-bind="mageInit: {'collapsible':{'active':false, 'openedState': '_active'}}" data-collapsible="true"> data-bind="mageInit: {'collapsible':{'active':true, 'openedState': '_active'}}" data-collapsible="true">
<div class="payment-option-title field choice" data-role="title"> <div class="payment-option-title field choice" data-role="title">
<span class="action action-toggle" id="block-discount-heading" role="heading" aria-level="2"> <span class="action action-toggle" id="block-discount-heading" role="heading" aria-level="2">
<!-- ko i18n: 'Apply Discount Code'--><!-- /ko --> <!-- ko i18n: 'Apply Discount Code'--><!-- /ko -->
......
...@@ -1493,6 +1493,7 @@ define([ ...@@ -1493,6 +1493,7 @@ define([
var galleryObject = element.data('gallery'); var galleryObject = element.data('gallery');
this.options.mediaGalleryInitial = galleryObject.returnCurrentImages(); this.options.mediaGalleryInitial = galleryObject.returnCurrentImages();
/*
if($('.swatch-attribute .swatch-option')) if($('.swatch-attribute .swatch-option'))
{ {
var swatchObj = $('.swatch-attribute'); var swatchObj = $('.swatch-attribute');
...@@ -1502,6 +1503,7 @@ define([ ...@@ -1502,6 +1503,7 @@ define([
$(swatchObj[i]).find('.swatch-option:first').trigger('click'); $(swatchObj[i]).find('.swatch-option:first').trigger('click');
} }
} }
*/
}, },
/** /**
......
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