fix:concertando o footer

This commit is contained in:
Gustavo Rallenson Gonçalves Da Silva 2022-12-19 14:32:25 -03:00
parent 59d940e3fd
commit bd9fd28854
3 changed files with 10 additions and 2 deletions

View File

@ -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');

View File

@ -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

View File

@ -44,7 +44,7 @@
div{
border: 0 !important;
@include mq(xll, max) {
width: 100%;
width: 100% !important;
}
}
}