main
alireza khaji 3 years ago
parent 7db282d71d
commit 0cc6644633
  1. 308
      src/assets/img/Group 2275.svg
  2. BIN
      src/assets/img/Rolling-2s-223px.gif
  3. 45
      src/components/Button/index.js
  4. 47
      src/components/Product/index.js
  5. 4
      src/components/ShoppingCart/index.js
  6. 2
      src/redux/actions/index.js
  7. 13
      src/redux/actions/term.js
  8. 16
      src/redux/actions/user.js
  9. 1
      src/redux/reducers/index.js
  10. 24
      src/redux/reducers/term.js
  11. 17
      src/redux/reducers/user.js
  12. 375
      src/view/register/index.js
  13. 2
      src/view/services/index.js

@ -0,0 +1,308 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="267.45" height="175.05" viewBox="0 0 267.45 175.05">
<defs>
<clipPath id="clip-path">
<path id="Path_10388" data-name="Path 10388" d="M406.534,207.976a1.808,1.808,0,1,0,2.4-.872A1.808,1.808,0,0,0,406.534,207.976Z" transform="translate(-406.363 -206.933)" fill="#eb8175"/>
</clipPath>
<clipPath id="clip-path-2">
<path id="Path_10416" data-name="Path 10416" d="M508.381,289.447a1.726,1.726,0,1,0,2.428-.242A1.726,1.726,0,0,0,508.381,289.447Z" transform="translate(-507.99 -288.814)" fill="#eb8175"/>
</clipPath>
</defs>
<g id="Group_2275" data-name="Group 2275" transform="translate(-779 -335.41)">
<g id="Group_2228" data-name="Group 2228" transform="translate(970.252 496.551)">
<path id="Path_10428" data-name="Path 10428" d="M356.226,352.017H342.188a.837.837,0,1,0,0,1.674h14.038a.837.837,0,1,0,0-1.674Z" transform="translate(-341.351 -339.782)" fill="#ed7445"/>
<path id="Path_10429" data-name="Path 10429" d="M351.59,332.464a.457.457,0,0,0-.43-.3h-1.609a.457.457,0,0,0-.431.306l-4.529,12.959h11.72Z" transform="translate(-342.594 -332.163)" fill="#ed7445"/>
</g>
<path id="Path_10430" data-name="Path 10430" d="M350.135,336.552l-.716,2.047h5.644l-.745-2.047Z" transform="translate(625.805 162.703)" fill="#eceff1"/>
<path id="Path_10431" data-name="Path 10431" d="M347.177,345.016l-.716,2.047h9.367l-.745-2.047Z" transform="translate(626.94 159.455)" fill="#eceff1"/>
<g id="Group_2230" data-name="Group 2230" transform="translate(840.718 496.551)">
<path id="Path_10432" data-name="Path 10432" d="M148.026,352.017H133.988a.837.837,0,1,0,0,1.674h14.038a.837.837,0,1,0,0-1.674Z" transform="translate(-133.151 -339.782)" fill="#ed7445"/>
<path id="Path_10433" data-name="Path 10433" d="M143.39,332.464a.457.457,0,0,0-.43-.3h-1.608a.456.456,0,0,0-.431.306l-4.53,12.959h11.72Z" transform="translate(-134.394 -332.163)" fill="#ed7445"/>
</g>
<path id="Path_10434" data-name="Path 10434" d="M141.936,336.552l-.716,2.047h5.644l-.745-2.047Z" transform="translate(704.47 162.703)" fill="#eceff1"/>
<path id="Path_10435" data-name="Path 10435" d="M138.977,345.016l-.716,2.047h9.367l-.745-2.047Z" transform="translate(705.606 159.455)" fill="#eceff1"/>
<path id="Path_10436" data-name="Path 10436" d="M137.55,173.564H103.9v58.379h82.4v-101.8H137.55Z" transform="translate(718.79 241.914)" fill="#e8e8e8" opacity="0.5"/>
<path id="Path_10437" data-name="Path 10437" d="M297.255,154.278v-83.6H248.5V209.122h84.546V154.278Z" transform="translate(663.3 264.736)" fill="#e8e8e8" opacity="0.5"/>
<rect id="Rectangle_956" data-name="Rectangle 956" width="267.45" height="1.232" transform="translate(779 472.009)" fill="#516092"/>
<rect id="Rectangle_957" data-name="Rectangle 957" width="117.532" height="92.369" transform="translate(837.599 386.351)" fill="#bcccfd"/>
<rect id="Rectangle_958" data-name="Rectangle 958" width="117.532" height="81.906" transform="translate(837.599 396.814)" fill="#fff"/>
<circle id="Ellipse_252" data-name="Ellipse 252" cx="1.715" cy="1.715" r="1.715" transform="translate(840.095 389.667)" fill="#fff"/>
<path id="Path_10438" data-name="Path 10438" d="M147.4,160.434a1.715,1.715,0,1,1-1.715-1.715A1.715,1.715,0,0,1,147.4,160.434Z" transform="translate(703.414 230.948)" fill="#fff"/>
<path id="Path_10439" data-name="Path 10439" d="M159.234,160.434a1.715,1.715,0,1,1-1.715-1.715A1.715,1.715,0,0,1,159.234,160.434Z" transform="translate(698.873 230.948)" fill="#fff"/>
<path id="Path_10440" data-name="Path 10440" d="M221.251,162.861H172.877a2.928,2.928,0,0,1-2.928-2.928h0a2.928,2.928,0,0,1,2.928-2.928h48.374a2.928,2.928,0,0,1,2.928,2.928h0A2.928,2.928,0,0,1,221.251,162.861Z" transform="translate(693.445 231.606)" fill="#fff"/>
<path id="Path_10441" data-name="Path 10441" d="M291.108,162.861h-22.9a2.928,2.928,0,0,1-2.928-2.928h0a2.928,2.928,0,0,1,2.928-2.928h22.9a2.928,2.928,0,0,1,2.928,2.928h0A2.928,2.928,0,0,1,291.108,162.861Z" transform="translate(656.862 231.606)" fill="#fff"/>
<rect id="Rectangle_959" data-name="Rectangle 959" width="41.809" height="23.599" transform="translate(846.981 433.307)" fill="#bcccfd"/>
<rect id="Rectangle_960" data-name="Rectangle 960" width="41.809" height="23.599" transform="translate(846.981 404.344)" fill="#bcccfd"/>
<g id="Group_2234" data-name="Group 2234" transform="translate(847.344 462.868)">
<rect id="Rectangle_961" data-name="Rectangle 961" width="41.083" height="1.849" fill="#bcccfd"/>
</g>
<g id="Group_2235" data-name="Group 2235" transform="translate(847.344 469.03)">
<rect id="Rectangle_962" data-name="Rectangle 962" width="41.083" height="1.849" fill="#bcccfd"/>
</g>
<g id="Group_2236" data-name="Group 2236" transform="translate(903.245 462.868)">
<rect id="Rectangle_963" data-name="Rectangle 963" width="41.082" height="1.849" fill="#bcccfd"/>
</g>
<g id="Group_2237" data-name="Group 2237" transform="translate(903.245 469.03)">
<rect id="Rectangle_964" data-name="Rectangle 964" width="41.082" height="1.849" fill="#bcccfd"/>
</g>
<path id="Path_10442" data-name="Path 10442" d="M245.854,245.94H127.09v-93.6H245.854Zm-117.532-1.232h116.3V153.57h-116.3Z" transform="translate(709.893 233.397)" fill="#516092"/>
<g id="Group_2240" data-name="Group 2240" transform="translate(971.848 363.962)">
<path id="Path_10443" data-name="Path 10443" d="M358,218.48H345.941V117.006H358Zm-10.825-1.232h9.592V118.238h-9.592Z" transform="translate(-345.941 -117.006)" fill="#516092"/>
</g>
<rect id="Rectangle_965" data-name="Rectangle 965" width="15.358" height="11.006" transform="translate(970.198 459.565)" fill="#bcccfd"/>
<g id="Group_2241" data-name="Group 2241" transform="translate(972.057 441.6)">
<path id="Path_10444" data-name="Path 10444" d="M357.578,255.119H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.057h9.271Z" transform="translate(-346.28 -242.992)" fill="#516092"/>
</g>
<g id="Group_2242" data-name="Group 2242" transform="translate(972.057 430.486)">
<path id="Path_10445" data-name="Path 10445" d="M357.578,237.085H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.057h9.271Z" transform="translate(-346.28 -224.958)" fill="#516092"/>
</g>
<g id="Group_2243" data-name="Group 2243" transform="translate(972.057 419.373)">
<path id="Path_10446" data-name="Path 10446" d="M357.578,219.051H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.058h9.271Z" transform="translate(-346.28 -206.924)" fill="#516092"/>
</g>
<g id="Group_2244" data-name="Group 2244" transform="translate(972.057 408.26)">
<path id="Path_10447" data-name="Path 10447" d="M357.578,201.017H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.057h9.271Z" transform="translate(-346.28 -188.89)" fill="#516092"/>
</g>
<g id="Group_2245" data-name="Group 2245" transform="translate(972.057 397.146)">
<path id="Path_10448" data-name="Path 10448" d="M357.578,182.983H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.057h9.271Z" transform="translate(-346.28 -170.856)" fill="#516092"/>
</g>
<g id="Group_2246" data-name="Group 2246" transform="translate(972.057 386.033)">
<path id="Path_10449" data-name="Path 10449" d="M357.578,164.949H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.058h9.271Z" transform="translate(-346.28 -152.822)" fill="#516092"/>
</g>
<g id="Group_2247" data-name="Group 2247" transform="translate(972.057 374.92)">
<path id="Path_10450" data-name="Path 10450" d="M357.578,146.915H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.058h9.271Z" transform="translate(-346.28 -134.788)" fill="#516092"/>
</g>
<g id="Group_2248" data-name="Group 2248" transform="translate(972.057 363.806)">
<path id="Path_10451" data-name="Path 10451" d="M357.578,128.881H346.9a.616.616,0,0,1-.452-1.035l10.27-11.092.9.837-9.313,10.058h9.271Z" transform="translate(-346.28 -116.754)" fill="#516092"/>
</g>
<rect id="Rectangle_966" data-name="Rectangle 966" width="19.546" height="16.479" transform="translate(964.339 359.676)" fill="#4878e6"/>
<rect id="Rectangle_967" data-name="Rectangle 967" width="19.546" height="9.465" transform="translate(993.713 359.676)" fill="#4878e6"/>
<g id="Group_2249" data-name="Group 2249" transform="translate(915.774 359.647)">
<path id="Path_10452" data-name="Path 10452" d="M352.108,111.237H255.563a.616.616,0,1,1,0-1.232h96.545a.616.616,0,0,1,0,1.232Z" transform="translate(-254.947 -110.005)" fill="#516092"/>
</g>
<g id="Group_2250" data-name="Group 2250" transform="translate(920.875 363.139)">
<rect id="Rectangle_968" data-name="Rectangle 968" width="0.616" height="40.056" fill="#516092"/>
</g>
<path id="Path_10453" data-name="Path 10453" d="M356.614,110.338" transform="translate(621.811 249.515)" fill="#b0d8ff"/>
<rect id="Rectangle_969" data-name="Rectangle 969" width="25.835" height="4.843" transform="translate(964.959 468.604)" fill="#516092"/>
<g id="Group_2251" data-name="Group 2251" transform="translate(916.257 354.864)">
<path id="Path_10454" data-name="Path 10454" d="M313.658,108.1a.307.307,0,0,1-.218-.091l-5.147-5.147H261.1l-4.84,4.839a.308.308,0,1,1-.436-.436l5.02-5.02h47.706l5.328,5.328a.308.308,0,0,1-.218.526Z" transform="translate(-255.731 -102.243)" fill="#516092"/>
</g>
<g id="Group_2252" data-name="Group 2252" transform="translate(990.001 350.096)">
<path id="Path_10455" data-name="Path 10455" d="M398.743,105.128a.308.308,0,0,1-.273-.165l-5.152-9.841H380.825l-4.844,9.53a.308.308,0,1,1-.549-.279l5.016-9.867h13.245l5.324,10.172a.308.308,0,0,1-.273.451Z" transform="translate(-375.398 -94.505)" fill="#516092"/>
</g>
<path id="Path_10456" data-name="Path 10456" d="M264.577,114.264a2.26,2.26,0,1,1-2.26-2.259A2.26,2.26,0,0,1,264.577,114.264Z" transform="translate(658.865 248.875)" fill="#bcccfd"/>
<rect id="Rectangle_970" data-name="Rectangle 970" width="51.818" height="26.704" transform="translate(893.69 407.151) rotate(-5.28)" fill="#bcccfd"/>
<g id="Group_2253" data-name="Group 2253" transform="translate(934.235 340.949)">
<path id="Path_10457" data-name="Path 10457" d="M285.212,94.189a.308.308,0,0,1-.09-.6l45.623-13.91a.306.306,0,0,1,.21.01l21.623,9.126a.308.308,0,1,1-.24.568L330.818,80.3,285.3,94.176A.3.3,0,0,1,285.212,94.189Z" transform="translate(-284.904 -79.662)" fill="#516092"/>
</g>
<g id="Group_2254" data-name="Group 2254" transform="translate(972.371 340.624)">
<path id="Path_10458" data-name="Path 10458" d="M347.406,99.271a.618.618,0,0,1-.576-.836l7.184-18.9a.616.616,0,0,1,1.18.1l3.714,18.436a.616.616,0,0,1-1.208.243l-3.292-16.343-6.425,16.907A.617.617,0,0,1,347.406,99.271Z" transform="translate(-346.79 -79.135)" fill="#516092"/>
</g>
<path id="Path_10459" data-name="Path 10459" d="M359.915,79.362a1.242,1.242,0,1,1-1.242-1.242A1.242,1.242,0,0,1,359.915,79.362Z" transform="translate(621.497 261.879)" fill="#bcccfd"/>
<g id="Group_2255" data-name="Group 2255" transform="translate(921.186 354.864)">
<path id="Path_10460" data-name="Path 10460" d="M270.591,108.156a.307.307,0,0,1-.193-.068l-6.051-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.308.308,0,0,1,.5-.24l6.553,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-263.73 -102.242)" fill="#516092"/>
</g>
<g id="Group_2256" data-name="Group 2256" transform="translate(927.037 354.864)">
<path id="Path_10461" data-name="Path 10461" d="M280.086,108.156a.306.306,0,0,1-.193-.068l-6.052-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.308.308,0,0,1,.5-.24l6.554,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-273.225 -102.242)" fill="#516092"/>
</g>
<g id="Group_2257" data-name="Group 2257" transform="translate(932.889 354.864)">
<path id="Path_10462" data-name="Path 10462" d="M289.582,108.156a.3.3,0,0,1-.194-.068l-6.051-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.308.308,0,0,1,.5-.24l6.553,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-282.721 -102.242)" fill="#516092"/>
</g>
<g id="Group_2258" data-name="Group 2258" transform="translate(938.741 354.864)">
<path id="Path_10463" data-name="Path 10463" d="M299.077,108.156a.3.3,0,0,1-.193-.068l-6.052-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.309.309,0,0,1,.5-.24l6.552,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-292.216 -102.242)" fill="#516092"/>
</g>
<g id="Group_2259" data-name="Group 2259" transform="translate(944.592 354.864)">
<path id="Path_10464" data-name="Path 10464" d="M308.572,108.156a.307.307,0,0,1-.193-.068l-6.052-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.309.309,0,0,1,.5-.24l6.553,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-301.711 -102.242)" fill="#516092"/>
</g>
<g id="Group_2260" data-name="Group 2260" transform="translate(950.444 354.864)">
<path id="Path_10465" data-name="Path 10465" d="M318.068,108.156a.306.306,0,0,1-.193-.068l-6.052-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.308.308,0,0,1,.5-.24l6.554,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-311.207 -102.242)" fill="#516092"/>
</g>
<g id="Group_2261" data-name="Group 2261" transform="translate(956.295 354.864)">
<path id="Path_10466" data-name="Path 10466" d="M327.563,108.156a.307.307,0,0,1-.193-.068l-6.052-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.309.309,0,0,1,.5-.24l6.553,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-320.702 -102.242)" fill="#516092"/>
</g>
<g id="Group_2262" data-name="Group 2262" transform="translate(962.147 354.864)">
<path id="Path_10467" data-name="Path 10467" d="M337.059,108.156a.307.307,0,0,1-.194-.068l-6.051-4.891v4.573a.308.308,0,1,1-.616,0v-5.218a.308.308,0,0,1,.5-.24l6.553,5.3a.308.308,0,0,1-.194.548Z" transform="translate(-330.198 -102.242)" fill="#516092"/>
</g>
<g id="Group_2263" data-name="Group 2263" transform="translate(994.889 350.244)">
<path id="Path_10468" data-name="Path 10468" d="M392.042,105.279a.307.307,0,0,1-.235-.109l-7.859-9.275v9a.308.308,0,0,1-.616,0V95.055a.308.308,0,0,1,.543-.2l8.4,9.917a.308.308,0,0,1-.235.507Z" transform="translate(-383.331 -94.746)" fill="#516092"/>
</g>
<g id="Group_2264" data-name="Group 2264" transform="translate(1002.783 350.245)">
<path id="Path_10469" data-name="Path 10469" d="M403,105.279a.31.31,0,0,1-.258-.138l-5.988-9.061v8.813a.308.308,0,1,1-.616,0V95.055a.308.308,0,0,1,.565-.17l6.553,9.916a.308.308,0,0,1-.256.478Z" transform="translate(-396.14 -94.747)" fill="#516092"/>
</g>
<path id="Path_10470" data-name="Path 10470" d="M264.457,180.8a1.94,1.94,0,1,1-1.94-1.941A1.94,1.94,0,0,1,264.457,180.8Z" transform="translate(658.666 223.22)" fill="#ed7445"/>
<g id="Group_2266" data-name="Group 2266" transform="translate(816.046 442.738)">
<rect id="Rectangle_971" data-name="Rectangle 971" width="1.232" height="29.579" fill="#516092"/>
</g>
<g id="Group_2267" data-name="Group 2267" transform="translate(792.629 442.738)">
<rect id="Rectangle_972" data-name="Rectangle 972" width="1.232" height="29.579" fill="#516092"/>
</g>
<rect id="Rectangle_973" data-name="Rectangle 973" width="30.947" height="11.4" transform="translate(789.547 445.51)" fill="#e3ebff"/>
<path id="Path_10471" data-name="Path 10471" d="M96.791,261.122V250.338L91.1,261.122Z" transform="translate(723.704 195.789)" fill="#ed7445"/>
<path id="Path_10472" data-name="Path 10472" d="M68.6,260.739h6.619l6.015-11.4H74.615Z" transform="translate(732.339 196.172)" fill="#ed7445"/>
<path id="Path_10473" data-name="Path 10473" d="M53.656,249.338l-3.541,6.711v4.689H54.26l6.015-11.4Z" transform="translate(739.432 196.172)" fill="#ed7445"/>
<g id="Group_2268" data-name="Group 2268" transform="translate(788.007 463.69)">
<rect id="Rectangle_974" data-name="Rectangle 974" width="33.893" height="1.232" fill="#516092"/>
</g>
<g id="Group_2270" data-name="Group 2270" transform="translate(1030.498 442.738)">
<rect id="Rectangle_975" data-name="Rectangle 975" width="1.232" height="29.579" fill="#516092"/>
</g>
<g id="Group_2271" data-name="Group 2271" transform="translate(1007.08 442.738)">
<rect id="Rectangle_976" data-name="Rectangle 976" width="1.232" height="29.579" fill="#516092"/>
</g>
<rect id="Rectangle_977" data-name="Rectangle 977" width="30.947" height="11.4" transform="translate(1003.999 445.51)" fill="#e3ebff"/>
<path id="Path_10474" data-name="Path 10474" d="M444.789,261.122V250.338l-5.69,10.784Z" transform="translate(590.157 195.789)" fill="#ed7445"/>
<path id="Path_10475" data-name="Path 10475" d="M416.6,260.739h6.619l6.015-11.4h-6.619Z" transform="translate(598.792 196.172)" fill="#ed7445"/>
<path id="Path_10476" data-name="Path 10476" d="M401.655,249.338l-3.541,6.711v4.689h4.145l6.015-11.4Z" transform="translate(605.885 196.172)" fill="#ed7445"/>
<g id="Group_2272" data-name="Group 2272" transform="translate(1002.458 463.69)">
<rect id="Rectangle_978" data-name="Rectangle 978" width="33.893" height="1.232" fill="#516092"/>
</g>
<g id="Group_2274" data-name="Group 2274" transform="translate(820.509 468.603)">
<path id="Path_10477" data-name="Path 10477" d="M115.232,306.666H101.194a.837.837,0,1,0,0,1.674h14.038a.837.837,0,1,0,0-1.674Z" transform="translate(-100.357 -294.431)" fill="#ed7445"/>
<path id="Path_10478" data-name="Path 10478" d="M110.6,287.112a.457.457,0,0,0-.43-.3h-1.609a.457.457,0,0,0-.431.306L103.6,300.077h11.72Z" transform="translate(-101.6 -286.812)" fill="#ed7445"/>
</g>
<path id="Path_10479" data-name="Path 10479" d="M109.141,291.2l-.716,2.047h5.644l-.745-2.047Z" transform="translate(717.055 180.107)" fill="#eceff1"/>
<path id="Path_10480" data-name="Path 10480" d="M106.183,299.665l-.716,2.047h9.367l-.745-2.047Z" transform="translate(718.191 176.859)" fill="#eceff1"/>
<path id="Path_10481" data-name="Path 10481" d="M106.786,124.905a4.764,4.764,0,0,0-2.759.878v-1.359a7.087,7.087,0,0,0-14.174,0V127.1a3.576,3.576,0,0,0-6.041,2.6h27.766A4.793,4.793,0,0,0,106.786,124.905Z" transform="translate(736.697 246.212)" fill="#f2f6ff"/>
<path id="Path_10482" data-name="Path 10482" d="M203.537,94.848a3.466,3.466,0,0,0-2.008.639V94.5a5.16,5.16,0,0,0-10.319,0v1.95a2.6,2.6,0,0,0-4.4,1.89h20.215A3.489,3.489,0,0,0,203.537,94.848Z" transform="translate(686.974 257.573)" fill="#f2f6ff"/>
<g id="Group_2166" data-name="Group 2166" transform="translate(829.108 382.947)">
<g id="Group_2162" data-name="Group 2162">
<g id="Group_2161" data-name="Group 2161" transform="translate(0 5.933)">
<g id="Group_2160" data-name="Group 2160" transform="translate(0 2.066)">
<path id="Path_10363" data-name="Path 10363" d="M378.42,261.551l-1.074.041-.628-.2a.683.683,0,0,0-.773.269l-.079.118,3.139,1.734.607-1.3Z" transform="translate(-375.842 -261.361)" fill="#14103d"/>
<path id="Path_10364" data-name="Path 10364" d="M378.96,263.918,375.8,262.17l.111-.2a.081.081,0,0,1,.111-.032l3.092,1.708-.15.272" transform="translate(-375.796 -261.738)" fill="#14103d"/>
</g>
<path id="Path_10365" data-name="Path 10365" d="M384.679,258.114l.829-1.435-.829-1.481-1.192,2.256Z" transform="translate(-380.909 -255.198)" fill="#eb8175"/>
</g>
<path id="Path_10366" data-name="Path 10366" d="M390.445,238.09s-4.474-1.284-4.9-.076-3.4,7.432-3.4,7.432l1.922,1.144,3.309-6.083,3.932-.342Z" transform="translate(-380.177 -237.497)" fill="#14103d"/>
</g>
<g id="Group_2165" data-name="Group 2165" transform="translate(4.537 0.388)">
<g id="Group_2164" data-name="Group 2164" transform="translate(0 6.865)">
<g id="Group_2163" data-name="Group 2163" transform="translate(0 2.564)">
<path id="Path_10367" data-name="Path 10367" d="M391.454,266.787l-.876.558-.646.13a.683.683,0,0,0-.545.61l-.012.141,3.586-.005-.1-1.433Z" transform="translate(-389.36 -266.787)" fill="#14103d"/>
<path id="Path_10368" data-name="Path 10368" d="M392.946,270.521l-3.615.005V270.3a.082.082,0,0,1,.082-.082l3.533-.006v.311" transform="translate(-389.331 -269.063)" fill="#14103d"/>
</g>
<path id="Path_10369" data-name="Path 10369" d="M396.986,261.7l.115-2.4-1.428-.161-.092,2.564Z" transform="translate(-393.485 -259.137)" fill="#eb8175"/>
</g>
<path id="Path_10370" data-name="Path 10370" d="M398.742,238.655l-4.216.192s-.606.034-.566,1.453,0,7.839,0,7.839h2.073l.377-6.621,4.221-.052a2.271,2.271,0,0,0,2.069-1.338,1.653,1.653,0,0,0,.116-1.031Z" transform="translate(-392.407 -238.655)" fill="#231c61"/>
</g>
</g>
<g id="Group_2173" data-name="Group 2173" transform="translate(832.872 376.377)">
<g id="Group_2168" data-name="Group 2168" transform="translate(1.657 0.055)">
<g id="Group_2167" data-name="Group 2167" transform="translate(0 5.33)">
<path id="Path_10371" data-name="Path 10371" d="M393.42,234.684c0,.4-.27.461-.671.462s-.778-.058-.778-.459a.724.724,0,0,1,1.449,0Z" transform="translate(-391.971 -233.961)" fill="#e1ad9d"/>
<path id="Path_10372" data-name="Path 10372" d="M395.361,235.76l-.837,0a.4.4,0,0,1-.4-.4h0a.4.4,0,0,1,.4-.4l.837,0a.4.4,0,0,1,.4.4h0A.4.4,0,0,1,395.361,235.76Z" transform="translate(-393.403 -234.628)" fill="#e1ad9d"/>
</g>
<path id="Path_10373" data-name="Path 10373" d="M397.162,224.605l-.28-1.371,3.443-.375.689-4.022a1.045,1.045,0,0,1,.964-.75l-.105-.03a.82.82,0,0,1,.632.86l-.67,4.811a.674.674,0,0,1-.5.529Z" transform="translate(-395.236 -218.058)" fill="#c8c6f2"/>
</g>
<path id="Path_10374" data-name="Path 10374" d="M411.584,218.068a.734.734,0,0,1,.207.048l.035.013a1.7,1.7,0,0,1,1.018,1.459l-.538,5.707c-3.567-.031-4.074-.442-4.074-.442l.284-5.838c.043-.55.3-1.069.923-1.12h0Z" transform="translate(-401.124 -217.895)" fill="#d8d7fd"/>
<g id="Group_2171" data-name="Group 2171" transform="translate(5.085 0.834)">
<g id="Group_2170" data-name="Group 2170">
<g id="Group_2169" data-name="Group 2169" transform="translate(0 5.047)">
<path id="Path_10375" data-name="Path 10375" d="M403.643,236.118c.027.4-.239.478-.638.5s-.78-.006-.807-.406a.725.725,0,1,1,1.446-.1Z" transform="translate(-402.196 -235.443)" fill="#eb8175"/>
<path id="Path_10376" data-name="Path 10376" d="M405.61,237l-.835.057a.4.4,0,0,1-.424-.369h0a.4.4,0,0,1,.37-.424l.835-.057a.4.4,0,0,1,.424.369h0A.4.4,0,0,1,405.61,237Z" transform="translate(-403.627 -235.948)" fill="#eb8175"/>
</g>
<path id="Path_10377" data-name="Path 10377" d="M407.3,226.568l-.37-1.349,3.752-.6-.213-3.489a.872.872,0,0,1,.819-.74h0a.82.82,0,0,1,.688.816l.27,4.18a.674.674,0,0,1-.466.561Z" transform="translate(-405.341 -220.384)" fill="#d8d7fd"/>
</g>
</g>
<g id="Group_2172" data-name="Group 2172" transform="translate(0 2.36)">
<path id="Path_10378" data-name="Path 10378" d="M388.043,225l4.093.386a.287.287,0,0,1,.258.252l.429,3.689a.287.287,0,0,1-.311.318l-4.161-.392a.286.286,0,0,1-.258-.257l-.361-3.682A.286.286,0,0,1,388.043,225Z" transform="translate(-387.494 -224.979)" fill="#091218"/>
<path id="Path_10379" data-name="Path 10379" d="M387.339,224.936l4.094.386a.286.286,0,0,1,.257.252l.43,3.689a.287.287,0,0,1-.311.318l-4.162-.392a.287.287,0,0,1-.258-.257l-.362-3.682A.286.286,0,0,1,387.339,224.936Z" transform="translate(-387.026 -224.935)" fill="#1b2934"/>
<path id="Path_10380" data-name="Path 10380" d="M402.2,237.989l2.8.264a.155.155,0,0,1,.14.169h0a.155.155,0,0,1-.169.14L402,238.293Z" transform="translate(-396.98 -233.614)" fill="#091218"/>
<path id="Path_10381" data-name="Path 10381" d="M393.187,230.642a.448.448,0,1,1-.4-.488A.449.449,0,0,1,393.187,230.642Z" transform="translate(-390.528 -228.403)" fill="#fff"/>
</g>
<path id="Path_10382" data-name="Path 10382" d="M410.335,225l.092,2.623-3.5.664,3.084-.963Z" transform="translate(-400.257 -222.619)" fill="#c8c6f2"/>
</g>
<g id="Group_2179" data-name="Group 2179" transform="translate(838.837 371.388)">
<g id="Group_2177" data-name="Group 2177" transform="translate(0.516 1.315)">
<path id="Path_10383" data-name="Path 10383" d="M411.556,215.8l.234.628a.616.616,0,0,0,.535.4h0a.615.615,0,0,0,.607-.855l-.41-.964Z" transform="translate(-409.815 -212.303)" fill="#eb8175"/>
<path id="Path_10384" data-name="Path 10384" d="M411.642,215.592s1.153-.218.983-1.226-1.254-.222-1.254-.222l.106,1.006Z" transform="translate(-409.693 -211.533)" fill="#e16c5f"/>
<g id="Group_2176" data-name="Group 2176">
<g id="Group_2175" data-name="Group 2175">
<path id="Path_10385" data-name="Path 10385" d="M406.534,207.976a1.808,1.808,0,1,0,2.4-.872A1.808,1.808,0,0,0,406.534,207.976Z" transform="translate(-406.363 -206.933)" fill="#eb8175"/>
<g id="Group_2174" data-name="Group 2174" clip-path="url(#clip-path)">
<path id="Path_10386" data-name="Path 10386" d="M407.813,207.575s-.285,1.449.78,1.48.485-2.717.485-2.717l-1.685-1.7-2.578.635.256,1.667s.41.218,2.627-.148Z" transform="translate(-405.334 -205.41)" fill="#231c61"/>
<path id="Path_10387" data-name="Path 10387" d="M410.621,210.011l.847,1.239.73-.807Z" transform="translate(-409.194 -208.979)" fill="#231c61"/>
</g>
</g>
<path id="Path_10389" data-name="Path 10389" d="M412.816,211.8a.511.511,0,1,0,.68-.247A.511.511,0,0,0,412.816,211.8Z" transform="translate(-410.621 -209.976)" fill="#eb8175"/>
</g>
</g>
<g id="Group_2178" data-name="Group 2178">
<path id="Path_10390" data-name="Path 10390" d="M405.66,205.832a2.524,2.524,0,0,1,.533-2.308,1.854,1.854,0,0,1,2.684.127,2.843,2.843,0,0,1,.6,1.809Z" transform="translate(-405.325 -203.011)" fill="#f5d100"/>
<path id="Path_10391" data-name="Path 10391" d="M406.387,208.752l-.011-.89a.419.419,0,0,1,.4-.424h0a.419.419,0,0,1,.436.377l.089.888" transform="translate(-405.855 -205.954)" fill="none" stroke="#f1ab00" stroke-miterlimit="10" stroke-width="0.28"/>
<line id="Line_371" data-name="Line 371" x1="4.15" y2="0.398" transform="translate(0 2.45)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.121"/>
</g>
</g>
<g id="Group_2185" data-name="Group 2185" transform="translate(913.83 480.448)">
<g id="Group_2182" data-name="Group 2182" transform="translate(5.934 1.098)">
<path id="Path_10392" data-name="Path 10392" d="M527.8,353.776l.878.85-1,.538-.857-.84Z" transform="translate(-521.625 -345.628)" fill="#eb8175"/>
<path id="Path_10393" data-name="Path 10393" d="M510.387,329.807l.587,2.6a4.125,4.125,0,0,0,.668,1.477l3.861,3.469,2.085-.856-3.854-3.878-1.208-4.6Z" transform="translate(-510.387 -328.01)" fill="#14103d"/>
<g id="Group_2181" data-name="Group 2181" transform="translate(5.228 8.681)">
<path id="Path_10394" data-name="Path 10394" d="M527.716,356.29,527.4,357.3l-.361.5a.641.641,0,0,0,.015.768l.082.1,2.463-2.3-.985-.922Z" transform="translate(-526.918 -355.458)" fill="#14103d"/>
<path id="Path_10395" data-name="Path 10395" d="M529.675,357.933l-2.483,2.313-.2-.213,2.483-2.313.2.213" transform="translate(-526.969 -357.005)" fill="#14103d"/>
</g>
</g>
<g id="Group_2184" data-name="Group 2184">
<path id="Path_10396" data-name="Path 10396" d="M500.072,358.156l-.329,1.1-1.131-.3.331-1.079Z" transform="translate(-496.402 -347.33)" fill="#eb8175"/>
<path id="Path_10397" data-name="Path 10397" d="M500.992,324.537,497.533,336l2.183.352,1.89-5.978,2.19-3.511a4.828,4.828,0,0,0,.313-.491,2.075,2.075,0,0,0,.25-1.023l-.008-.7Z" transform="translate(-495.806 -324.537)" fill="#231c61"/>
<g id="Group_2183" data-name="Group 2183" transform="translate(0 11.516)">
<path id="Path_10398" data-name="Path 10398" d="M493.935,360.952l-1,.369-.623.022a.646.646,0,0,0-.6.485l-.033.13,3.347.551.128-1.353Z" transform="translate(-491.659 -360.952)" fill="#14103d"/>
<path id="Path_10399" data-name="Path 10399" d="M495,364.122l-3.373-.555.048-.29,3.373.555-.048.29" transform="translate(-491.623 -362.542)" fill="#14103d"/>
</g>
</g>
</g>
<g id="Group_2196" data-name="Group 2196" transform="translate(910.973 466.266)">
<g id="Group_2190" data-name="Group 2190">
<g id="Group_2186" data-name="Group 2186">
<path id="Path_10400" data-name="Path 10400" d="M491.278,290.156l-1.28,2,.613.44,1.325-2.113Z" transform="translate(-487.655 -286.847)" fill="#334fbe"/>
<path id="Path_10401" data-name="Path 10401" d="M484.551,279.692a5.278,5.278,0,0,0,3.588,3.45.236.236,0,0,1,.164.191.907.907,0,0,1-.624,1.09.239.239,0,0,1-.187-.03,7.792,7.792,0,0,0-4.9-1.225Z" transform="translate(-482.591 -279.692)" fill="#4265d1"/>
<path id="Path_10402" data-name="Path 10402" d="M484.551,279.692s-.549,2.469-1.96,3.476A5.333,5.333,0,0,1,484.551,279.692Z" transform="translate(-482.591 -279.692)" fill="#334fbe"/>
</g>
<g id="Group_2189" data-name="Group 2189" transform="translate(1.911 4.505)">
<g id="Group_2188" data-name="Group 2188">
<g id="Group_2187" data-name="Group 2187">
<path id="Path_10403" data-name="Path 10403" d="M488.648,294.608a1.015,1.015,0,0,0,.736,1.1.84.84,0,0,0,.991-.655,1.015,1.015,0,0,0-.736-1.1A.84.84,0,0,0,488.648,294.608Z" transform="translate(-488.634 -293.937)" fill="#eb8175"/>
</g>
<path id="Path_10404" data-name="Path 10404" d="M493.111,298.273l-.887-.927-.58.713,1.467,1.075" transform="translate(-490.692 -296.268)" fill="#eb8175"/>
</g>
<path id="Path_10405" data-name="Path 10405" d="M493.809,297.568l-.938,1.394,2.565,2.348a1.356,1.356,0,0,0,.482.046l3.386-.439a.967.967,0,0,0,.92-1.012h0c-.025-.534.077-1.306-.457-1.281l-3.934.808Z" transform="translate(-491.531 -296.42)" fill="#c8c6f2"/>
</g>
</g>
<g id="Group_2192" data-name="Group 2192" transform="translate(7.831 6.705)">
<g id="Group_2191" data-name="Group 2191">
<path id="Path_10406" data-name="Path 10406" d="M511.306,303.04a1.945,1.945,0,0,0-.873-1.874,1.25,1.25,0,0,0-.763-.268A1.919,1.919,0,0,0,508,302.229a36.045,36.045,0,0,0-.65,6.133l3.63.124Z" transform="translate(-507.353 -300.892)" fill="#d8d7fd"/>
</g>
<path id="Path_10407" data-name="Path 10407" d="M515.615,308.05l1.091,4.011.221-3.4Z" transform="translate(-513.002 -305.786)" fill="#c8c6f2"/>
</g>
<g id="Group_2195" data-name="Group 2195" transform="translate(9.719 7.114)">
<g id="Group_2194" data-name="Group 2194" transform="translate(3.527 6.577)">
<g id="Group_2193" data-name="Group 2193" transform="translate(0.242 1.593)">
<path id="Path_10408" data-name="Path 10408" d="M526.644,329.62a1.015,1.015,0,0,0,.056-1.324.839.839,0,0,0-1.186-.056,1.015,1.015,0,0,0-.057,1.324A.84.84,0,0,0,526.644,329.62Z" transform="translate(-525.24 -328.022)" fill="#eb8175"/>
</g>
<path id="Path_10409" data-name="Path 10409" d="M524.474,323.319l.662,1.633.889-.234-.55-1.734" transform="translate(-524.474 -322.985)" fill="#eb8175"/>
</g>
<path id="Path_10410" data-name="Path 10410" d="M516.892,310.359l1.818-.4-1.233-4.216a1.35,1.35,0,0,0-.218-.433L515,302.494c-.306-.438-.822-.36-1.26-.054h0a.968.968,0,0,0-.24,1.347l2.18,2.621Z" transform="translate(-513.323 -302.188)" fill="#d8d7fd"/>
</g>
</g>
<g id="Group_2202" data-name="Group 2202" transform="translate(918.633 467.963)">
<g id="Group_2200" data-name="Group 2200" transform="translate(0.373 1.187)">
<path id="Path_10411" data-name="Path 10411" d="M511.991,298.072l.069.636a.587.587,0,0,0,.4.494h0a.587.587,0,0,0,.763-.647l-.153-.989Z" transform="translate(-510.726 -294.798)" fill="#eb8175"/>
<path id="Path_10412" data-name="Path 10412" d="M512.08,297.555s1.121-.037,1.2-1.009-1.111-.393-1.111-.393l-.138.955Z" transform="translate(-510.754 -293.715)" fill="#e16c5f"/>
<g id="Group_2199" data-name="Group 2199">
<g id="Group_2198" data-name="Group 2198">
<path id="Path_10413" data-name="Path 10413" d="M508.381,289.447a1.726,1.726,0,1,0,2.428-.242A1.726,1.726,0,0,0,508.381,289.447Z" transform="translate(-507.99 -288.814)" fill="#eb8175"/>
<g id="Group_2197" data-name="Group 2197" clip-path="url(#clip-path-2)">
<path id="Path_10414" data-name="Path 10414" d="M509.979,289.693s-.6,1.273.374,1.553,1.087-2.4,1.087-2.4l-1.16-1.965-2.534-.019-.155,1.6s.328.3,2.464.481Z" transform="translate(-507.717 -287.48)" fill="#231c61"/>
<path id="Path_10415" data-name="Path 10415" d="M512.908,291.715l.492,1.345.865-.575Z" transform="translate(-511.353 -290.798)" fill="#231c61"/>
</g>
</g>
<path id="Path_10417" data-name="Path 10417" d="M514.322,294.231a.488.488,0,1,0,.687-.068A.488.488,0,0,0,514.322,294.231Z" transform="translate(-512.244 -292.396)" fill="#eb8175"/>
</g>
</g>
<g id="Group_2201" data-name="Group 2201" transform="translate(0 0)">
<path id="Path_10418" data-name="Path 10418" d="M507.815,287.374a2.407,2.407,0,0,1,.952-2.05,1.77,1.77,0,0,1,2.482.647,2.713,2.713,0,0,1,.2,1.807Z" transform="translate(-507.497 -285.06)" fill="#f5d100"/>
<path id="Path_10419" data-name="Path 10419" d="M508.413,289.933l.165-.833a.4.4,0,0,1,.456-.317h0a.4.4,0,0,1,.333.437l-.091.847" transform="translate(-507.906 -287.602)" fill="none" stroke="#f1ab00" stroke-miterlimit="10" stroke-width="0.283"/>
<line id="Line_372" data-name="Line 372" x1="3.954" y1="0.445" transform="translate(0 2.274)" fill="none" stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.133"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

