|
@@ -3,9 +3,11 @@ import { getWheelApi } from "@/api/cashWheel";
|
|
|
import { ServiceTypes } from "@/api/customservice";
|
|
|
import { lredPacketApi, redPacketApi } from "@/api/promo";
|
|
|
import { getGiveInfoApi } from "@/api/slots";
|
|
|
-import UserRecharge, { ModalRefProps, Timeout } from "@/components/ModalPopup/RechargeModal";
|
|
|
+import { Timeout } from "@/components/ModalPopup/RechargeModal";
|
|
|
import RedPacketModal, { RedPacketModalProps } from "@/components/ModalPopup/RedPacketModal";
|
|
|
import SlotsModal, { SlotModalRefProps } from "@/components/ModalPopup/SlotsModal";
|
|
|
+import dialogManage from "@/dialog/manager";
|
|
|
+
|
|
|
import { useEventPoint } from "@/hooks/useEventPoint";
|
|
|
import { Link } from "@/i18n/routing";
|
|
|
import { useFirstPayStore } from "@/stores/useFirstPayStore";
|
|
@@ -60,6 +62,7 @@ const SlotSection: FC<SlotSectionProps> = ({ onDestory }) => {
|
|
|
src={"/slots/slots-icon.gif"}
|
|
|
className={"mb-[0.2778rem] w-[100%]"}
|
|
|
onClick={slotHandler}
|
|
|
+ alt=""
|
|
|
/>
|
|
|
) : null}
|
|
|
|
|
@@ -89,8 +92,6 @@ const WheelSection = () => {
|
|
|
<Image src={"/wheels/wheel-icon.gif"} alt={"wheel"} width={100} height={100} />
|
|
|
</Link>
|
|
|
) : null}
|
|
|
-
|
|
|
- {/* 轮盘弹窗 */}
|
|
|
</>
|
|
|
);
|
|
|
};
|
|
@@ -107,21 +108,6 @@ const PaySection = () => {
|
|
|
};
|
|
|
});
|
|
|
|
|
|
- const userRechargeRef = useRef<ModalRefProps>(null);
|
|
|
- // 首充活动
|
|
|
- // const getPayInfo = async (): Promise<PayDataType> => {
|
|
|
- // if (token) {
|
|
|
- // const result = await getPaysApi();
|
|
|
- // return result.data;
|
|
|
- // } else {
|
|
|
- // return Promise.resolve({
|
|
|
- // first_pay: [],
|
|
|
- // pay: [],
|
|
|
- // });
|
|
|
- // }
|
|
|
- // };
|
|
|
- // const getPayInfo = async (): Promise<PayDataType> => {};
|
|
|
-
|
|
|
const { data, run: payRun } = useRequest(getPayData, {
|
|
|
pollingErrorRetryCount: 1,
|
|
|
pollingWhenHidden: false,
|
|
@@ -138,9 +124,11 @@ const PaySection = () => {
|
|
|
className={"w-[0.54rem]"}
|
|
|
src="/hby/recharge.png"
|
|
|
onClick={() => {
|
|
|
- userRechargeRef.current?.onOpen &&
|
|
|
- userRechargeRef.current?.onOpen(firstPay, index);
|
|
|
+ dialogManage.showDialog("PaySection", firstPay, index);
|
|
|
+ // userRechargeRef.current?.onOpen &&
|
|
|
+ // userRechargeRef.current?.onOpen(firstPay, index);
|
|
|
}}
|
|
|
+ alt=""
|
|
|
/>
|
|
|
{item.count_down > 0 ? (
|
|
|
<Timeout
|
|
@@ -158,9 +146,6 @@ const PaySection = () => {
|
|
|
</div>
|
|
|
);
|
|
|
})}
|
|
|
-
|
|
|
- {/*首充弹窗*/}
|
|
|
- <UserRecharge ref={userRechargeRef} />
|
|
|
</>
|
|
|
);
|
|
|
};
|