update 21 files price

front
amir hosein gorji 2 years ago
parent 017a996105
commit 52a8e26e82
  1. 2
      package.json
  2. 4
      public/en.js
  3. 29
      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. 8
      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": {
"start": "node scripts/start.js ",
"build": "node scripts/build.js && npm run clean",
"build": "node scripts/build.js ",
"test": "node scripts/test.js",
"clean": "find ./build -name \"*.map\" -type f -delete"
},

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

@ -1,19 +1,13 @@
<!DOCTYPE html>
<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="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"
/>
<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" />
@ -21,13 +15,15 @@
<title>دانوین</title>
<!-- Google Tag Manager -->
<script src="ar.js"></script>
<script src="en.js"></script>
<script src="https://dnvn.ir/ar.js"></script>
<script src="https://dnvn.ir/en.js"></script>
<script>
const lang = localStorage.getItem("language");
window.lang = lang;
window.ar = ar;
window.en = en;
window.ratio = (lang == "en" || lang == "ar") ? (1 / 15000) : 1
function t(val) {
const lang_ = window[lang];
if (!lang_) return val;
@ -54,14 +50,8 @@
<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>
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WVV8H9L" height="0" width="0"
style="display: none; visibility: hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="root"></div>
<script>
@ -83,4 +73,5 @@
}
</script>
</body>
</html>

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

@ -50,7 +50,9 @@ class DeliveryMethod extends Component {
{data.name}
</strong>
<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 }}>
{window.t("تومان")}
</span>
@ -77,7 +79,9 @@ class DeliveryMethod extends Component {
{data.name}
</strong>
<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 }}>
{window.t("تومان")}
</span>

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

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

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

@ -50,7 +50,9 @@ class DeliveryMethod extends Component {
{data.name}
</strong>
<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 }}>
{window.t("تومان")}
</span>
@ -77,7 +79,9 @@ class DeliveryMethod extends Component {
{data.name}
</strong>
<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 }}>
{window.t("تومان")}
</span>

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

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

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

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

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

@ -57,7 +57,7 @@ class MyBooks extends Component {
</div>
<div className="mybooks-main-content-row1-text d-flex justify-content-between flex-column">
<div className="mybooks-main-content-row1-text-name">
{item.product.book.name} {"پایه"}
{item.product.book.name} {window.t("پایه")}
{grades[item.product.book.gradeId]}
</div>
<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-order-price ">
{window.t("مبلغ")} : <span>{item.payPrice}</span>{" "}
{window.t("مبلغ")} : <span>{window.tr(item.payPrice)}</span>{" "}
<span className="odcir2op-unit">{window.t("تومان")}</span>
</div>
<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>
</div>
</div>

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

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

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

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

Loading…
Cancel
Save