diff --git a/checkout/src/arquivos/js/components/Header.js b/checkout/src/arquivos/js/components/Header.js index d2fac82..46f66a1 100644 --- a/checkout/src/arquivos/js/components/Header.js +++ b/checkout/src/arquivos/js/components/Header.js @@ -23,6 +23,7 @@ export default class Header { }); this.MeuCarrinho = await waitElement("#cart-title"); this.Finalizar_Pedido = await waitElement("#orderform-title"); + this.Finalizar_Pagamento = await waitElement(".store-country-BRA"); this.step = document.querySelector('.completed'); this.prateleira = await waitElement(".footerCheckout__prateleira"); this.Footer = await waitElement(".footerCheckout"); @@ -76,6 +77,7 @@ export default class Header { || window.location.href == "https://m3academy.myvtex.com/checkout/#/profile"){ MeuCarrinho.classList.add('hide'); this.Finalizar_Pedido.classList.remove('hide') + this.Finalizar_Pagamento.classList.add('hide'); if(li.children[1].id === "step_2"){ step1.classList.remove('completed'); step3.classList.remove('completed'); @@ -84,9 +86,14 @@ export default class Header { Footer.classList.remove('footerCheckout__ComSlick'); } } + if(window.location.href == "https://m3academy.myvtex.com/checkout/#/shipping" + || window.location.href == "https://m3academy.myvtex.com/checkout/#/profile"){ + this.Finalizar_Pagamento.classList.remove('hide'); + } if(window.location.href =="https://m3academy.myvtex.com/checkout/#/payment"){ MeuCarrinho.classList.add('hide'); this.Finalizar_Pedido.classList.remove('hide') + this.Finalizar_Pagamento.classList.remove('hide'); if(li.children[1].id === "step_3"){ step1.classList.remove('completed'); step2.classList.remove('completed'); diff --git a/checkout/src/arquivos/js/components/app.js b/checkout/src/arquivos/js/components/app.js index 92bdb32..599589f 100644 --- a/checkout/src/arquivos/js/components/app.js +++ b/checkout/src/arquivos/js/components/app.js @@ -45,6 +45,7 @@ export default class Footer { }); this.tbody = await waitElement(".accordion-inner"); this.LapisAzul = await waitElement(".icon-edit"); + // this.HomeIcon = await waitElement(".delivery-address-title"); this.btnCep = await waitElement("#shipping-calculate-link"); this.Dados_profile = document.querySelectorAll(".accordion-group")[1]; this.pay__Wrapper = document.createElement("div"); @@ -80,7 +81,7 @@ export default class Footer { tbodywrapper.appendChild(this.more) tbodywrapper.appendChild(this.Finalizar_btn) tbody.appendChild(tbodywrapper) - console.log(this.LapisAzul,"lapis azul") + console.log(this.HomeIcon,"Lugar onde vocĂȘ colocara o icone") const IconDev = document.querySelector(".footerCheckout__developedBy") this.Finalizar_btn.innerHTML =` FINALIZAR COMPRA diff --git a/checkout/src/arquivos/sass/checkout/_checkout-carrinho.scss b/checkout/src/arquivos/sass/checkout/_checkout-carrinho.scss index ad53583..bec69bb 100644 --- a/checkout/src/arquivos/sass/checkout/_checkout-carrinho.scss +++ b/checkout/src/arquivos/sass/checkout/_checkout-carrinho.scss @@ -44,7 +44,7 @@ div{ border: 0 !important; @include mq(xll, max) { - width: 100%; + width: 100% !important; } } }