Files
waf-platform/EdgeUser/web/views/@default/anti-ddos/instances/renewConfirm.js
2026-02-04 20:27:13 +08:00

23 lines
581 B
JavaScript

Tea.context(function () {
this.goBack = function () {
window.history.back()
}
this.success = function (resp) {
if (resp.data.success) {
teaweb.success("实例续费成功", function () {
window.location = "/anti-ddos/instances"
})
return
}
if (resp.data.orderCode.length > 0) {
window.location = "/finance/pay?code=" + resp.data.orderCode + "&from=" + window.escape(window.location.toString()) + "&returnURL=/anti-ddos/instances"
}
}
this.methodCode = "@balance"
this.changePayMethod = function (methodCode) {
this.methodCode = methodCode
}
})