|
|
@ -67,7 +67,7 @@ function Product(props) { |
|
|
|
className="mobile-products-product__links--physical d-flex justify-content-between align-items-center" |
|
|
|
className="mobile-products-product__links--physical d-flex justify-content-between align-items-center" |
|
|
|
> |
|
|
|
> |
|
|
|
<h2> نسخه چاپی</h2> |
|
|
|
<h2> نسخه چاپی</h2> |
|
|
|
<span>{product.product[1].price} تومان</span> |
|
|
|
<span>{product.product[0].price} تومان</span> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
<div |
|
|
|
<div |
|
|
|
className="mobile-products-product__links--basket d-flex" |
|
|
|
className="mobile-products-product__links--basket d-flex" |
|
|
@ -75,7 +75,7 @@ function Product(props) { |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
if (proxy.status()) |
|
|
|
if (proxy.status()) |
|
|
|
props.pushToCart({ |
|
|
|
props.pushToCart({ |
|
|
|
productId: product.product[1].id, |
|
|
|
productId: product.product[0].id, |
|
|
|
userId: props.id, |
|
|
|
userId: props.id, |
|
|
|
count: 1, |
|
|
|
count: 1, |
|
|
|
}); |
|
|
|
}); |
|
|
@ -84,7 +84,7 @@ function Product(props) { |
|
|
|
"afterLogin", |
|
|
|
"afterLogin", |
|
|
|
window.location.pathname |
|
|
|
window.location.pathname |
|
|
|
); |
|
|
|
); |
|
|
|
localStorage.setItem("pushToCart", product.product[1].id); |
|
|
|
localStorage.setItem("pushToCart", product.product[0].id); |
|
|
|
Navigate({ path: "/auth" }); |
|
|
|
Navigate({ path: "/auth" }); |
|
|
|
} |
|
|
|
} |
|
|
|
}} |
|
|
|
}} |
|
|
@ -92,13 +92,13 @@ function Product(props) { |
|
|
|
<img src={basket2} alt="" width="20px" height="20px" /> |
|
|
|
<img src={basket2} alt="" width="20px" height="20px" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="d-flex" style={{ width: "100%", opacity: 0.3 }}> |
|
|
|
{/* <div className="d-flex" style={{ width: "100%", opacity: 0.3 }}> |
|
|
|
<span |
|
|
|
<span |
|
|
|
to={`/products/digital/${product.id}`} |
|
|
|
to={`/products/digital/${product.id}`} |
|
|
|
className="mobile-products-product__links--ar d-flex justify-content-between align-items-center" |
|
|
|
className="mobile-products-product__links--ar d-flex justify-content-between align-items-center" |
|
|
|
> |
|
|
|
> |
|
|
|
<h2> الکترونیکی</h2> |
|
|
|
<h2> الکترونیکی</h2> |
|
|
|
{/* <span>{product.product[0].price} تومان</span> */} |
|
|
|
{/* <span>{product.product[0].price} تومان</span> |
|
|
|
|
|
|
|
|
|
|
|
<span> به زودی</span> |
|
|
|
<span> به زودی</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -116,7 +116,7 @@ function Product(props) { |
|
|
|
> |
|
|
|
> |
|
|
|
<img src={basket} alt="" width="20px" height="20px" /> |
|
|
|
<img src={basket} alt="" width="20px" height="20px" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> */} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
@ -143,7 +143,7 @@ function Product(props) { |
|
|
|
> |
|
|
|
> |
|
|
|
<h2 style={{ fontSize: 12 }}>نسخه چاپی</h2> |
|
|
|
<h2 style={{ fontSize: 12 }}>نسخه چاپی</h2> |
|
|
|
<span style={{ fontSize: 12 }}> |
|
|
|
<span style={{ fontSize: 12 }}> |
|
|
|
{product.product[1].price} تومان |
|
|
|
{product.product[0].price} تومان |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
<div |
|
|
|
<div |
|
|
@ -152,14 +152,14 @@ function Product(props) { |
|
|
|
onClick={() => { |
|
|
|
onClick={() => { |
|
|
|
if (proxy.status()) |
|
|
|
if (proxy.status()) |
|
|
|
props.pushToCart({ |
|
|
|
props.pushToCart({ |
|
|
|
productId: product.product[1].id, |
|
|
|
productId: product.product[0].id, |
|
|
|
userId: props.id, |
|
|
|
userId: props.id, |
|
|
|
count: 1, |
|
|
|
count: 1, |
|
|
|
}); |
|
|
|
}); |
|
|
|
else { |
|
|
|
else { |
|
|
|
toast.info("جهت ادامه فرآیند خرید وارد حساب خود شوید"); |
|
|
|
toast.info("جهت ادامه فرآیند خرید وارد حساب خود شوید"); |
|
|
|
localStorage.setItem("afterLogin", window.location.pathname); |
|
|
|
localStorage.setItem("afterLogin", window.location.pathname); |
|
|
|
localStorage.setItem("pushToCart", product.product[1].id); |
|
|
|
localStorage.setItem("pushToCart", product.product[0].id); |
|
|
|
Navigate({ path: "/auth" }); |
|
|
|
Navigate({ path: "/auth" }); |
|
|
|
} |
|
|
|
} |
|
|
|
}} |
|
|
|
}} |
|
|
@ -167,14 +167,14 @@ function Product(props) { |
|
|
|
<img src={basket2} alt="" width="20px" height="20px" /> |
|
|
|
<img src={basket2} alt="" width="20px" height="20px" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="d-flex" style={{ width: "100%", opacity: 0.3 }}> |
|
|
|
{/* <div className="d-flex" style={{ width: "100%", opacity: 0.3 }}> |
|
|
|
<div |
|
|
|
<div |
|
|
|
to={`/products/digital/${product.id}`} |
|
|
|
to={`/products/digital/${product.id}`} |
|
|
|
className="products-product--ar d-flex justify-content-between align-items-center" |
|
|
|
className="products-product--ar d-flex justify-content-between align-items-center" |
|
|
|
> |
|
|
|
> |
|
|
|
<h2 style={{ fontSize: 12 }}>نسخه الکترونیک</h2> |
|
|
|
<h2 style={{ fontSize: 12 }}>نسخه الکترونیک</h2> |
|
|
|
<span style={{ fontSize: 12 }}> |
|
|
|
<span style={{ fontSize: 12 }}> |
|
|
|
{/* {product.product[0].price} تومان */} |
|
|
|
{/* {product.product[0].price} تومان |
|
|
|
به زودی |
|
|
|
به زودی |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -192,7 +192,7 @@ function Product(props) { |
|
|
|
> |
|
|
|
> |
|
|
|
<img src={basket} alt="" width="20px" height="20px" /> |
|
|
|
<img src={basket} alt="" width="20px" height="20px" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> */} |
|
|
|
</article> |
|
|
|
</article> |
|
|
|
) : null} |
|
|
|
) : null} |
|
|
|
</> |
|
|
|
</> |
|
|
|