update 21 files price

front
amir hosein gorji 2 years ago
parent 017a996105
commit 52a8e26e82
  1. 4
      package.json
  2. 4
      public/en.js
  3. 153
      public/index.html
  4. 4
      src/views/Callback/index.js
  5. 8
      src/views/Cart/DeliveryMethod/index.js
  6. 12
      src/views/Cart/Factor/index.js
  7. 16
      src/views/Cart/Table/index.js
  8. 6
      src/views/Cart/index.js
  9. 8
      src/views/Checkout/DeliveryMethod/index.js
  10. 16
      src/views/Checkout/Factor/index.js
  11. 6
      src/views/Checkout/Table/index.js
  12. 4
      src/views/Checkout/index.js
  13. 4
      src/views/Home/HomeScroll/Product/index.js
  14. 2
      src/views/Home/HomeSlider/Simple/index.js
  15. 2
      src/views/MyBooks/index.js
  16. 5
      src/views/Orders/index.js
  17. 4
      src/views/Product/AddToCart/index.js
  18. 4
      src/views/Product/index.js
  19. 2
      src/views/Products/Product/index.js
  20. 2
      src/views/Support/index.js

@ -110,7 +110,7 @@
}, },
"scripts": { "scripts": {
"start": "node scripts/start.js ", "start": "node scripts/start.js ",
"build": "node scripts/build.js && npm run clean", "build": "node scripts/build.js ",
"test": "node scripts/test.js", "test": "node scripts/test.js",
"clean": "find ./build -name \"*.map\" -type f -delete" "clean": "find ./build -name \"*.map\" -type f -delete"
}, },
@ -199,4 +199,4 @@
] ]
] ]
} }
} }

