Files
waf-platform/EdgeUser/web/views/@default/ns/domains/domain/verifyPopup.js
2026-02-04 20:27:13 +08:00

29 lines
590 B
JavaScript

Tea.context(function () {
this.isOk = false
this.errorMessage = ""
this.rawErrorMessage= ""
this.isVerifying = false
this.before = function () {
this.isOk = false
this.errorMessage = ""
this.rawErrorMessage= ""
this.isVerifying = true
}
this.submitSuccess = function (resp) {
this.isOk = resp.data.isOk
this.errorMessage = resp.data.message
this.rawErrorMessage = resp.data.rawErrorMessage
if (this.isOk) {
teaweb.success("验证完成", function () {
window.parent.location.reload()
})
}
}
this.done = function () {
this.isVerifying = false
}
})