|
@@ -1,6 +1,6 @@
|
|
|
"use client";
|
|
|
|
|
|
-import { getWheelApi, getWheelRunApi, WheelsType } from "@/api/cashWheel";
|
|
|
+import { getWheelApi, WheelsType } from "@/api/cashWheel";
|
|
|
import Progress from "@/app/[locale]/(navbar)/cashback/@cashbackInfo/components/Progress";
|
|
|
import { useRouter } from "@/i18n/routing";
|
|
|
import { getToken } from "@/utils/Cookies";
|
|
@@ -30,6 +30,7 @@ const blocks = [
|
|
|
src: "/wheels/wheel.png",
|
|
|
width: "100%",
|
|
|
height: "100%",
|
|
|
+ rotate: true,
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -180,17 +181,17 @@ export const WheelClient: FC<WheelProps> = (props) => {
|
|
|
// 点击抽奖按钮会触发star回调
|
|
|
rotating.current = true;
|
|
|
|
|
|
- getWheelRunApi({ activity_id: current.id })
|
|
|
- .then((res) => {
|
|
|
- setTimeout(() => {
|
|
|
- wheelRef.current?.stop(res.data.index);
|
|
|
-
|
|
|
- currentWin.current = res.data;
|
|
|
- }, 2000);
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- wheelRef.current?.init();
|
|
|
- });
|
|
|
+ // getWheelRunApi({ activity_id: current.id })
|
|
|
+ // .then((res) => {
|
|
|
+ // setTimeout(() => {
|
|
|
+ // wheelRef.current?.stop(res.data.index);
|
|
|
+ //
|
|
|
+ // currentWin.current = res.data;
|
|
|
+ // }, 2000);
|
|
|
+ // })
|
|
|
+ // .catch(() => {
|
|
|
+ // wheelRef.current?.init();
|
|
|
+ // });
|
|
|
};
|
|
|
const endRotate = (prize: any) => {
|
|
|
rotating.current = false;
|
|
@@ -429,7 +430,7 @@ const WheelModal = forwardRef<WheelModalProps, Props>(function RedPacketModal(pr
|
|
|
</Mask>
|
|
|
<Mask visible={visible} destroyOnClose={true} getContainer={null}>
|
|
|
<div
|
|
|
- className={"absolute right-[0.2083rem] top-[20%] z-50"}
|
|
|
+ className={"absolute right-[0.2083rem] top-[18%] z-50"}
|
|
|
onClick={() => setVisible(false)}
|
|
|
>
|
|
|
<span className={"iconfont icon-guanbi"}></span>
|