更新支付传参&首页接口&菜单栏导航后tab切换

This commit is contained in:
Eamon-meng
2025-06-25 14:43:44 +08:00
parent 7a34aac581
commit b19b01f82c
8 changed files with 155 additions and 64 deletions

View File

@@ -58,24 +58,17 @@ export default function RechargeModal(props: RechargeModelProps) {
const refreshProfile = useProfileStore(store => store.refreshProfile)
const createRecharge = async (data: Schema) => {
console.log(data, 'data')
try {
const method = platform === TradePlatform.Desktop
? TradeMethod.Sft
: data.method === 'alipay'
? TradeMethod.SftAlipay
: TradeMethod.SftWechat
const method = data.method === 'alipay'
? TradeMethod.SftAlipay
: TradeMethod.SftWechat
const req = {
amount: data.amount.toString(),
platform: platform,
method: method,
}
console.log(req, '请求参数')
const result = await RechargePrepare(req)
console.log(result, 'result返回结果')
if (result.success) {
setTrade({