浏览代码

fix: 【bcwin网站】后台配置免费币游戏之后,在网站中玩免费游戏,玩家改变的金额是Saldo的数额,免费币数量不变

Before 7 月之前
父节点
当前提交
8228bf41fd
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      src/app/[locale]/(TabBar)/[[...share]]/_home/HomeGames.tsx

+ 5 - 4
src/app/[locale]/(TabBar)/[[...share]]/_home/HomeGames.tsx

@@ -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>
                     );