0
A
回答
1
在文件app /設計/前端/ {您的主題} /default/template/catalin_seo/catalog/layer/price.phtml
更換
CatalinSeoHandler.bindPriceSlider();
隨着
var bindPriceSliderStop = false;
if(window.innerWidth < 770) {
jQuery('body').on('click', '.block-layered-nav .block-content.accordion-open > dl > dt.current', function(){
if(jQuery('.current .price-slider').length && !bindPriceSliderStop){
CatalinSeoHandler.bindPriceSlider();
bindPriceSliderStop = true;
}
});
}else{
CatalinSeoHandler.bindPriceSlider();
}
jQuery(window).on("orientationchange",function(event){
if(window.innerWidth > 770) {
catalinSeoHandlerMobile();
}else{
jQuery('body').on('click', '.block-layered-nav .block-content.accordion-open > dl > dt.current', function(){
if(jQuery('.current .price-slider').length){
catalinSeoHandlerMobile();
}
});
if(jQuery('.current .price-slider').length){
catalinSeoHandlerMobile();
}
}
});
function catalinSeoHandlerMobile(){
CatalinSeoHandler.priceSlider.currentMinPrice = parseFloat(jQuery('#price-min-display').text());
CatalinSeoHandler.priceSlider.currentMaxPrice = parseFloat(jQuery('#price-max-display').text());
CatalinSeoHandler.bindPriceSlider();
}
還有一個問題,價格滑塊不支持移動觸摸事件。如果你想解決這個問題,更換標準的Magento滑塊js文件
「JS/Scriptaculous的/ slider.js」
有了這個
相關問題
- 1. JQuery Mobile Slider Not ReEnabling
- 2. jquery scrollTop event on mobile not working
- 3. Anchor tag not working on mobile
- 4. jQuery Mobile Slider問題
- 5. Navbar not working mobile
- 6. jQuery Mobile Slider無限循環
- 7. 自定義jQuery Mobile Slider
- 8. Jquery Mobile Slider Touch事件
- 9. JQuery Mobile Slider vmouseup事件
- 10. fullCalendar eventClickClick on mobile
- 11. Jquery Mobile「pageinit」not firing
- 12. 「Mobile」Bootstrap-Navbar not working
- 13. Mobile Bootstrap nav not working
- 14. jQuery mobile ajax not loading
- 15. Body div collapsing on mobile
- 16. jQuery Mobile - $ .mobile.showPageLoading()on toggle
- 17. jquery mobile pagecontent beforeshow not working
- 18. Titanium Mobile Push Notifications callback not fired
- 19. magento price getPrice()value
- 20. Coda Slider和SEO
- 21. jQuery-Mobile controlgroup does not render
- 22. Mobile Safari Z-Index Not Working
- 23. Mobile Safari parallax scroll not working
- 24. Mobile Embedded Youtube Iframe not playing
- 25. jQuery Mobile listview style not applying
- 26. @media screen not moving for mobile
- 27. $ post is not working with jquery mobile
- 28. jQuery Mobile Slider輸出錯誤代碼
- 29. jquery mobile slider的半圓形狀
- 30. jQuery Mobile Slider輸入不夠寬
我可以確認這是行得通的。謝謝! –