浏览代码

feat: 修改

year 2 周之前
父节点
当前提交
c9abb3a966
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/app/[locale]/(doings)/depositing/page.tsx

+ 7 - 2
src/app/[locale]/(doings)/depositing/page.tsx

@@ -16,7 +16,12 @@ const Page = () => {
     const total = firstTarget?.condition?.length || 0;
     useEffect(() => {
         getFirstPayData();
+        // getShopData();
     }, []);
+    // const getShopData = async () => {
+    //     const res = await getShopInfoApi({ shop_id: 1 });
+    //     console.log(res);
+    // };
 
     return (
         <div className={"p-[0.12rem]"}>
@@ -79,10 +84,10 @@ const Page = () => {
                         " px-[10px] font-semibold"
                     }
                 >
-                    <span>Tempos de recarga atuais:</span>
+                    <span>Número atual de recargas:</span>
                     <span className="ml-[.1rem] text-[#11de68]">
                         {(firstTarget?.count_down ?? 0 > 0)
-                            ? `${firstTarget?.current_num ? total - (firstTarget?.current_num || 0) : 0}vez`
+                            ? `${firstTarget?.current_num ? firstTarget?.current_num : 0}vez`
                             : "O evento terminou"}
                     </span>
                 </div>