@ -1,27 +1,30 @@
import React from "react"; import React from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
const Button = ( const Button = ({
{ onClick,
onClick, title,
title, borderType,
borderType, to,
to, type,
type, className,
className, submit,
submit loading,
} }) => {
) => { return (
return ( <Link
<Link to={to ? to : ""}
to={to ? to : ''} className={`${className} Login-box-form-btn w-full h-12 ${
className={`${className} Login-box-form-btn w-full h-12 ${borderType ? borderType : 'rounded-lg'} border border-solid border-red52 ${type == 'outlined' ? 'text-red52' : 'text-white bg-red52'} flex items-center justify-center mt-4`} borderType ? borderType : "rounded-lg"
onClick={onClick} } border border-solid border-red52 ${
> type == "outlined" ? "text-red52" : "text-white bg-red52"
{submit ? <input type="submit" value={title}/> : } flex items-center justify-center mt-4`}
title} onClick={onClick}
</Link> style={loading ? {pointerEvents:"none",display:"none"}:null}
); >
{submit ? <input type="submit" value={title} /> : title}
</Link>
);
}; };
export default Button; export default Button;

@ -48,7 +48,9 @@ const ProductDesign = ({
}) => { }) => {
const [isHovering, setIsHovering] = useState(false); const [isHovering, setIsHovering] = useState(false);
// alert(catId); // alert(catId);
console.log("userInfo:*******************************************************"); console.log(
"userInfo:*******************************************************"
);
console.log(userInfo); console.log(userInfo);
let rulesAccepted = userInfo.rulesAccepted; let rulesAccepted = userInfo.rulesAccepted;
const emkanat = [ const emkanat = [
@ -82,7 +84,21 @@ const ProductDesign = ({
}, },
]; ];
let weekday =["شنبه","یکشنبه","دوشنبه","سهشنبه","چهارشنبه","پنچشنبه","جمعه"] //completeProfule-----------
const completeProfule=(id)=>{
localStorage.setItem("termId",id)
}
//---------------------------
let weekday = [
"شنبه",
"یکشنبه",
"دوشنبه",
"سهشنبه",
"چهارشنبه",
"پنچشنبه",
"جمعه",
];
let description = "دستشویی,کتابخانه,آزمایشگاه"; let description = "دستشویی,کتابخانه,آزمایشگاه";
if (catId == 3) { if (catId == 3) {
return ( return (
@ -148,6 +164,9 @@ const ProductDesign = ({
<Link <Link
to="/register" to="/register"
className="w-36 py-2 px-1 rounded-md text-white bg-[#F2F9FF] text-[#4C7FE3] flex items-center justify-center cursor-pointer text-xs text-center border-2 border-[#4C7FE3]" className="w-36 py-2 px-1 rounded-md text-white bg-[#F2F9FF] text-[#4C7FE3] flex items-center justify-center cursor-pointer text-xs text-center border-2 border-[#4C7FE3]"
onClick={() => {
completeProfule(product?.termId);
}}
> >
تکمیل اطلاعات کاربری و افزودن به سبد خرید تکمیل اطلاعات کاربری و افزودن به سبد خرید
</Link> </Link>
@ -175,7 +194,10 @@ const ProductDesign = ({
} }
if (catId == 5) { if (catId == 5) {
return ( return (
<div className="w-full flex justify-center px-6" style={isMobile?{padding:"0px 5px"}:null}> <div
className="w-full flex justify-center px-6"
style={isMobile ? { padding: "0px 5px" } : null}
>
<div <div
className={`flex ${ className={`flex ${
isMobile ? "flex-col w-full border-red52" : "border-red82OP pt-4" isMobile ? "flex-col w-full border-red52" : "border-red82OP pt-4"
@ -301,7 +323,9 @@ const ProductDesign = ({
</div> </div>
<div <div
className={`flex px-4 ${ className={`flex px-4 ${
isMobile ? "w-full border-red82OP border-t px-1" : "w-2/5 py-4" isMobile
? "w-full border-red82OP border-t px-1"
: "w-2/5 py-4"
} justify-between items-center`} } justify-between items-center`}
> >
<h1 <h1
@ -312,11 +336,24 @@ const ProductDesign = ({
> >
{productPrice} تومان {productPrice} تومان
</h1> </h1>
<div style={isMobile ? {width:"100%",display:'flex',justifyContent:'center'}:null}> <div
style={
isMobile
? {
width: "100%",
display: "flex",
justifyContent: "center",
}
: null
}
>
{!rulesAccepted && ( {!rulesAccepted && (
<Link <Link
to="/register" to="/register"
className="w-36 py-2 px-1 rounded-md text-white bg-[#F2F9FF] text-[#4C7FE3] flex items-center justify-center cursor-pointer text-xs text-center border-2 border-[#4C7FE3]" className="w-36 py-2 px-1 rounded-md text-white bg-[#F2F9FF] text-[#4C7FE3] flex items-center justify-center cursor-pointer text-xs text-center border-2 border-[#4C7FE3]"
onClick={() => {
completeProfule(product?.termId);
}}
> >
تکمیل اطلاعات کاربری و رزرو پیش ثبت نام تکمیل اطلاعات کاربری و رزرو پیش ثبت نام
</Link> </Link>

@ -117,7 +117,7 @@ function ShoppingCart({
className="w-full px-1 h-12 mt-1 text-white bg-red52 rounded-lg text-sm font-semibold" className="w-full px-1 h-12 mt-1 text-white bg-red52 rounded-lg text-sm font-semibold"
onClick={() => onClick={() =>
paySchool({ paySchool({
redirectUrl: "https://new.andishmand.ir/services", redirectUrl: "https://new.andishmand.ir/myServices",
}) })
} }
> >
@ -260,7 +260,7 @@ function ShoppingCart({
style={{ fontSize: "0.65vw" }} style={{ fontSize: "0.65vw" }}
onClick={() => onClick={() =>
paySchool({ paySchool({
redirectUrl: "http://localhost:3000/myServices", redirectUrl: "https://new.andishmand.ir/myServices",
}) })
} }
> >

@ -12,6 +12,8 @@ export { default as file } from "./file";
export {default as scrollAction} from "./scroll"; export {default as scrollAction} from "./scroll";
export {default as qr} from "./qr"; export {default as qr} from "./qr";
export { default as userTransaction } from "./userTransaction"; export { default as userTransaction } from "./userTransaction";
export { default as term } from "./term";

@ -0,0 +1,13 @@
import proxy from "../proxy";
const term = {
info:
(data = {}) =>
async (dispatch) =>
await proxy.get("term/info", data, { dispatch }),
};
export default term;

@ -40,6 +40,10 @@ const user = {
(data = {}) => (data = {}) =>
async (dispatch) => async (dispatch) =>
await proxy.get("user/getProfile", data, { dispatch }), await proxy.get("user/getProfile", data, { dispatch }),
info:
(data = {}) =>
async (dispatch) =>
await proxy.get("user/info", data, { dispatch }),
setProfile: setProfile:
(data = {}, data2 = {}) => (data = {}, data2 = {}) =>
async (dispatch) => { async (dispatch) => {
@ -58,13 +62,13 @@ const user = {
await proxy.delete("user/delete", data); await proxy.delete("user/delete", data);
await proxy.get("user/list", data2, { dispatch }); await proxy.get("user/list", data2, { dispatch });
}, },
bnLogin: (data) => async (dispatch) => bnLogin: (data) => async (dispatch) =>
await proxy.login("user/login", data, { dispatch }), await proxy.login("user/login", data, { dispatch }),
setUserStatus: () => async (dispatch) => { setUserStatus: () => async (dispatch) => {
let userDataString = localStorage.getItem('userData'); let userDataString = localStorage.getItem("userData");
let userData = JSON.parse(userDataString); let userData = JSON.parse(userDataString);
dispatch({type: 'SET_USER_STATUS', data: userData}) dispatch({ type: "SET_USER_STATUS", data: userData });
} },
}; };
export default user; export default user;

@ -12,3 +12,4 @@ export {default as scrollAction} from "./scroll";
export {default as qr} from "./qr"; export {default as qr} from "./qr";
export {default as addExamReduser} from "./exam"; export {default as addExamReduser} from "./exam";
export { default as userTransaction } from "./userTransaction"; export { default as userTransaction } from "./userTransaction";
export { default as term } from "./term";

@ -0,0 +1,24 @@
import proxy from "../proxy";
import { toast } from "react-toastify";
const initialState = {
loading: false,
error: null,
info:null
};
export default function term(state = initialState, action) {
let { type, data } = action;
switch (type) {
case "term/info":
return {
...state,
loading: false,
info: data.rules,
error: null,
};
default:
return state;
}
}

@ -53,23 +53,30 @@ export default function user(state = initialState, action) {
setLogin: !state.setLogin, setLogin: !state.setLogin,
}; };
case "user/getProfile": case "user/getProfile":
case "user/info":
localStorage.setItem("userData", JSON.stringify(data)); localStorage.setItem("userData", JSON.stringify(data));
return { ...state, loading: false, status: data, error: null, setDone: false, }; return {
...state,
loading: false,
status: data,
error: null,
setDone: false,
};
case "user/logout": case "user/logout":
window.location.reload() window.location.reload();
return { ...state, loading: false, status: proxy.status(), error: null }; return { ...state, loading: false, status: proxy.status(), error: null };
case "user/getUserRole": case "user/getUserRole":
return { ...state, loading: false, userRoles: data, error: null }; return { ...state, loading: false, userRoles: data, error: null };
case "user/setProfile": case "user/setProfile":
toast.success("تغییرات اعمال شد."); toast.success("تغییرات اعمال شد.");
window.location.replace("/services"); // window.location.replace("/services");
return { ...state, loading: false, error: null, setDone: true }; return { ...state, loading: false, error: null, setDone: true };
case "loading": case "loading":
return { ...state, loading: true }; return { ...state, loading: true };
case "error": case "error":
return { ...state, loading: false, error: data.message }; return { ...state, loading: false, error: data.message };
case 'SET_USER_STATUS': case "SET_USER_STATUS":
return {...state, status: data}; return { ...state, status: data };
default: default:
return state; return state;
} }

@ -20,11 +20,13 @@ import Checkbox from "../../components/Checkbox";
import { ostan } from "../../constants/states"; import { ostan } from "../../constants/states";
import { cities } from "../../constants/cities"; import { cities } from "../../constants/cities";
import _onInput from "../../utils/onInput"; import _onInput from "../../utils/onInput";
import { file, publicApi, user } from "../../redux/actions"; import { file, publicApi, user,term } from "../../redux/actions";
import { VscDebugBreakpointUnsupported } from "react-icons/vsc"; import { VscDebugBreakpointUnsupported } from "react-icons/vsc";
import axios from "axios"; import axios from "axios";
import { ApiConfig } from "../../constants/defaultValues"; import { ApiConfig } from "../../constants/defaultValues";
import { toast } from "react-toastify"; import { toast } from "react-toastify";
import moment from "jalali-moment";
import loadingGiff from "../../assets/img/Rolling-2s-223px.gif";
const Register = ({ const Register = ({
activeLogin, activeLogin,
@ -36,6 +38,9 @@ const Register = ({
city, city,
user, user,
getUserInfo, getUserInfo,
loading,
getRulse,
termInfo
}) => { }) => {
const [steps, setSteps] = useState(0); const [steps, setSteps] = useState(0);
console.log("user:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"); console.log("user:&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
@ -47,13 +52,16 @@ const Register = ({
getUserInfo(); getUserInfo();
getProvince(); getProvince();
getCity(); getCity();
getRulse({ id: localStorage.getItem("termId") });
}, []); }, []);
console.log("termInfo:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
console.log(termInfo);
useEffect(() => { useEffect(() => {
if (user?.firstName !== null) { if (user?.firstName !== null) {
setUserInfo(user); setUserInfo(user);
} }
if(user?.rulesAccepted){ if (user?.rulesAccepted) {
setActiveStep([true, true, true, true]); setActiveStep([true, true, true, true]);
setSteps(3); setSteps(3);
} }
@ -115,46 +123,19 @@ const Register = ({
}); });
//ark added //ark added
const [userInfo, setUserInfo]=useState(user); const [userInfo, setUserInfo] = useState(user);
//ark added //ark added
// const [userInfo, setUserInfo] = useState({ const findCity = (id) => {
// firstName: null, let cityName = "";
// lastName: null, console.log("province:");
// nationalId: null, console.log(province);
// birthDate: null, for (let i = 0; i < province?.length; i++) {
// gender: null, if (province[i].id === id) {
// gradeIds: null, cityName = province[i].name;
// previousSchoolName: null, }
// previousSchoolType: null, }
// cityId: null, return cityName;
// provinceId: null, };
// zone: null,
// fatherInfo: {
// firstName: null,
// nationalId: null,
// lastName: null,
// job: null,
// education: null,
// cellphone: null,
// workPlace: null,
// workPhone: null,
// },
// motherInfo: {
// firstName: null,
// nationalId: null,
// lastName: null,
// job: null,
// education: null,
// cellphone: null,
// workPlace: null,
// workPhone: null,
// },
// familyMemberCount: null,
// address: null,
// phone: null,
// rulesAccepted: false,
// });
const finalViewInfo = [ const finalViewInfo = [
{ {
title: "نام", title: "نام",
@ -175,6 +156,11 @@ const Register = ({
{ {
title: "تاریخ تولد", title: "تاریخ تولد",
// value: userInfo?.birthDate?.toLocaleDateString("fa-IR"), // value: userInfo?.birthDate?.toLocaleDateString("fa-IR"),
value: userInfo?.birthDate
? moment(userInfo?.birthDate, "YYYY/MM/DD")
.locale("fa")
.format("YYYY/MM/DD")
: "",
}, },
{ {
title: "نام مدرسه ", title: "نام مدرسه ",
@ -182,7 +168,7 @@ const Register = ({
}, },
{ {
title: "شهر", title: "شهر",
value: userInfo?.cityId, value: findCity(userInfo?.provinceId),
}, },
{ {
title: "منطقه", title: "منطقه",
@ -399,24 +385,87 @@ const Register = ({
const [selectedCity, setSelectedCity] = useState(null); const [selectedCity, setSelectedCity] = useState(null);
const firstStepSubmit = () => { const firstStepSubmit = () => {
if ( // if (
userInfo.firstName && // userInfo.firstName &&
userInfo.lastName && // userInfo.lastName &&
userInfo.birthDate && // userInfo.birthDate &&
userInfo.gradeIds && // userInfo.gradeIds &&
userInfo.nationalId && // userInfo.nationalId &&
userInfo.gender && // userInfo.gender &&
// userInfo.previousSchoolName && // // userInfo.previousSchoolName &&
// userInfo.previousSchoolType && // // userInfo.previousSchoolType &&
// userInfo.zone && // // userInfo.zone &&
files.personalPic && // files.personalPic &&
files.shenasNameh // files.shenasNameh
) { // ) {
// setSteps(1);
// setActiveStep([true, true, false, false]);
// setError("");
// } else {
// toast.warning("لطفا تمامی فیلد ها را پر کنید");
// }
if (!userInfo.firstName && !userInfo.lastName) {
toast.warning("لطفا نام و نام خانوادگی خود را وارد کنید");
} else if (!userInfo.birthDate) {
toast.warning("لطفا تاریخ تولد خود را وارد کنید");
} else if (!userInfo.gradeIds) {
toast.warning("لطفا پایه تحصیلی خود را وارد کنید");
} else if (!userInfo.nationalId) {
toast.warning("لطفا کد ملی خود را وارد کنید");
} else if (!userInfo.gender) {
toast.warning("لطفا جنسیت خود را مشخص کنید");
} else if (!files.personalPic && !files.shenasNameh) {
toast.warning("لطفا عکس شناسنامه و عکس پرسنلی خود را وارد کنید");
} else {
setSteps(1); setSteps(1);
setActiveStep([true, true, false, false]); setActiveStep([true, true, false, false]);
setError(""); setError("");
} else { }
toast.warning("لطفا تمامی فیلد ها را پر کنید"); };
//submitHandler--------------------------------
const submitHandler = async () => {
try {
let access = window.localStorage.getItem("access");
const formData = new FormData();
formData.append("file", files.shenasNameh);
let res = await axios.post(ApiConfig.baseUrl + "/file/upload", formData, {
headers: {
"content-type": "multipart/form-data",
Authorization: `Bearer ${access}`,
},
});
if (res.data) {
try {
const personalPic = new FormData();
personalPic.append("file", files.personalPic);
let resp = await axios.post(
ApiConfig.baseUrl + "/file/upload",
personalPic,
{
headers: {
"content-type": "multipart/form-data",
Authorization: `Bearer ${access}`,
},
}
);
if (resp.data) {
console.log("userInfo:");
console.log(userInfo);
setProfile({
...userInfo,
shenasnamehFileId: res.data?.data?.id,
personalPicFileId: resp.data?.data?.id,
});
}
} catch (err) {
console.error(err);
toast.error(err);
}
}
} catch (error) {
console.error(error);
toast.error(error);
} }
}; };
@ -435,7 +484,6 @@ const Register = ({
> >
<div className="w-11/12 flex"> <div className="w-11/12 flex">
{/* form */} {/* form */}
{console.log(userInfo)}
<div className="flex w-1/5 border-0 border-l border-solid flex-col items-center p-6"> <div className="flex w-1/5 border-0 border-l border-solid flex-col items-center p-6">
{/* <img src={logo} className="w-1/2 m-4 mt-0" /> */} {/* <img src={logo} className="w-1/2 m-4 mt-0" /> */}
<div className="flex flex-col items-center justify-start leading-normal"> <div className="flex flex-col items-center justify-start leading-normal">
@ -454,7 +502,7 @@ const Register = ({
<div className="w-4/5 mx-10 flex flex-col items-start text-right b"> <div className="w-4/5 mx-10 flex flex-col items-start text-right b">
{steps == 0 && ( {steps == 0 && (
<form> <form onSubmit={(e) => e.preventDefault()}>
<div className="w-full px-10 pb-6 border-b border-solid border-gray-200"> <div className="w-full px-10 pb-6 border-b border-solid border-gray-200">
<div className="mb-4"> <div className="mb-4">
<h1 className="font-black">مشخصات هویتی دانش آموز</h1> <h1 className="font-black">مشخصات هویتی دانش آموز</h1>
@ -514,9 +562,7 @@ const Register = ({
<DatePicker <DatePicker
format="YYYY/MM/DD" format="YYYY/MM/DD"
onChange={(e) => { onChange={(e) => {
// console.log(e)
var s = new Date(e.unix * 1000); var s = new Date(e.unix * 1000);
// console.log(date)
setUserInfo({ ...userInfo, birthDate: s }); setUserInfo({ ...userInfo, birthDate: s });
}} }}
calendar={persian} calendar={persian}
@ -593,6 +639,7 @@ const Register = ({
} }
className="bg-white border border-solid border-gray-300 w-48 p-3 rounded-lg text-black outline-red52 mx-6" className="bg-white border border-solid border-gray-300 w-48 p-3 rounded-lg text-black outline-red52 mx-6"
> >
<option value={null}>انتخاب پایه تحصیلی</option>
{grades.map((item) => ( {grades.map((item) => (
<option key={`Grade__${item.id}`} value={item.id}> <option key={`Grade__${item.id}`} value={item.id}>
{item.title} {item.title}
@ -697,7 +744,7 @@ const Register = ({
</form> </form>
)} )}
{steps == 1 && ( {steps == 1 && (
<form className="w-full"> <form onSubmit={(e) => e.preventDefault()} className="w-full">
<div className="w-full px-10 pb-6 border-b border-solid border-gray-200"> <div className="w-full px-10 pb-6 border-b border-solid border-gray-200">
<div className="mb-4"> <div className="mb-4">
<h1 className="font-black">مشخصات هویتی پدر</h1> <h1 className="font-black">مشخصات هویتی پدر</h1>
@ -1083,41 +1130,121 @@ const Register = ({
</div> </div>
<div className="w-40"> <div className="w-40">
<Button {/* <Button
borderType="rounded" borderType="rounded"
title="مرحله بعد" title="مرحله بعد"
onClick={() => { onClick={() => {
// const inputs = document.querySelectorAll('.Login-box-form-item-input') // const inputs = document.querySelectorAll('.Login-box-form-item-input')
// if (
// userInfo?.motherInfo.cellphone &&
// userInfo?.motherInfo.education &&
// userInfo?.motherInfo.firstName &&
// userInfo?.motherInfo.job &&
// userInfo?.motherInfo.lastName &&
// userInfo?.motherInfo.nationalId &&
// userInfo?.motherInfo.workPhone &&
// userInfo?.motherInfo.workPlace &&
// userInfo?.fatherInfo.cellphone &&
// userInfo?.fatherInfo.education &&
// userInfo?.fatherInfo.firstName &&
// userInfo?.fatherInfo.job &&
// userInfo?.fatherInfo.lastName &&
// userInfo?.fatherInfo.nationalId &&
// userInfo?.fatherInfo.workPhone &&
// userInfo?.fatherInfo.workPlace &&
// userInfo?.familyMemberCount &&
// userInfo?.address &&
// userInfo?.phone
// ) {
// setSteps(2);
// setActiveStep([true, true, true, false]);
// } else {
// toast.warning("لطفا تمامی فیلد ها را پر کنید");
// }
// alert("joooo");
if ( if (
userInfo?.motherInfo.cellphone && !userInfo?.motherInfo.cellphone &&
userInfo?.motherInfo.education && !userInfo?.motherInfo.education &&
userInfo?.motherInfo.firstName && !userInfo?.motherInfo.firstName &&
userInfo?.motherInfo.job && !userInfo?.motherInfo.job &&
userInfo?.motherInfo.lastName && !userInfo?.motherInfo.lastName &&
userInfo?.motherInfo.nationalId && !userInfo?.motherInfo.nationalId &&
userInfo?.motherInfo.workPhone && !userInfo?.motherInfo.workPhone &&
userInfo?.motherInfo.workPlace && !userInfo?.motherInfo.workPlace
userInfo?.fatherInfo.cellphone && ) {
userInfo?.fatherInfo.education && toast.warning(
userInfo?.fatherInfo.firstName && "لطفااطلاعات مادر را به صورت کامل وارد کنید"
userInfo?.fatherInfo.job && );
userInfo?.fatherInfo.lastName && } else if (
userInfo?.fatherInfo.nationalId && !userInfo?.fatherInfo.cellphone &&
userInfo?.fatherInfo.workPhone && !userInfo?.fatherInfo.education &&
userInfo?.fatherInfo.workPlace && !userInfo?.fatherInfo.firstName &&
userInfo?.familyMemberCount && !userInfo?.fatherInfo.job &&
userInfo?.address && !userInfo?.fatherInfo.lastName &&
userInfo?.phone !userInfo?.fatherInfo.nationalId &&
!userInfo?.fatherInfo.workPhone &&
!userInfo?.fatherInfo.workPlace
) { ) {
toast.warning(
"لطفااطلاعات پدر را به صورت کامل وارد کنید"
);
} else if (!userInfo?.familyMemberCount) {
toast.warning(
"لطفا تعداد اعضای خانواده را وارد کنید"
);
} else if (!userInfo?.address && !userInfo?.phone) {
toast.warning("لطفاآدرس و تلفن خود را وارد کنید");
} else {
setSteps(2); setSteps(2);
setActiveStep([true, true, true, false]); setActiveStep([true, true, true, false]);
}
}}
/> */}
<div
className="w-full h-12 mt-4 rounded-lg bg-red52 flex items-center justify-center text-white cursor-pointer"
onClick={() => {
if (
!userInfo?.motherInfo?.cellphone &&
!userInfo?.motherInfo?.education &&
!userInfo?.motherInfo?.firstName &&
!userInfo?.motherInfo?.job &&
!userInfo?.motherInfo?.lastName &&
!userInfo?.motherInfo?.nationalId &&
!userInfo?.motherInfo?.workPhone &&
!userInfo?.motherInfo?.workPlace
) {
toast.warning(
"لطفااطلاعات مادر را به صورت کامل وارد کنید"
);
} else if (
!userInfo?.fatherInfo?.cellphone &&
!userInfo?.fatherInfo?.education &&
!userInfo?.fatherInfo?.firstName &&
!userInfo?.fatherInfo?.job &&
!userInfo?.fatherInfo?.lastName &&
!userInfo?.fatherInfo?.nationalId &&
!userInfo?.fatherInfo?.workPhone &&
!userInfo?.fatherInfo?.workPlace
) {
toast.warning(
"لطفااطلاعات پدر را به صورت کامل وارد کنید"
);
} else if (!userInfo?.familyMemberCount) {
toast.warning(
"لطفا تعداد اعضای خانواده را وارد کنید"
);
} else if (!userInfo?.address && !userInfo?.phone) {
toast.warning("لطفاآدرس و تلفن خود را وارد کنید");
} else { } else {
toast.warning("لطفا تمامی فیلد ها را پر کنید"); setSteps(2);
setActiveStep([true, true, true, false]);
} }
}} }}
/> >
مرحله بعد
</div>
</div> </div>
</div> </div>
</div> </div>
@ -1135,61 +1262,7 @@ const Register = ({
</div> </div>
<div className="text-gray-500 text-justify"> <div className="text-gray-500 text-justify">
بند اول: موارد مربوط به آموزش مخاطبین پیر مردی هر روز تو محله {termInfo}
می دید پسر کی با کفش های پاره و پای برهنه با توپ پلاستیکی
فوتبال بازی می کند، روزی رفت ی کتانی نو خرید و اومد و به پسرک
گفت بیا این کفشا رو بپوشپسرک کفشا رو پوشید و خوشحال رو به پیر
مرد کرد و گفت: شما خدایید؟! پیر مرد لبش را گزید و گفت نه! پسرک
گفت پس دوست خدایی، چون من دیشب فقط به خدا گفتم كه کفش ندارم هر
نفسی که فرو می بریم، مرگی را که مدام به ما دست اندازی میکند
پس میزند... در نهایت این مرگ است که باید پیروز شود، زیرا از
هنگام تولد بخشی از سرنوشت ما شده و فقط مدت کوتاهی پیش از
بلعیدن طعمه اش، با آن بازی می کند. با این همه، ما تا آنجا که
ممکن است، با علاقه فراوان و دلواپسی زیاد به زندگی ادامه می
دهیم، همان طور که تا آنجا که ممکن است طولانی تر در یک حباب
صابون می دمیم تا بزرگتر شود، گر چه با قطعیتی تمام می دانیم
که خواهد ترکید. پیر مردی هر روز تو محله می دید پسر کی با کفش
های پاره و پای برهنه با توپ پلاستیکی فوتبال بازی می کند، روزی
رفت ی کتانی نو خرید و اومد و به پسرک گفت بیا این کفشا رو
بپوشپسرک کفشا رو پوشید و خوشحال رو به پیر مرد کرد و گفت: شما
خدایید؟! پیر مرد لبش را گزید و گفت نه! پسرک گفت پس دوست خدایی،
چون من دیشب فقط به خدا گفتم كه کفش ندارم بند دوم: موارد مربوط
به آموزش مخاطبین خالد حسینی تو رمان باد بادک باز مینویسه : ﻣﺮﺩ
ﺁﻫﺴﺘﻪ ﺩﺭ ﮔﻮﺵ ﻓﺮﺯﻧﺪ ﺗﺎﺯﻩ ﺑﻪ ﺑﻠﻮﻍ ﺭﺳﯿﺪﻩ ﺍﺵ ﺑﺮﺍﯼ ﭘﻨﺪ ﭼﻨﯿﻦ ﻧﺠﻮﺍ
ﮐﺮﺩ : ﭘﺴﺮﻡ ﺩﺭ ﺯﻧﺪﮔﯽ ﻫﺮﮔﺰ ﺩﺯﺩﯼ ﻧﮑﻦ ﭘﺴﺮ ﻣﺘﻌﺠﺐ ﻣﺒﻬﻮﺕ ﺑﻪ ﭘﺪﺭ
ﻧﮕﺎﻩ ﮐﺮﺩ ﺑﺪﯾﻦ ﻣﻌﻨﺎ ﮐﻪ ﺍﻭ ﻫﺮﮔﺰ ﺩﺳﺖ ﮐﺞ ﻧﺪﺍﺷﺘﻪ ﭘﺪﺭ ﺑﻪ ﻧﮕﺎﻩ ﻣﺘﻌﺠﺐ
ﻓﺮﺯﻧﺪ ﻟﺒﺨﻨﺪﯼ ﺯﺩ ﺍﺩﺍﻣﻪ ﺩﺍﺩ : ﺩﺭ ﺯﻧﺪﮔﯽ ﺩﺭﻭﻍ ﻧﮕﻮ ﭼﺮﺍ ﮐﻪ ﺍﮔﺮ
ﮔﻔﺘﯽ ﺻﺪﺍﻗﺖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍﯼ، ﺧﯿﺎﻧﺖ ﻧﮑﻦ ﮐﻪ ﺍﮔﺮ ﮐﺮﺩﯼ ﻋﺸﻖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ
ﺍﯼ، ﺧﺸﻮﻧﺖ ﻧﮑﻦ ﺍﮔﺮ ﮐﺮﺩﯼ ﻣﺤﺒﺖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍﯼ، ﻧﺎ ﺣﻖ ﻧﮕﻮ ﺍﮔﺮ ﮔﻔﺘﯽ
ﺣﻖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍﯼ، ﺑﯽ ﺣﯿﺎﯾﯽ ﻧﮑﻦ ﺍﮔﺮ ﮐﺮﺩﯼ ﺷﺮﺍﻓﺖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍی...
ﭘﺲ ﺩﺭ ﺯﻧﺪﮔﯽ ﻓﻘﻂ ﺩﺯﺩﯼ نکن پیر مردی هر روز تو محله می دید پسر کی
با کفش های پاره و پای برهنه با توپ پلاستیکی فوتبال بازی می
کند، روزی رفت ی کتانی نو خرید و اومد و به پسرک گفت بیا این
کفشا رو بپوشپسرک کفشا رو پوشید و خوشحال رو به پیر مرد کرد و
گفت: شما خدایید؟! پیر مرد لبش را گزید و گفت نه! پسرک گفت پس
دوست خدایی، چون من دیشب فقط به خدا گفتم كه کفش ندارم هر نفسی
که فرو می بریم، مرگی را که مدام به ما دست اندازی میکند پس
میزند... در نهایت این مرگ است که باید پیروز شود، زیرا از
هنگام تولد بخشی از سرنوشت ما شده و فقط مدت کوتاهی پیش از
بلعیدن طعمه اش، با آن بازی می کند. با این همه، ما تا آنجا که
ممکن است، با علاقه فراوان و دلواپسی زیاد به زندگی ادامه می
دهیم، همان طور که تا آنجا که ممکن است طولانی تر در یک حباب
صابون می دمیم تا بزرگتر شود، گر چه با قطعیتی تمام می دانیم
که خواهد ترکید. پیر مردی هر روز تو محله می دید پسر کی با کفش
های پاره و پای برهنه با توپ پلاستیکی فوتبال بازی می کند، روزی
رفت ی کتانی نو خرید و اومد و به پسرک گفت بیا این کفشا رو
بپوشپسرک کفشا رو پوشید و خوشحال رو به پیر مرد کرد و گفت: شما
خدایید؟! پیر مرد لبش را گزید و گفت نه! پسرک گفت پس دوست خدایی،
چون من دیشب فقط به خدا گفتم كه کفش ندارم بند سوم: موارد مربوط
به آموزش مخاطبین خالد حسینی تو رمان باد بادک باز مینویسه : ﻣﺮﺩ
ﺁﻫﺴﺘﻪ ﺩﺭ ﮔﻮﺵ ﻓﺮﺯﻧﺪ ﺗﺎﺯﻩ ﺑﻪ ﺑﻠﻮﻍ ﺭﺳﯿﺪﻩ ﺍﺵ ﺑﺮﺍﯼ ﭘﻨﺪ ﭼﻨﯿﻦ ﻧﺠﻮﺍ
ﮐﺮﺩ : ﭘﺴﺮﻡ ﺩﺭ ﺯﻧﺪﮔﯽ ﻫﺮﮔﺰ ﺩﺯﺩﯼ ﻧﮑﻦ ﭘﺴﺮ ﻣﺘﻌﺠﺐ ﻣﺒﻬﻮﺕ ﺑﻪ ﭘﺪﺭ
ﻧﮕﺎﻩ ﮐﺮﺩ ﺑﺪﯾﻦ ﻣﻌﻨﺎ ﮐﻪ ﺍﻭ ﻫﺮﮔﺰ ﺩﺳﺖ ﮐﺞ ﻧﺪﺍﺷﺘﻪ ﭘﺪﺭ ﺑﻪ ﻧﮕﺎﻩ ﻣﺘﻌﺠﺐ
ﻓﺮﺯﻧﺪ ﻟﺒﺨﻨﺪﯼ ﺯﺩ ﺍﺩﺍﻣﻪ ﺩﺍﺩ : ﺩﺭ ﺯﻧﺪﮔﯽ ﺩﺭﻭﻍ ﻧﮕﻮ ﭼﺮﺍ ﮐﻪ ﺍﮔﺮ
ﮔﻔﺘﯽ ﺻﺪﺍﻗﺖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍﯼ، ﺧﯿﺎﻧﺖ ﻧﮑﻦ ﮐﻪ ﺍﮔﺮ ﮐﺮﺩﯼ ﻋﺸﻖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ
ﺍﯼ، ﺧﺸﻮﻧﺖ ﻧﮑﻦ ﺍﮔﺮ ﮐﺮﺩﯼ ﻣﺤﺒﺖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍﯼ، ﻧﺎ ﺣﻖ ﻧﮕﻮ ﺍﮔﺮ ﮔﻔﺘﯽ
ﺣﻖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍﯼ، ﺑﯽ ﺣﯿﺎﯾﯽ ﻧﮑﻦ ﺍﮔﺮ ﮐﺮﺩﯼ ﺷﺮﺍﻓﺖ ﺭﺍ ﺩﺯﺩﯾﺪﻩ ﺍی...
ﭘﺲ ﺩﺭ ﺯﻧﺪﮔﯽ ﻓﻘﻂ ﺩﺯﺩﯼ نکن
</div> </div>
</div> </div>
<div className="flex items-center px-10 py-6"> <div className="flex items-center px-10 py-6">
@ -1324,10 +1397,13 @@ const Register = ({
/> />
</div> </div>
<div className="w-40"> <div className="w-40 relative">
{/* {!loading && ( */}
<Button <Button
borderType="rounded" borderType="rounded"
title="تایید" title="تایید"
// onClick={submitHandler}
loading={loading}
// to="/" // to="/"
onClick={async () => { onClick={async () => {
// activeLogin() // activeLogin()
@ -1360,6 +1436,8 @@ const Register = ({
} }
); );
if (resp.data) { if (resp.data) {
console.log("userInfo:");
console.log(userInfo);
setProfile({ setProfile({
...userInfo, ...userInfo,
shenasnamehFileId: res.data?.data?.id, shenasnamehFileId: res.data?.data?.id,
@ -1368,13 +1446,24 @@ const Register = ({
} }
} catch (err) { } catch (err) {
console.error(err); console.error(err);
toast.error(err);
} }
} }
} catch (error) { } catch (error) {
console.error(error); console.error(error);
toast.error(error);
} }
}} }}
/> />
{loading && (
<div className="w-full h-12 rounded-lg bg-red52 flex items-center justify-center mt-4">
<img
src={loadingGiff}
alt="loadingGiff"
className="h-4/5"
/>
</div>
)}
</div> </div>
</div> </div>
</> </>
@ -1389,12 +1478,16 @@ const mapStateToProps = (state) => ({
province: state.publicApi.province, province: state.publicApi.province,
city: state.publicApi.city, city: state.publicApi.city,
user: state.user.status, user: state.user.status,
// loading: state.user.loading,
loading: state.file.loading,
termInfo:state.term.info
}); });
const mapDispatchToProps = { const mapDispatchToProps = {
setProfile: user.setProfile, setProfile: user.setProfile,
getProvince: publicApi.getProvince, getProvince: publicApi.getProvince,
getCity: publicApi.getCity, getCity: publicApi.getCity,
getUserInfo: user.getProfile, getUserInfo: user.info,
getRulse: term.info
}; };
export default connect(mapStateToProps, mapDispatchToProps)(Register); export default connect(mapStateToProps, mapDispatchToProps)(Register);

@ -7,6 +7,7 @@ import Product from "../../components/Product";
import { CgDanger } from "react-icons/cg"; import { CgDanger } from "react-icons/cg";
import { BsFillCheckCircleFill } from "react-icons/bs"; import { BsFillCheckCircleFill } from "react-icons/bs";
import filterIcon from "../../assets/img/vuesax-linear-filter-tick.svg"; import filterIcon from "../../assets/img/vuesax-linear-filter-tick.svg";
import underCicon from "../../assets/img/Group 2275.svg";
// import ScrollContainer from 'react-indiana-drag-scroll' // import ScrollContainer from 'react-indiana-drag-scroll'
import img1 from "../../assets/img/Group 1344.svg"; import img1 from "../../assets/img/Group 1344.svg";
@ -350,6 +351,7 @@ const Services = ({
gameId !== 6 && ( gameId !== 6 && (
<div className="w-full h-28 flex flex-col items-center justify-center mx-auto rounded"> <div className="w-full h-28 flex flex-col items-center justify-center mx-auto rounded">
<CgDanger className="text-4xl" /> <CgDanger className="text-4xl" />
<img src={underCicon} alt="underCicon" className="w-[30%]" />
<div className="text-xl mt-4" style={{ direction: "rtl" }}> <div className="text-xl mt-4" style={{ direction: "rtl" }}>
این بخش هنوز فعال نشده است. این بخش هنوز فعال نشده است.
</div> </div>

Loading…
Cancel
Save