取消支付宝维护

This commit is contained in:
yezian 2024-02-13 00:03:27 +08:00
parent 47ecb42ec1
commit bb4f519845
2 changed files with 11 additions and 27 deletions

View File

@ -9,12 +9,6 @@ import webviewBaseRequest from "@/utils/webviewBaseRequest";
export default function Pay() {
const router = useRouter();
const alipayBlock = () => {
Toast.show({
content: "支付渠道维护升级中请24小时后再试",
});
};
//
const [productList, setProductList] = useState([]);
@ -281,8 +275,7 @@ export default function Pay() {
<div className="flex mt-auto mb-12">
<div className="basis-1/2 px-2">
<button
// onClick={() => createOrder("alipay_h5")}
onClick={alipayBlock}
onClick={() => createOrder("alipay_h5")}
className="flex flex-row h-12 w-full items-center justify-center bg-primary rounded-full py-2"
>
<svg viewBox="0 0 1024 1024" width="18" height="18">
@ -291,9 +284,7 @@ export default function Pay() {
fill="#FFFFFF"
></path>
</svg>
<p className="text-white text-base ml-1">
支付宝<span className="text-xs">维护中</span>
</p>
<p className="text-white text-base ml-1">支付宝支付</p>
</button>
</div>
<div className="basis-1/2 px-2">

View File

@ -21,12 +21,6 @@ import { useRouter } from "next/navigation";
export default function Vip() {
const router = useRouter();
const alipayBlock = () => {
Toast.show({
content: "支付渠道维护升级中请24小时后再试",
});
};
//vip
const [isVip, setIsVip] = useState(false);
const [name, setName] = useState("");
@ -142,13 +136,13 @@ export default function Vip() {
}
};
// if (isFetching) {
// return (
// <section className="flex flex-1 justify-center container">
// <span className="absolute top-1/2 loading loading-spinner loading-lg"></span>
// </section>
// );
// }
if (isFetching) {
return (
<section className="flex flex-1 justify-center container">
<span className="absolute top-1/2 loading loading-spinner loading-lg"></span>
</section>
);
}
return (
<section className="flex flex-1 justify-center container">
@ -249,13 +243,12 @@ export default function Vip() {
<div className="flex flex-row justify-between">
<div className="basis-1/2 pr-2">
<div
// onClick={() => createOrder("alipay_h5")}
onClick={alipayBlock}
onClick={() => createOrder("alipay_h5")}
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
>
<Image src={alipay} width={22} alt="" />
<p className="text-white text-base font-medium whitespace-nowrap">
支付宝<span className="text-xs">维护中</span>
支付宝支付
</p>
</div>
</div>