Merge pull request 'main' (#19) from main into space_domain
Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/tiefen_space_h5/pulls/19
This commit is contained in:
commit
9a4707780a
|
@ -5,12 +5,15 @@ import { Dialog, Toast } from "antd-mobile";
|
|||
import { checkRole } from "@/utils/auth";
|
||||
// import { useRouter } from "next/navigation";
|
||||
import baseRequest from "@/utils/baseRequest";
|
||||
import { get } from "@/utils/storeInfo";
|
||||
|
||||
export default function CheckVip({ children, isVipToPassFun, router }) {
|
||||
// const router = useRouter();
|
||||
const base = baseRequest();
|
||||
useEffect(() => {}, []);
|
||||
const handleCheck = () => {
|
||||
const isVip = checkRole();
|
||||
const account = get("account");
|
||||
const isVip = account?.is_a_member;
|
||||
if (!isVip) {
|
||||
const showMobal = Dialog.show({
|
||||
title: "是否开通会员",
|
||||
|
|
Loading…
Reference in New Issue