更新支付传参&首页接口&菜单栏导航后tab切换
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user