瀏覽代碼

feat: 修改

year 2 月之前
父節點
當前提交
9628fa8b3d
共有 1 個文件被更改,包括 0 次插入75 次删除
  1. 0 75
      src/app/[locale]/(doings)/rechargeproxy/page.tsx

+ 0 - 75
src/app/[locale]/(doings)/rechargeproxy/page.tsx

@@ -44,12 +44,10 @@ const DayItem = ({
     data,
     idx,
     onClaim,
-    level,
 }: {
     data: ContinuousCfgItem;
     idx: number;
     onClaim: (data: ContinuousCfgItem) => void;
-    level: string;
 }) => {
     const dayColor = React.useMemo(() => {
         return ["#12940f", "#297fcf", "#ec3920"][idx % 3];
@@ -131,78 +129,6 @@ const Page = () => {
             setData(res.data);
         }
     };
-    const cfg1: Record<number, Cfg1Item> = React.useMemo(() => {
-        return {
-            1: {
-                text: "LOGIN ",
-                text2: "PLATINUM",
-                key: 1,
-                footer: "Alcançou",
-            },
-            2: {
-                text: "LOGIN",
-                text2: "GOLD",
-                key: 2,
-                footer: "Ainda preciso",
-            },
-            3: {
-                text: "LOGIN",
-                text2: "DIAMANTE",
-                key: 3,
-                footer: "Ainda preciso",
-            },
-            // 4: {
-            //     text: "ENTRAR NO",
-            //     text2: "MONOPOLY",
-            //     key: 4,
-            //     footer: "Ainda preciso",
-            // },
-            // 5: {
-            //     text: "ENTRAR NO",
-            //     text2: "MONOPOLY",
-            //     key: 5,
-            //     footer: "Ainda preciso",
-            // },
-            // 6: {
-            //     text: "ENTRAR NO",
-            //     text2: "MONOPOLY",
-            //     key: 6,
-            //     footer: "Ainda preciso",
-            // },
-            // 7: {
-            //     text: "ENTRAR NO",
-            //     text2: "MONOPOLY",
-            //     key: 7,
-            //     footer: "Ainda preciso",
-            // },
-        };
-    }, []);
-
-    const stage = React.useMemo<StageItem[]>(() => {
-        let stags = data?.list?.stage;
-        if (!data?.list?.stage) {
-            stags = [
-                { id: 1 },
-                { id: 2 },
-                { id: 3 },
-                // { id: 4 },
-                // { id: 5 },
-                // { id: 6 },
-                // { id: 7 },
-            ] as unknown as ContinuousStageItem[];
-        }
-        const result: StageItem[] = stags
-            .map((item) => {
-                console.log(112233, item);
-                return {
-                    ...item,
-                    ...cfg1[item.id],
-                    footer2: item.diff_num ? `${item.diff_num}R` : "",
-                };
-            })
-            .sort((a: ContinuousStageItem, b: ContinuousStageItem) => a.id - b.id);
-        return result; //[{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, { id: 5 }, { id: 6 }, { id: 7 }];
-    }, [data?.list?.stage, cfg1]);
 
     const list = React.useMemo<ListItem[]>(() => {
         if (!data?.list?.list) {
@@ -433,7 +359,6 @@ const Page = () => {
                                                         data={item}
                                                         idx={idx}
                                                         onClaim={doClaim}
-                                                        level={cfg1[item.id].text2}
                                                     ></DayItem>
                                                 );
                                             })}