修改input字体大小为16px
This commit is contained in:
parent
641e3974d9
commit
b67bbb54d7
|
@ -1,6 +1,6 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import React, { useState, useEffect,useCallback } from "react";
|
import React, { useState, useEffect, useCallback } from "react";
|
||||||
import { useRouter, useSearchParams } from "next/navigation";
|
import { useRouter, useSearchParams } from "next/navigation";
|
||||||
import { Toast } from "antd-mobile";
|
import { Toast } from "antd-mobile";
|
||||||
import { generateSignature } from "@/utils/crypto";
|
import { generateSignature } from "@/utils/crypto";
|
||||||
|
@ -44,15 +44,18 @@ export default function Pay() {
|
||||||
|
|
||||||
//获取当前充值档位
|
//获取当前充值档位
|
||||||
const [isFetching, setIsFetching] = useState(true);
|
const [isFetching, setIsFetching] = useState(true);
|
||||||
const getBase = useCallback((webviewBase)=>{
|
const getBase = useCallback(
|
||||||
let searchParamsObj=null;
|
(webviewBase) => {
|
||||||
let currentBaseCode = searchParams.get("base")
|
let searchParamsObj = null;
|
||||||
if(currentBaseCode){
|
let currentBaseCode = searchParams.get("base");
|
||||||
let currentBase = JSON.parse(currentBaseCode);
|
if (currentBaseCode) {
|
||||||
searchParamsObj={...currentBase};
|
let currentBase = JSON.parse(currentBaseCode);
|
||||||
}
|
searchParamsObj = { ...currentBase };
|
||||||
return searchParamsObj || webviewBase;
|
}
|
||||||
},[searchParams]);
|
return searchParamsObj || webviewBase;
|
||||||
|
},
|
||||||
|
[searchParams]
|
||||||
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const webviewBase = webviewBaseRequest();
|
const webviewBase = webviewBaseRequest();
|
||||||
|
@ -103,14 +106,14 @@ export default function Pay() {
|
||||||
}
|
}
|
||||||
const webviewBase = webviewBaseRequest();
|
const webviewBase = webviewBaseRequest();
|
||||||
const base = getBase(webviewBase);
|
const base = getBase(webviewBase);
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
...base,
|
...base,
|
||||||
product_id: customCoin.selected ? "h5_custom_coin" : selectedPrice.id,
|
product_id: customCoin.selected ? "h5_custom_coin" : selectedPrice.id,
|
||||||
custom_coins: customCoin.selected ? customCoin.num : 0,
|
custom_coins: customCoin.selected ? customCoin.num : 0,
|
||||||
pay_type: type,
|
pay_type: type,
|
||||||
redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "",
|
redirect_url: type === "yeepay_wxpay_h5" ? window.location.href : "",
|
||||||
from: searchParams.get("base")?"web":"app",
|
from: searchParams.get("base") ? "web" : "app",
|
||||||
};
|
};
|
||||||
|
|
||||||
//如果是微信jsapi支付直接跳转到中间页
|
//如果是微信jsapi支付直接跳转到中间页
|
||||||
|
@ -283,7 +286,7 @@ export default function Pay() {
|
||||||
placeholder="请输入金币数额"
|
placeholder="请输入金币数额"
|
||||||
value={customCoin.num.toString()}
|
value={customCoin.num.toString()}
|
||||||
onChange={handleChangeCustomCoin}
|
onChange={handleChangeCustomCoin}
|
||||||
className="input input-bordered input-md input-primary w-full"
|
className="input input-bordered input-md text-base input-primary w-full"
|
||||||
/>
|
/>
|
||||||
<p className="text-secondary text-base mt-2">
|
<p className="text-secondary text-base mt-2">
|
||||||
预估金额:¥{customCoin.num / 10}
|
预估金额:¥{customCoin.num / 10}
|
||||||
|
|
Loading…
Reference in New Issue