{
//console.log('Location Search', location.search);
let form = $refs.filter_form;
const queryString = new URLSearchParams(new FormData(form)).toString();
loading = true;
if (location.search.indexOf('filter') > -1 && location.search.indexOf('sort_by') > -1) {
//console.log('splitting sort by', location.search.split('&sort_by')[1]);
splitUrl = location.search.split('&sort_by')[1];
currentUrl = '/collections/store-localization/generic-dynamic-content-translation-75?' + queryString + '&sort_by' + splitUrl;
//console.log('Filter And Sort by word exist', currentUrl);
}else if (location.search.indexOf('sort_by') > -1) {
splitUrl = location.search.split('?');
currentUrl = '/collections/store-localization/generic-dynamic-content-translation-75?' + queryString + '&' + splitUrl[1];
//console.log('Sort By word exist', currentUrl);
}else{
currentUrl = '/collections/store-localization/generic-dynamic-content-translation-75?' + queryString;
//console.log('Filter word does not exist', currentUrl);
}
fetch(currentUrl)
.then(response => response.text())
.then(data => {
let html_div = document.createElement('div');
html_div.innerHTML = data;
let html_dom = html_div.querySelector('#MainCollectionDisplay').innerHTML;
document.querySelector('#MainCollectionDisplay').innerHTML = html_dom;
// Update the page without refreshing the page
if (location.search.indexOf('filter') > -1 && location.search.indexOf('sort_by') > -1) {
history.replaceState(null, null, '?' + queryString + '&sort_by' + splitUrl);
}else if (location.search.indexOf('sort_by') > -1) {
history.replaceState(null, null, '?' + queryString + '&' + splitUrl[1]);
}else{
history.replaceState(null, null, '?' + queryString);
}
document.querySelector('.collectionLeftSide').classList.remove('active');
document.querySelector('body').classList.remove('filterActive');
})
.catch(error => console.error('Error:', error))
.finally(() => loading = false);
})"
>
压力
压力会提高皮质醇和其他激素,对我们身体的能量水平和免疫系统造成严重破坏。通过改变生活方式和红景天和南非醉茄等补充剂中的营养物质来控制压力,可以帮助您的身体对压力的影响做出更有弹性的反应。*除了适应原草药外,其他补充剂包括 L-茶氨酸、双甘氨酸镁和蘑菇支持受压力影响的系统,例如如血压、精神疲劳和免疫健康。*