开发钱包相关页面,调试提现接口

This commit is contained in:
2025-09-27 23:08:32 +08:00
parent a1be43e02b
commit d6fb08eee4
13 changed files with 972 additions and 207 deletions

View File

@@ -15,7 +15,7 @@ interface FormFields {
const SetTransactionPassword: React.FC = () => {
const [handleType, setHandleType] = useState("set");
const router = useRouter();
const { type } = router.params;
const { type, phone, sms_code } = router.params;
useEffect(() => {
if (type) {
@@ -60,9 +60,9 @@ const SetTransactionPassword: React.FC = () => {
return;
}
} else if (handleType === "reset") {
const { old_password } = formData;
// const { old_password } = formData;
try {
await httpService.post("/wallet/change_payment_password", { old_password, new_password });
await httpService.post("/wallet/reset_payment_password", { phone, new_password, sms_code });
Taro.showToast({
title: "修改交易密码成功",
icon: "success",
@@ -81,12 +81,12 @@ const SetTransactionPassword: React.FC = () => {
return (
<View className="set-transaction-password-page">
{
handleType === "reset" && (
<View className="form-item">
<Text className="form-label"></Text>
<Input placeholder="请输入旧密码" password type="number" maxlength={6} onInput={(e) => { handleInput(e, "old_password") }}></Input>
</View>
)
// handleType === "reset" && (
// <View className="form-item">
// <Text className="form-label">旧密码</Text>
// <Input placeholder="请输入旧密码" password type="number" maxlength={6} onInput={(e) => { handleInput(e, "old_password") }}></Input>
// </View>
// )
}
<View className="form-item">
<Text className="form-label"></Text>