Commit 348709ac by lmf

添加购物车增加弹窗口效果

parent 74879b67
...@@ -121,3 +121,17 @@ ...@@ -121,3 +121,17 @@
} }
} }
</style> </style>
<script>
require(['jquery'], function ($) {
$(document).on('click','.tocart',function(event){
var minicart = $('[data-block="minicart"]');
setTimeout(function() {
minicart.find('[data-role="dropdownDialog"]').dropdownDialog('open');
}, 3000);
setTimeout(function() {
minicart.find('[data-role="dropdownDialog"]').dropdownDialog('close');
}, 10000);
event.stopPropagation();
});
});
</script>
...@@ -1982,3 +1982,7 @@ background-color: #000; ...@@ -1982,3 +1982,7 @@ background-color: #000;
} }
} }
.swatch-option.selected::before{
box-shadow: 0 0 0 1px inset rgba(var(--brand-color), var(--brand-alpha, 1)), 0 0 0 3px inset #ffffff;
}
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