提现错误弹窗

This commit is contained in:
2025-09-29 22:43:17 +08:00
parent 9b6e3e15d0
commit 276e7dfee0
5 changed files with 121 additions and 127 deletions

View File

@@ -43,38 +43,19 @@ const SetTransactionPassword: React.FC = () => {
});
return;
}
if (handleType === "set") {
const { sms_code } = formData;
try {
await httpService.post("/wallet/set_payment_password", { password: new_password, sms_code });
Taro.showToast({
title: "设置交易密码成功",
icon: "success",
});
Taro.navigateBack();
} catch (error) {
Taro.showToast({
title: "设置交易密码失败",
icon: "none",
});
return;
}
} else if (handleType === "reset") {
// const { old_password } = formData;
try {
await httpService.post("/wallet/reset_payment_password", { phone, new_password, sms_code });
Taro.showToast({
title: "修改交易密码成功",
icon: "success",
});
Taro.navigateBack();
} catch (error) {
Taro.showToast({
title: "修改交易密码失败",
icon: "none",
});
return;
}
try {
await httpService.post("/wallet/set_payment_password", { password: new_password });
Taro.showToast({
title: "设置交易密码成功",
icon: "success",
});
Taro.navigateBack();
} catch (error) {
Taro.showToast({
title: "设置交易密码失败",
icon: "none",
});
return;
}
};