@ -299,7 +299,7 @@ const en = {
کاربر: "User", کاربر: "User",
وبلاگ: "weblog", وبلاگ: "weblog",
"کدملی / اتباع": "national ID / passport No.", "کدملی / اتباع": "national ID / passport No.",
تومان: "Toman", تومان: "$",
تعداد: "Number", تعداد: "Number",
محصول: "the product", محصول: "the product",
جستجو: "Search", جستجو: "Search",
@ -334,7 +334,7 @@ const en = {
دختر: "Girl", دختر: "Girl",
معلم: "Teacher", معلم: "Teacher",
مبلغ: "Amount", مبلغ: "Amount",
پایه: "the base", پایه: "grade",
اول: "First", اول: "First",
دوم: "Second", دوم: "Second",
سوم: "Third", سوم: "Third",

@ -1,86 +1,77 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"
user-scalable="false"
/>
<meta name="theme-color" content="#000000" />
<meta name="description" content="دانوین" />
<link
href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css"
rel="stylesheet"
/>
<meta name="mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>دانوین</title> <head>
<!-- Google Tag Manager --> <meta charset="utf-8" />
<script src="ar.js"></script> <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<script src="en.js"></script> <meta name="viewport" content="width=device-width, initial-scale=1" user-scalable="false" />
<script> <meta name="theme-color" content="#000000" />
const lang = localStorage.getItem("language"); <meta name="description" content="دانوین" />
window.lang = lang; <link href="https://api.mapbox.com/mapbox-gl-js/v1.10.1/mapbox-gl.css" rel="stylesheet" />
window.ar = ar; <meta name="mobile-web-app-capable" content="yes" />
window.en = en; <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
function t(val) { <meta name="apple-mobile-web-app-capable" content="yes" />
const lang_ = window[lang]; <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
if (!lang_) return val;
if (!lang_[val]) console.error(val);
return lang_[val] || "*" + val;
}
(function (w, d, s, l, i) { <title>دانوین</title>
w[l] = w[l] || []; <!-- Google Tag Manager -->
w[l].push({ <script src="https://dnvn.ir/ar.js"></script>
"gtm.start": new Date().getTime(), <script src="https://dnvn.ir/en.js"></script>
event: "gtm.js", <script>
}); const lang = localStorage.getItem("language");
var f = d.getElementsByTagName(s)[0], window.lang = lang;
j = d.createElement(s), window.ar = ar;
dl = l != "dataLayer" ? "&l=" + l : ""; window.en = en;
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-WVV8H9L");
</script>
<!-- End Google Tag Manager -->
</head>
<body> window.ratio = (lang == "en" || lang == "ar") ? (1 / 15000) : 1
<!-- Google Tag Manager (noscript) --> function t(val) {
<noscript const lang_ = window[lang];
><iframe if (!lang_) return val;
src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" if (!lang_[val]) console.error(val);
height="0" return lang_[val] || "*" + val;
width="0" }
style="display: none; visibility: hidden"
></iframe (function (w, d, s, l, i) {
></noscript> w[l] = w[l] || [];
<!-- End Google Tag Manager (noscript) --> w[l].push({
<div id="root"></div> "gtm.start": new Date().getTime(),
<script> event: "gtm.js",
if ("serviceWorker" in navigator) { });
window.addEventListener("load", function () { var f = d.getElementsByTagName(s)[0],
navigator.serviceWorker j = d.createElement(s),
.register("./serviceworker.js") dl = l != "dataLayer" ? "&l=" + l : "";
.then((registration) => { j.async = true;
// Registration was successful j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
console.log( f.parentNode.insertBefore(j, f);
"ServiceWorker registration successful with scope: ", })(window, document, "script", "dataLayer", "GTM-WVV8H9L");
registration.scope </script>
); <!-- End Google Tag Manager -->
}) </head>
.catch((err) => {
console.log(err); <body>
}); <!-- Google Tag Manager (noscript) -->
}); <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" height="0" width="0"
} style="display: none; visibility: hidden"></iframe></noscript>
</script> <!-- End Google Tag Manager (noscript) -->
</body> <div id="root"></div>
</html> <script>
if ("serviceWorker" in navigator) {
window.addEventListener("load", function () {
navigator.serviceWorker
.register("./serviceworker.js")
.then((registration) => {
// Registration was successful
console.log(
"ServiceWorker registration successful with scope: ",
registration.scope
);
})
.catch((err) => {
console.log(err);
});
});
}
</script>
</body>
</html>

@ -160,7 +160,7 @@ class Callback extends Component {
</h3> </h3>
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<strong style={{ fontSize: fontSize.mobile.h1 }}> <strong style={{ fontSize: fontSize.mobile.h1 }}>
{payPrice} {window.tr(payPrice)}
</strong> </strong>
<span style={{ fontSize: fontSize.mobile.h3 }}> <span style={{ fontSize: fontSize.mobile.h3 }}>
{window.t("تومان")} {window.t("تومان")}
@ -238,7 +238,7 @@ class Callback extends Component {
</h3> </h3>
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<strong style={{ fontSize: fontSize.mobile.h1 }}> <strong style={{ fontSize: fontSize.mobile.h1 }}>
{payPrice} {window.tr(payPrice)}
</strong> </strong>
<span style={{ fontSize: fontSize.mobile.h3 }}> <span style={{ fontSize: fontSize.mobile.h3 }}>
{window.t("تومان")} {window.t("تومان")}

@ -50,7 +50,9 @@ class DeliveryMethod extends Component {
{data.name} {data.name}
</strong> </strong>
<div className="d-flex flex-column align-items-center"> <div className="d-flex flex-column align-items-center">
<h3 style={{ fontSize: fontSize.desktop.h3 }}>{data.price}</h3> <h3 style={{ fontSize: fontSize.desktop.h3 }}>
{window.tr(data.price)}
</h3>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{window.t("تومان")} {window.t("تومان")}
</span> </span>
@ -77,7 +79,9 @@ class DeliveryMethod extends Component {
{data.name} {data.name}
</strong> </strong>
<div className="d-flex flex-column align-items-center"> <div className="d-flex flex-column align-items-center">
<h3 style={{ fontSize: fontSize.mobile.h3 }}>{data.price}</h3> <h3 style={{ fontSize: fontSize.mobile.h3 }}>
{window.tr(data.price)}
</h3>
<span style={{ fontSize: fontSize.mobile.span }}> <span style={{ fontSize: fontSize.mobile.span }}>
{window.t("تومان")} {window.t("تومان")}
</span> </span>

@ -34,7 +34,7 @@ const Factor = (props) => {
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("مبلغ سبد خرید")}</strong> <strong>{window.t("مبلغ سبد خرید")}</strong>
<span> <span>
{factorInfo.sumPrice} {window.t("تومان")} {window.tr(factorInfo.sumPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
{/* <div className="d-flex justify-content-between"> {/* <div className="d-flex justify-content-between">
@ -47,13 +47,13 @@ const Factor = (props) => {
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("میزان تخفیف")}</strong> <strong>{window.t("میزان تخفیف")}</strong>
<span> <span>
{factorInfo.offPrice} {window.t("تومان")} {window.tr(factorInfo.offPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("مالیات بر ارزش افزوده")}</strong> <strong>{window.t("مالیات بر ارزش افزوده")}</strong>
<span> <span>
{factorInfo.vatPrice} {window.t("تومان")} {window.tr(factorInfo.vatPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
</div> </div>
@ -65,7 +65,7 @@ const Factor = (props) => {
{window.t("مبلغ سبد خرید")} {window.t("مبلغ سبد خرید")}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.sumPrice} {window.t("تومان")} {window.tr(factorInfo.sumPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
{/* <div className="d-flex justify-content-between"> {/* <div className="d-flex justify-content-between">
@ -82,7 +82,7 @@ const Factor = (props) => {
{window.t("میزان تخفیف")} {window.t("میزان تخفیف")}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.offPrice} {window.t("تومان")} {window.tr(factorInfo.offPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
@ -90,7 +90,7 @@ const Factor = (props) => {
{window.t("مالیات بر ارزش افزوده")}{" "} {window.t("مالیات بر ارزش افزوده")}{" "}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.vatPrice} {window.t("تومان")} {window.tr(factorInfo.vatPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
</div> </div>

@ -199,14 +199,15 @@ const Item = (props) => {
/> />
<div className="mobile-cart-table-product__info d-flex flex-column p-1"> <div className="mobile-cart-table-product__info d-flex flex-column p-1">
<strong style={{ fontSize: fontSize.mobile.info.strong }}> <strong style={{ fontSize: fontSize.mobile.info.strong }}>
{`نسخه ${ {window.t("نسخه") +
+data.product.productType === 1 ` ${
? window.t("الکترونیکی") +data.product.productType === 1
: window.t("چاپی") ? window.t("الکترونیکی")
} ${data.product.book.name} `} : window.t("چاپی")
} ${data.product.book.name} `}
</strong> </strong>
<p style={{ fontSize: 12 }}> <p style={{ fontSize: 12 }}>
{`پایه ${grades[data.product.book.gradeId]}`} {window.t("پایه") + ` ${grades[data.product.book.gradeId]}`}
</p> </p>
<span style={{ fontSize: 10 }}> <span style={{ fontSize: 10 }}>
{window.t("همراه با:")} {window.t("همراه با:")}
@ -348,7 +349,8 @@ const Item = (props) => {
{data.product.price * data.count || "1000"} {window.t("تومان")} {data.product.price * data.count || "1000"} {window.t("تومان")}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.price.span }}> <span style={{ fontSize: fontSize.desktop.price.span }}>
{window.t("قیمت هر عدد")} {data.product.price || "100"} {window.t("قیمت هر عدد")}{" "}
{window.tr(data.product.price) || "100"}
{window.t("تومان")} {window.t("تومان")}
</span> </span>
</div> </div>

@ -214,7 +214,8 @@ class Cart extends Component {
</h3> </h3>
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<strong style={{ fontSize: fontSize.mobile.h1 }}> <strong style={{ fontSize: fontSize.mobile.h1 }}>
{factorInfo.payPrice - factorInfo.transportPrice} {(factorInfo.payPrice - factorInfo.transportPrice) *
window.ratio}
</strong> </strong>
<span style={{ fontSize: fontSize.mobile.h3 }}> <span style={{ fontSize: fontSize.mobile.h3 }}>
{window.t("تومان")} {window.t("تومان")}
@ -319,7 +320,8 @@ class Cart extends Component {
{factorInfo ? ( {factorInfo ? (
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<strong style={{ fontSize: fontSize.mobile.h1 }}> <strong style={{ fontSize: fontSize.mobile.h1 }}>
{factorInfo.payPrice - factorInfo.transportPrice} {(factorInfo.payPrice - factorInfo.transportPrice) *
window.ratio}
{/* // factorInfo.transportPrice - // factorInfo.offPrice} */} {/* // factorInfo.transportPrice - // factorInfo.offPrice} */}
</strong> </strong>
<span style={{ fontSize: fontSize.mobile.h3 }}> <span style={{ fontSize: fontSize.mobile.h3 }}>

@ -50,7 +50,9 @@ class DeliveryMethod extends Component {
{data.name} {data.name}
</strong> </strong>
<div className="d-flex flex-column align-items-center"> <div className="d-flex flex-column align-items-center">
<h3 style={{ fontSize: fontSize.desktop.h3 }}>{data.price}</h3> <h3 style={{ fontSize: fontSize.desktop.h3 }}>
{window.tr(data.price)}
</h3>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{window.t("تومان")} {window.t("تومان")}
</span> </span>
@ -77,7 +79,9 @@ class DeliveryMethod extends Component {
{data.name} {data.name}
</strong> </strong>
<div className="d-flex flex-column align-items-center"> <div className="d-flex flex-column align-items-center">
<h3 style={{ fontSize: fontSize.mobile.h3 }}>{data.price}</h3> <h3 style={{ fontSize: fontSize.mobile.h3 }}>
{window.tr(data.price)}
</h3>
<span style={{ fontSize: fontSize.mobile.span }}> <span style={{ fontSize: fontSize.mobile.span }}>
{window.t("تومان")} {window.t("تومان")}
</span> </span>

@ -34,26 +34,26 @@ const Factor = (props) => {
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("مبلغ سبد خرید")}</strong> <strong>{window.t("مبلغ سبد خرید")}</strong>
<span> <span>
{factorInfo.sumPrice} {window.t("تومان")} {window.tr(factorInfo.sumPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("هزینه ارسال")}</strong> <strong>{window.t("هزینه ارسال")}</strong>
<span> <span>
{factorInfo.transportPrice} {window.tr(factorInfo.transportPrice)}
{window.t("تومان")} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("میزان تخفیف")}</strong> <strong>{window.t("میزان تخفیف")}</strong>
<span> <span>
{factorInfo.offPrice} {window.t("تومان")} {window.tr(factorInfo.offPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
<strong>{window.t("مالیات بر ارزش افزوده")}</strong> <strong>{window.t("مالیات بر ارزش افزوده")}</strong>
<span> <span>
{factorInfo.vatPrice} {window.t("تومان")} {window.tr(factorInfo.vatPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
</div> </div>
@ -65,7 +65,7 @@ const Factor = (props) => {
{window.t("مبلغ سبد خرید")}{" "} {window.t("مبلغ سبد خرید")}{" "}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.sumPrice} {window.t("تومان")} {window.tr(factorInfo.sumPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
@ -73,7 +73,7 @@ const Factor = (props) => {
{window.t("هزینه ارسال")} {window.t("هزینه ارسال")}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.transportPrice} {window.tr(factorInfo.transportPrice)}
{window.t("تومان")} {window.t("تومان")}
</span> </span>
</div> </div>
@ -82,7 +82,7 @@ const Factor = (props) => {
{window.t("میزان تخفیف")} {window.t("میزان تخفیف")}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.offPrice} {window.t("تومان")} {window.tr(factorInfo.offPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
<div className="d-flex justify-content-between"> <div className="d-flex justify-content-between">
@ -90,7 +90,7 @@ const Factor = (props) => {
{window.t("مالیات بر ارزش افزوده")}{" "} {window.t("مالیات بر ارزش افزوده")}{" "}
</strong> </strong>
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{factorInfo.vatPrice} {window.t("تومان")} {window.tr(factorInfo.vatPrice)} {window.t("تومان")}
</span> </span>
</div> </div>
</div> </div>

@ -164,10 +164,10 @@ const Item = (props) => {
} ${data.product.book.name} `} } ${data.product.book.name} `}
</strong> </strong>
<p style={{ fontSize: 12 }}> <p style={{ fontSize: 12 }}>
{`پایه ${grades[data.product.book.gradeId]}`} {window.t("پایه") + ` ${grades[data.product.book.gradeId]}`}
</p> </p>
<span style={{ fontSize: 10 }}> <span style={{ fontSize: 10 }}>
همراه با: {window.t("همراه با")} :
{data.product.book.items || {data.product.book.items ||
window.t("کد فعالسازی محتوای الکترونیک")} window.t("کد فعالسازی محتوای الکترونیک")}
</span> </span>
@ -178,7 +178,7 @@ const Item = (props) => {
<div className="mobile-cart-table-price d-flex flex-column align-items-center"> <div className="mobile-cart-table-price d-flex flex-column align-items-center">
<div className="mobile-cart-table-price__price d-flex flex-column justify-content-center align-items-center"> <div className="mobile-cart-table-price__price d-flex flex-column justify-content-center align-items-center">
<strong style={{ fontSize: 14 }}> <strong style={{ fontSize: 14 }}>
{data.product.price * data.count || "1000"}{" "} {window.tr(data.product.price * data.count) || "1000"}{" "}
{window.t("تومان")} {window.t("تومان")}
</strong> </strong>
</div> </div>

@ -302,7 +302,7 @@ class Cart extends Component {
</h3> </h3>
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<strong style={{ fontSize: fontSize.mobile.h1 }}> <strong style={{ fontSize: fontSize.mobile.h1 }}>
{factorInfo.payPrice} {window.tr(factorInfo.payPrice)}
</strong> </strong>
<span style={{ fontSize: fontSize.mobile.h3 }}> <span style={{ fontSize: fontSize.mobile.h3 }}>
{window.t("تومان")} {window.t("تومان")}
@ -482,7 +482,7 @@ class Cart extends Component {
{factorInfo ? ( {factorInfo ? (
<div className="d-flex align-items-center"> <div className="d-flex align-items-center">
<strong style={{ fontSize: fontSize.mobile.h1 }}> <strong style={{ fontSize: fontSize.mobile.h1 }}>
{factorInfo.payPrice} {window.tr(factorInfo.payPrice)}
{/* // factorInfo.transportPrice - // factorInfo.offPrice} */} {/* // factorInfo.transportPrice - // factorInfo.offPrice} */}
</strong> </strong>
<span style={{ fontSize: fontSize.mobile.h3 }}> <span style={{ fontSize: fontSize.mobile.h3 }}>

@ -21,13 +21,13 @@ export default class Product extends Component {
{data.oldPrice ? ( {data.oldPrice ? (
<div> <div>
<div className="scroll-product__price--old d-flex"> <div className="scroll-product__price--old d-flex">
{data.oldPrice} {window.t("تومان")} {window.tr(data.oldPrice)} {window.t("تومان")}
<span></span> <span></span>
</div> </div>
</div> </div>
) : null} ) : null}
<div className="scroll-product__price--price"> <div className="scroll-product__price--price">
{data.price} {window.t("تومان")} {window.tr(data.price)} {window.t("تومان")}
</div> </div>
</div> </div>
) : ( ) : (

@ -49,7 +49,7 @@ export default class Simple extends Component {
style={{ fontSize: mobile ? 14 : fontSize.desktop.available }} style={{ fontSize: mobile ? 14 : fontSize.desktop.available }}
className="slider-simple__price--price d-flex" className="slider-simple__price--price d-flex"
> >
{data.price} {window.t("تومان")} {window.tr(data.price)} {window.t("تومان")}
</div> </div>
</div> </div>
) : ( ) : (

@ -57,7 +57,7 @@ class MyBooks extends Component {
</div> </div>
<div className="mybooks-main-content-row1-text d-flex justify-content-between flex-column"> <div className="mybooks-main-content-row1-text d-flex justify-content-between flex-column">
<div className="mybooks-main-content-row1-text-name"> <div className="mybooks-main-content-row1-text-name">
{item.product.book.name} {"پایه"} {item.product.book.name} {window.t("پایه")}
{grades[item.product.book.gradeId]} {grades[item.product.book.gradeId]}
</div> </div>
<div className="mybooks-main-content-row1-text-activation-date"> <div className="mybooks-main-content-row1-text-activation-date">

@ -85,12 +85,13 @@ class Orders extends Component {
<div className="order-data-container-item-row3 d-flex"> <div className="order-data-container-item-row3 d-flex">
<div className="order-data-container-item-row3-order-price "> <div className="order-data-container-item-row3-order-price ">
{window.t("مبلغ")} : <span>{item.payPrice}</span>{" "} {window.t("مبلغ")} : <span>{window.tr(item.payPrice)}</span>{" "}
<span className="odcir2op-unit">{window.t("تومان")}</span> <span className="odcir2op-unit">{window.t("تومان")}</span>
</div> </div>
<div className="order-data-container-item-row3-order-offcodeprice"> <div className="order-data-container-item-row3-order-offcodeprice">
{window.t("تخفیف")} : <span>{item.offPrice}</span>{" "} {window.t("تخفیف")} :{" "}
<span>{window.tr(item.offPrice)}</span>{" "}
<span className="odcir2oo-unit">{window.t("تومان")}</span> <span className="odcir2oo-unit">{window.t("تومان")}</span>
</div> </div>
</div> </div>

@ -83,7 +83,7 @@ function AddToCart(props) {
</div> </div>
<div style={{ float: "left" }}> <div style={{ float: "left" }}>
<strong style={{ fontSize: fontSize.desktop.strong }}> <strong style={{ fontSize: fontSize.desktop.strong }}>
{price} {window.tr(price)}
</strong>{" "} </strong>{" "}
{window.t("تومان")} {window.t("تومان")}
</div> </div>
@ -91,7 +91,7 @@ function AddToCart(props) {
{off ? ( {off ? (
<span style={{ fontSize: fontSize.desktop.span }}> <span style={{ fontSize: fontSize.desktop.span }}>
{off} {window.t("تومان تخفیف")} {window.tr(off)} {window.t("تومان تخفیف")}
</span> </span>
) : null} ) : null}
</div> </div>

@ -231,7 +231,7 @@ class Product extends Component {
/> />
<h1 style={{ fontSize: fontSize.mobile.h1 }}>{`${ <h1 style={{ fontSize: fontSize.mobile.h1 }}>{`${
info.name info.name
} پایه ${grades[info.gradeId]}`}</h1> } ${window.t("پایه")} ${grades[info.gradeId]}`}</h1>
<h2 style={{ fontSize: fontSize.mobile.h2 }}> <h2 style={{ fontSize: fontSize.mobile.h2 }}>
{page !== "digital" {page !== "digital"
? window.t("نسخه چاپی") ? window.t("نسخه چاپی")
@ -240,7 +240,7 @@ class Product extends Component {
<h3 style={{ fontSize: fontSize.mobile.h1 }}> <h3 style={{ fontSize: fontSize.mobile.h1 }}>
{page === "digital" {page === "digital"
? info.product[0].price ? info.product[0].price
: info.product[0].price}{" "} : window.tr(info.product[0].price)}{" "}
{window.t("تومان")} {window.t("تومان")}
</h3> </h3>
<div className="d-flex flex-column mt-3"> <div className="d-flex flex-column mt-3">

@ -68,7 +68,7 @@ function Product(props) {
> >
<h2> {window.t("نسخه چاپی")}</h2> <h2> {window.t("نسخه چاپی")}</h2>
<span> <span>
{product.product[0].price} {window.t("تومان")} {window.tr(product.product[0].price)} {window.t("تومان")}
</span> </span>
</Link> </Link>
<div <div

@ -133,7 +133,7 @@ class Support extends Component {
...new Set( ...new Set(
this.props.myProductList?.map((item) => [ this.props.myProductList?.map((item) => [
item.product.book.id, item.product.book.id,
`${item.product.book.name} پایه ${ `${item.product.book.name} ${window.t("پایه")} ${
grades[item.product.book.gradeId] grades[item.product.book.gradeId]
}`, }`,
]) || [] ]) || []

Loading…
Cancel
Save