25 lines
667 B
JavaScript
25 lines
667 B
JavaScript
Tea.context(function () {
|
|
if (typeof this.domains == "undefined") {
|
|
this.domains = [];
|
|
}
|
|
|
|
this.bindDomain = function () {
|
|
teaweb.popup("/httpdns/apps/domains/createPopup?appId=" + this.app.id, {
|
|
height: "24em",
|
|
width: "46em",
|
|
title: "添加域名"
|
|
});
|
|
};
|
|
|
|
this.deleteDomain = function (domainId) {
|
|
let that = this;
|
|
teaweb.confirm("确定要解绑这个域名吗?", function () {
|
|
that.$post("/httpdns/apps/domains/delete")
|
|
.params({
|
|
domainId: domainId
|
|
})
|
|
.refresh();
|
|
});
|
|
};
|
|
});
|