forked from M3-Academy/m3-academy-template-checkout
fix:concertando o footer
This commit is contained in:
parent
59d940e3fd
commit
bd9fd28854
@ -23,6 +23,7 @@ export default class Header {
|
|||||||
});
|
});
|
||||||
this.MeuCarrinho = await waitElement("#cart-title");
|
this.MeuCarrinho = await waitElement("#cart-title");
|
||||||
this.Finalizar_Pedido = await waitElement("#orderform-title");
|
this.Finalizar_Pedido = await waitElement("#orderform-title");
|
||||||
|
this.Finalizar_Pagamento = await waitElement(".store-country-BRA");
|
||||||
this.step = document.querySelector('.completed');
|
this.step = document.querySelector('.completed');
|
||||||
this.prateleira = await waitElement(".footerCheckout__prateleira");
|
this.prateleira = await waitElement(".footerCheckout__prateleira");
|
||||||
this.Footer = await waitElement(".footerCheckout");
|
this.Footer = await waitElement(".footerCheckout");
|
||||||
@ -76,6 +77,7 @@ export default class Header {
|
|||||||
|| window.location.href == "https://m3academy.myvtex.com/checkout/#/profile"){
|
|| window.location.href == "https://m3academy.myvtex.com/checkout/#/profile"){
|
||||||
MeuCarrinho.classList.add('hide');
|
MeuCarrinho.classList.add('hide');
|
||||||
this.Finalizar_Pedido.classList.remove('hide')
|
this.Finalizar_Pedido.classList.remove('hide')
|
||||||
|
this.Finalizar_Pagamento.classList.add('hide');
|
||||||
if(li.children[1].id === "step_2"){
|
if(li.children[1].id === "step_2"){
|
||||||
step1.classList.remove('completed');
|
step1.classList.remove('completed');
|
||||||
step3.classList.remove('completed');
|
step3.classList.remove('completed');
|
||||||
@ -84,9 +86,14 @@ export default class Header {
|
|||||||
Footer.classList.remove('footerCheckout__ComSlick');
|
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"){
|
if(window.location.href =="https://m3academy.myvtex.com/checkout/#/payment"){
|
||||||
MeuCarrinho.classList.add('hide');
|
MeuCarrinho.classList.add('hide');
|
||||||
this.Finalizar_Pedido.classList.remove('hide')
|
this.Finalizar_Pedido.classList.remove('hide')
|
||||||
|
this.Finalizar_Pagamento.classList.remove('hide');
|
||||||
if(li.children[1].id === "step_3"){
|
if(li.children[1].id === "step_3"){
|
||||||
step1.classList.remove('completed');
|
step1.classList.remove('completed');
|
||||||
step2.classList.remove('completed');
|
step2.classList.remove('completed');
|
||||||
|
@ -45,6 +45,7 @@ export default class Footer {
|
|||||||
});
|
});
|
||||||
this.tbody = await waitElement(".accordion-inner");
|
this.tbody = await waitElement(".accordion-inner");
|
||||||
this.LapisAzul = await waitElement(".icon-edit");
|
this.LapisAzul = await waitElement(".icon-edit");
|
||||||
|
// this.HomeIcon = await waitElement(".delivery-address-title");
|
||||||
this.btnCep = await waitElement("#shipping-calculate-link");
|
this.btnCep = await waitElement("#shipping-calculate-link");
|
||||||
this.Dados_profile = document.querySelectorAll(".accordion-group")[1];
|
this.Dados_profile = document.querySelectorAll(".accordion-group")[1];
|
||||||
this.pay__Wrapper = document.createElement("div");
|
this.pay__Wrapper = document.createElement("div");
|
||||||
@ -80,7 +81,7 @@ export default class Footer {
|
|||||||
tbodywrapper.appendChild(this.more)
|
tbodywrapper.appendChild(this.more)
|
||||||
tbodywrapper.appendChild(this.Finalizar_btn)
|
tbodywrapper.appendChild(this.Finalizar_btn)
|
||||||
tbody.appendChild(tbodywrapper)
|
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")
|
const IconDev = document.querySelector(".footerCheckout__developedBy")
|
||||||
this.Finalizar_btn.innerHTML =`
|
this.Finalizar_btn.innerHTML =`
|
||||||
FINALIZAR COMPRA
|
FINALIZAR COMPRA
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
div{
|
div{
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
@include mq(xll, max) {
|
@include mq(xll, max) {
|
||||||
width: 100%;
|
width: 100% !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user