空间支付改为支付宝
This commit is contained in:
parent
41bade036e
commit
efb1c866dd
|
@ -7,6 +7,8 @@ import { Toast, Switch } from "antd-mobile";
|
|||
import { generateSignature } from "@/utils/crypto";
|
||||
import webviewBaseRequest from "@/utils/webviewBaseRequest";
|
||||
import { useRouter } from "next/navigation";
|
||||
import alipay from "@/public/images/alipay.png";
|
||||
import Image from "next/image";
|
||||
|
||||
export default function Pay({ params }) {
|
||||
const router = useRouter();
|
||||
|
@ -126,7 +128,6 @@ export default function Pay({ params }) {
|
|||
}
|
||||
);
|
||||
const data = await response.json();
|
||||
console.log(data);
|
||||
if (data.ret === -1) {
|
||||
Toast.show({
|
||||
content: data.msg,
|
||||
|
@ -305,6 +306,17 @@ export default function Pay({ params }) {
|
|||
<div className="flex flex-col pt-3 pb-11 px-4 bg-[#07050AE5]">
|
||||
<div className="flex flex-row justify-between">
|
||||
<div className="w-full px-2">
|
||||
<div
|
||||
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">
|
||||
支付宝支付
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{/* <div className="w-full px-2">
|
||||
<div
|
||||
onClick={() => createOrder("wxpay_h5")}
|
||||
className="flex flex-row cursor-pointer gap-1.5 h-11 items-center justify-center bg-primary rounded-full"
|
||||
|
@ -319,7 +331,7 @@ export default function Pay({ params }) {
|
|||
微信支付
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> */}
|
||||
</div>
|
||||
<p className="text-secondary text-xs font-medium mt-4 text-center mb-1">
|
||||
确认购买即视为同意
|
||||
|
|
Loading…
Reference in New Issue