1.4.5.2
This commit is contained in:
29
EdgeUser/web/views/@default/ns/domains/domain/verifyPopup.js
Normal file
29
EdgeUser/web/views/@default/ns/domains/domain/verifyPopup.js
Normal file
@@ -0,0 +1,29 @@
|
||||
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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user