|
|
@ -3,7 +3,7 @@ import { book, publicApi, userProduct } from "../../redux/actions"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { connect } from "react-redux"; |
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
import { Link } from "react-router-dom"; |
|
|
|
import Product from "../../components/Product"; |
|
|
|
import Product from "../../components/Product"; |
|
|
|
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"; |
|
|
@ -15,7 +15,7 @@ import img6 from "../../assets/img/Group 1362.svg"; |
|
|
|
import ShoppingCart from "../../components/ShoppingCart"; |
|
|
|
import ShoppingCart from "../../components/ShoppingCart"; |
|
|
|
import ServicePopUp from "./service"; |
|
|
|
import ServicePopUp from "./service"; |
|
|
|
import Games from "../dashboard2/Games"; |
|
|
|
import Games from "../dashboard2/Games"; |
|
|
|
import Packages from "../dashboard2/Packages"; |
|
|
|
// import Packages from "../dashboard2/Packages";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -34,14 +34,7 @@ const Services = ({ |
|
|
|
videos, |
|
|
|
videos, |
|
|
|
pushToCart, |
|
|
|
pushToCart, |
|
|
|
}) => { |
|
|
|
}) => { |
|
|
|
const [checked, setChecked] = useState([ |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
false, |
|
|
|
|
|
|
|
]); |
|
|
|
|
|
|
|
const [filterCheck, setFilterCheck] = useState([false, false, false, false]); |
|
|
|
const [filterCheck, setFilterCheck] = useState([false, false, false, false]); |
|
|
|
const [filter, setFilter] = useState({ |
|
|
|
const [filter, setFilter] = useState({ |
|
|
|
search: "", |
|
|
|
search: "", |
|
|
@ -61,9 +54,9 @@ const Services = ({ |
|
|
|
classMinute: "", |
|
|
|
classMinute: "", |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
const onChange = (name, value) => { |
|
|
|
// const onChange = (name, value) => {
|
|
|
|
setFilter({ ...filter, [name]: value }); |
|
|
|
// setFilter({ ...filter, [name]: value });
|
|
|
|
}; |
|
|
|
// };
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
getList(); |
|
|
|
getList(); |
|
|
@ -439,7 +432,8 @@ if (!isMobile){ |
|
|
|
/> |
|
|
|
/> |
|
|
|
<div className="w-11/12 border-b border-gray-200"></div> |
|
|
|
<div className="w-11/12 border-b border-gray-200"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div className="flex items-center mx-4 my-4"> |
|
|
|
{ |
|
|
|
|
|
|
|
gameId !== 6 && <div className="flex items-center mx-4 my-4"> |
|
|
|
<svg |
|
|
|
<svg |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
|
width="40" |
|
|
|
width="40" |
|
|
@ -577,6 +571,7 @@ if (!isMobile){ |
|
|
|
)} |
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
} |
|
|
|
<div className="w-11/12 border-b border-gray-200"></div> |
|
|
|
<div className="w-11/12 border-b border-gray-200"></div> |
|
|
|
|
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
@ -652,6 +647,34 @@ if (!isMobile){ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</Link> |
|
|
|
</Link> |
|
|
|
))} |
|
|
|
))} |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
gameId == 6 &&
|
|
|
|
|
|
|
|
<div className="w-full p-8 py-10 flex flex-col justify-between items-center " > |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="w-full text-right mb-4"> |
|
|
|
|
|
|
|
<h1 className="text-red26 font-bold">افزایش مبلغ دلخواه</h1> |
|
|
|
|
|
|
|
<p className="text-red26 text-sm">لطفا مبلغ دلخواه خود را در کادر روبرو وارد کنید</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="flex w-full mb-4"> |
|
|
|
|
|
|
|
<input
|
|
|
|
|
|
|
|
placeholder="12,000,000" |
|
|
|
|
|
|
|
className="border border-red5B rounded-lg h-14 w-3/4 text-center rounded-l-none border-l-0 px-4 outline-none" |
|
|
|
|
|
|
|
/><p className="border flex justify-center items-center border-red5B rounded-lg h-14 w-1/4 text-center rounded-r-none border-r-0 px-4">ریال</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div className="flex w-full mb-4"> |
|
|
|
|
|
|
|
<p className="border flex justify-center items-center border-red52 rounded-lg h-14 w-1/5 text-center rounded-l-none border-l-0 px-10">بابت</p> |
|
|
|
|
|
|
|
<input
|
|
|
|
|
|
|
|
placeholder="شارژ حساب" |
|
|
|
|
|
|
|
className="border border-red52 rounded-lg h-14 w-4/5 text-center rounded-r-none border-r-0 px-4 outline-none" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<button className="cursor-pointer text-blue52 border border-blueDF w-full rounded-lg font-bold text-sm px-6 h-14" |
|
|
|
|
|
|
|
style={{background: 'rgba(211, 246, 255, 0.44)'}}> |
|
|
|
|
|
|
|
افزودن به سبد خرید |
|
|
|
|
|
|
|
</button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
) |
|
|
|
) |
|
|
|