|
@@ -11,9 +11,8 @@ const Manufacturer = (props: { data: GameListRep[]; group: Category }) => {
|
|
|
const router = useRouter();
|
|
|
const { data, group } = props;
|
|
|
const todoHandler = (item: GameListRep) => {
|
|
|
- // router.push(`/gameList/?gameListFlag=${item.id}&type=${group.type}`);
|
|
|
router.push({
|
|
|
- pathname: `/gameList/?gameListFlag=${item.id}&type=${group.type}`,
|
|
|
+ pathname: `/gameList/?gameListFlag=${item.id}&type=2&bet_type=${group.bet_type}`,
|
|
|
});
|
|
|
};
|
|
|
const elements = data.map((item, index) => {
|
|
@@ -35,7 +34,9 @@ const HomeGames = (props: Props) => {
|
|
|
const router = useRouter();
|
|
|
const { groupGames = [] } = props;
|
|
|
const todoHandler = (item: Category) => {
|
|
|
- router.push(`/gameList/?gameListFlag=${item.jump_id}&type=${item.type}`);
|
|
|
+ router.push(
|
|
|
+ `/gameList/?gameListFlag=${item.jump_id}&type=${item.type}&bet_type=${item.bet_type}`
|
|
|
+ );
|
|
|
};
|
|
|
return (
|
|
|
<>
|
|
@@ -58,7 +59,7 @@ const HomeGames = (props: Props) => {
|
|
|
group={group}
|
|
|
page={4}
|
|
|
visibleTodos={false}
|
|
|
- todoHandler={todoHandler}
|
|
|
+ // todoHandler={todoHandler}
|
|
|
slideRender={(data) => <Manufacturer data={data} group={group} />}
|
|
|
></SwiperGroup>
|
|
|
);
|