diff --git a/pages/index.js b/pages/index.js index 9055b89..7c0b140 100644 --- a/pages/index.js +++ b/pages/index.js @@ -1,33 +1,24 @@ -import Head from 'next/head' import AppContainer from './appContainer' import Slider from './components/slider' -import Connect from './components/connect' import News from './News' import axios from 'axios' -import Req from '../public/resource/parallax/Asset 1.svg' import { MDBBtn, MDBCard, MDBCardBody, - MDBCardImage, - MDBCardText, - MDBCardTitle, MDBContainer, - MDBIcon, MDBListGroupItem, - MDBTypography + MDBIcon, } from 'mdb-react-ui-kit' import Link from 'next/link' -import Doctors from './components/doctors' import Paralax from './components/Paralax' import Service from './components/service' import { AppUrl } from '../lib/api' import Accessgrid from './components/accessgrid' import React from 'react' -import { Img, SimpleGrid } from '@chakra-ui/react' +import { SimpleGrid } from '@chakra-ui/react' import SalesTeam from './components/SalesTeam' import FadeIn from 'react-fade-in' import Brands from './components/Brands' -import OnlineSales from './components/OnlineSales' import Sales from './page/sales' export default function Home({ data_NEWS }) { @@ -50,13 +41,11 @@ export default function Home({ data_NEWS }) {
- ارتباط با ما - مشاوره سرمایه گذاری diff --git a/pages/page/sales.js b/pages/page/sales.jsx similarity index 96% rename from pages/page/sales.js rename to pages/page/sales.jsx index 9a686db..71a6a33 100644 --- a/pages/page/sales.js +++ b/pages/page/sales.jsx @@ -8,9 +8,7 @@ import { BsWhatsapp } from 'react-icons/bs' import { BsTwitter } from 'react-icons/bs' import { AiOutlineInstagram } from 'react-icons/ai' import toast, { Toaster } from 'react-hot-toast' -import { MDBRadio } from 'mdb-react-ui-kit' import axios from 'axios' -import NumberFormat from 'react-number-format' import { AppProduction } from '../../lib/api' const Sales = () => { diff --git a/pages/stock-unit/index.js b/pages/stock-unit/index.js deleted file mode 100644 index a78f55f..0000000 --- a/pages/stock-unit/index.js +++ /dev/null @@ -1,84 +0,0 @@ -import React from 'react' -import AppContainer from '../appContainer' -import Image from 'next/image' -import { MDBContainer, MDBIcon } from 'mdb-react-ui-kit' -import { Table, TableCaption, TableContainer, Tbody, Td, Th, Thead, Tr } from '@chakra-ui/react' - -const StockUnit = () => { - const Parallax = ({ quality }) => { - return `../resource/images/call-center.jpg` - } - return ( - -
-
- امور سهام -
- امور سهام بیمارستان مهر ایرانیان -
- - - - پاسخگویی و مشاوره خرید سهام - - - - - - - - - - - - - - - - - - - - - - - - -
شماره تماسکارشناس فروش
- - - 021-53457000 - 1023 - - خانم باباگلی
- - - 021-53457000 - 1024 - - خانم طالبی
- - - 021-53457000 - 1018 - - خانم کهریزی
- - - 021-53457000 - 1025 - - خانم کاظمیان
-
-
-
- ) -} - -export default StockUnit diff --git a/pages/stock-unit/index.jsx b/pages/stock-unit/index.jsx new file mode 100644 index 0000000..f8cc8c5 --- /dev/null +++ b/pages/stock-unit/index.jsx @@ -0,0 +1,119 @@ +import React from 'react' +import AppContainer from '../appContainer' +import Image from 'next/image' +import { MDBContainer, MDBIcon, MDBCard } from 'mdb-react-ui-kit' +import { SimpleGrid, MDBCardBody, Table, TableCaption, TableContainer, Tbody, Td, Th, Thead, Tr } from '@chakra-ui/react' +import Link from 'next/link' + +const StockUnit = () => { + const Parallax = ({ quality }) => { + return `../resource/images/call-center.jpg` + } + return ( + +
+
+ امور سهام +
+ امور سهام بیمارستان مهر ایرانیان +
+ +
+ + + +
+ درگاه سهامدارن +
+
+ + + +
+ درخواست خرید سهام +
+
+ + + +
+ درخواست انتقال سهام +
+
+ + + + +
+ درخواست فروش سهام +
+
+ +
+
+ + + + پاسخگویی و مشاوره خرید سهام + + + + + + + + + + + + + + + + + + + + + + + + +
شماره تماسکارشناس فروش
+ + + 021-53457000 - 1023 + + خانم باباگلی
+ + + 021-53457000 - 1024 + + خانم طالبی
+ + + 021-53457000 - 1018 + + خانم کهریزی
+ + + 021-53457000 - 1025 + + خانم کاظمیان
+
+
+
+ ) +} + +export default StockUnit diff --git a/pages/stock-unit/stock-sales/index.jsx b/pages/stock-unit/stock-sales/index.jsx new file mode 100644 index 0000000..a26bce0 --- /dev/null +++ b/pages/stock-unit/stock-sales/index.jsx @@ -0,0 +1,222 @@ +import AppContainer from '../../appContainer' +import { BsFillTelephoneFill } from 'react-icons/bs' +import { FaMapMarkerAlt } from 'react-icons/fa' +import { BsWhatsapp } from 'react-icons/bs' +import { BsTwitter } from 'react-icons/bs' +import { AiOutlineInstagram } from 'react-icons/ai' +import toast, { Toaster } from 'react-hot-toast' +import axios from 'axios' +import { AppProduction } from '../../../lib/api' +import { useState } from 'react' +import { MDBRadio } from 'mdb-react-ui-kit' +import NumberFormat from 'react-number-format' +import Link from 'next/link' + +const StockSalesContainer = () => { + const [name, setName] = useState() + const [mobileNumber, setMobileNumber] = useState('') + const [InvestmentPrice, setInvestmentPrice] = useState('0') + const [InvestmentType, setInvestmentType] = useState('1') + const [Loading, setLoading] = useState(false) + const [showSuccessSubmitForm, setShowSuccessSubmitForm] = useState(false) + + const SubmitForm = () => { + setLoading(true) + toast.loading('در حال ثبت درخواست شما') + axios + .post(`${AppProduction}public/website/request`, { + name: name, + mobile_number: mobileNumber, + investment_price: InvestmentPrice, + investment_type: InvestmentType + }) + .then(async res => { + setLoading(false) + setShowSuccessSubmitForm(true) + toast.remove() + toast.success('درخواست شما ثبت شد به زودی کار شناسان ما به شما تماس می گیرند') + await console.log('res', res) + }) + .catch(async err => { + setLoading(false) + toast.remove() + await toast.error(err.response.data.err) + await console.log('err', err) + }) + } + + return ( + + {!showSuccessSubmitForm ? + ( +
+

ثبت درخواست فروش سهام

+ + قیمت آخرین سهام معامله شده :‌250,000,000 + تومان + + +
+
+
+
+

ارتباط با واحد سهام

+

+ بعد از ارسال درخواست کارشناسان طی 24 ساعت با شما تماس خواهند گرفت +

+ +
+
+ 021-53457000 + +
+ +
+ + تهران ، شهر جدید پرند، بلوار شهیدقاسم سلیمانی، انتهای فاز 5 ،نبش بلوار رسول اکرم + + +
+
+
+ +
+
+
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ setName(e.target.value)} + className='outline-0 bg-transparent w-11/12 text-end pt-3 + border-b border-solid border-[#65656540] border-r-0 border-l-0 border-t-0 hover:border-[#57C5C6] ' + id='username' + type='text' + placeHolder=' کد ملی را وارد کنید' + /> +
+
+ +
+ +
+ setMobileNumber(e.target.value)} + className='outline-0 bg-transparent w-11/12 text-end pt-3 + border-b border-solid border-[#65656540] border-r-0 border-l-0 border-t-0 hover:border-[#57C5C6] pt-2 ' + id='phone' + type='text' + placeHolder='تعداد سهامی که قصد فروش آن را دارید' + /> +
+
+
+ +
+
+ setInvestmentType(3)} + name='flexRadioDefault' + id='flexRadioDefault1' + label='تهاتری ' + /> +
+
+ setInvestmentType(3)} + name='flexRadioDefault' + id='flexRadioDefault2' + label='بالاترین قیمت' + defaultChecked + /> +
+
+ setInvestmentType(1)} + name='flexRadioDefault' + id='flexRadioDefault2' + label='فوری' + defaultChecked + /> +
+
+
+ +
+ +
+ { + const { formattedValue, value } = values + setInvestmentPrice(value) + }} + className='outline-0 bg-transparent w-11/12 text-end pt-3 + border-b border-solid border-[#65656540] border-r-0 border-l-0 border-t-0 hover:border-[#57C5C6] ' + type={'text'} + prefix={'تومان'} + thousandSeparator={true} + dir={'ltr'} + placeHolder=' مبلغ مورد نظر خود برای فروش سهام وارد نمایید' + /> +
+
+ +
+ +
+
+
+
+ ): ( +
+

درخواست شما ثبت شد به زودی کار شناسان ما به شما تماس می گیرند

+
+ + + + +
+ +
+ )} +
+ ) +} + +export default StockSalesContainer diff --git a/pages/stock-unit/stock-transfer/index.jsx b/pages/stock-unit/stock-transfer/index.jsx new file mode 100644 index 0000000..2e2107b --- /dev/null +++ b/pages/stock-unit/stock-transfer/index.jsx @@ -0,0 +1,220 @@ +import AppContainer from '../../appContainer' +import { BsFillTelephoneFill } from 'react-icons/bs' +import { FaMapMarkerAlt } from 'react-icons/fa' +import { BsWhatsapp } from 'react-icons/bs' +import { BsTwitter } from 'react-icons/bs' +import { AiOutlineInstagram } from 'react-icons/ai' +import toast, { Toaster } from 'react-hot-toast' +import axios from 'axios' +import { AppProduction } from '../../../lib/api' +import { useState } from 'react' +import { MDBRadio } from 'mdb-react-ui-kit' +import NumberFormat from 'react-number-format' +import Link from 'next/link' +const StockTransferContainer = () => { + const [name, setName] = useState() + const [mobileNumber, setMobileNumber] = useState('') + const [InvestmentPrice, setInvestmentPrice] = useState('0') + const [InvestmentType, setInvestmentType] = useState('1') + const [Loading, setLoading] = useState(false) + const [showSuccessSubmitForm, setShowSuccessSubmitForm] = useState(false) + + const SubmitForm = () => { + setLoading(true) + toast.loading('در حال ثبت درخواست شما') + axios + .post(`${AppProduction}public/website/request`, { + name: name, + mobile_number: mobileNumber, + investment_price: InvestmentPrice, + investment_type: InvestmentType + }) + .then(async res => { + setLoading(false) + setShowSuccessSubmitForm(true) + toast.remove() + toast.success('درخواست شما ثبت شد به زودی کار شناسان ما به شما تماس می گیرند') + await console.log('res', res) + }) + .catch(async err => { + setLoading(false) + toast.remove() + await toast.error(err.response.data.err) + await console.log('err', err) + }) + } + + return ( + + {!showSuccessSubmitForm ? + ( +
+

ثبت درخواست خرید سهام

+ + {/* برای ارتباط با ما فرم زیر را تکمیل کنید */} + + +
+
+
+
+

ارتباط با واحد سهام

+

+ بعد از ارسال درخواست کارشناسان طی 24 ساعت با شما تماس خواهند گرفت +

+ +
+
+ 021-53457000 + +
+ +
+ + تهران ، شهر جدید پرند، بلوار شهیدقاسم سلیمانی، انتهای فاز 5 ،نبش بلوار رسول اکرم + + +
+
+
+ +
+
+
+ +
+ +
+ +
+ +
+ +
+
+ +
+
+
+
+
+
+
+
+ +
+ setName(e.target.value)} + className='outline-0 bg-transparent w-11/12 text-end pt-3 + border-b border-solid border-[#65656540] border-r-0 border-l-0 border-t-0 hover:border-[#57C5C6] ' + id='username' + type='text' + placeHolder=' نام و نام خانوادگی راوارد کنید' + /> +
+
+ +
+ +
+ setMobileNumber(e.target.value)} + className='outline-0 bg-transparent w-11/12 text-end pt-3 + border-b border-solid border-[#65656540] border-r-0 border-l-0 border-t-0 hover:border-[#57C5C6] pt-2 ' + id='phone' + type='text' + placeHolder='+98 912 525 4477' + /> +
+
+
+ +
+
+ setInvestmentType(3)} + name='flexRadioDefault' + id='flexRadioDefault1' + label='اقساطی ' + /> +
+
+ setInvestmentType(3)} + name='flexRadioDefault' + id='flexRadioDefault2' + label='تهاتر' + defaultChecked + /> +
+
+ setInvestmentType(1)} + name='flexRadioDefault' + id='flexRadioDefault2' + label='نقدی' + defaultChecked + /> +
+
+
+ +
+ +
+ { + const { formattedValue, value } = values + setInvestmentPrice(value) + }} + className='outline-0 bg-transparent w-11/12 text-end pt-3 + border-b border-solid border-[#65656540] border-r-0 border-l-0 border-t-0 hover:border-[#57C5C6] ' + type={'text'} + prefix={'تومان'} + thousandSeparator={true} + dir={'ltr'} + placeHolder=' مبلغ مد نظر خود برای شروع سرمایه گذاری وارد نمایید' + /> +
+
+ +
+ +
+
+
+
+ ): ( +
+

درخواست شما ثبت شد به زودی کار شناسان ما به شما تماس می گیرند

+
+ + + + +
+ +
+ )} +
+ ) +} + +export default StockTransferContainer