清新风格登录主题。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

76 lines
3.1 KiB

!(function () {
var Login = BI.inherit(BI.Widget, {
props: {
baseCls: "dec-login"
},
_store: function () {
return BI.Models.getModel("dec.model.login");
},
watch: {
},
render: function () {
var self = this, loginConfig = this.model.loginConfig;
return {
type: "bi.htape",
cls: "dec-login-fresh",
items: [{
type: "bi.default"
}, {
type: "bi.center_adapt",
width: 0.35,
cls: "login-area",
items: [{
type: "bi.absolute",
height: 480,
width: "100%",
items: [{
el: {
type: "bi.vtape",
items: [{
type: "bi.horizontal_auto",
height: 100,
items: [{
el: {
type: "bi.center_adapt",
items: [{
type: "bi.img",
src: BI.isEmpty(loginConfig.loginLogoImgId) ?
(Dec.resourceURL + "resources/logo.png") : (Dec.fineServletURL + "/login/image/" + loginConfig.loginLogoImgId),
height: 50,
width: "auto"
}]
}
}, {
el: {
type: "bi.label",
height: 24,
cls: "dec-font-weight-bold",
text: loginConfig.loginTitle
},
tgap: 24
}],
ref: function (_ref) {
self.logo = _ref;
}
}, {
type: "dec.login.index",
listeners: [{
eventName: "EVENT_CHANGE",
action: function (v) {
self.logo.setVisible(v === DecCst.Login.Tabs.LOGIN);
}
}]
}]
}, top: 0, right: 89, bottom: 0, left: 89
}]
}]
}]
};
}
});
BI.shortcut("dec.login.custom", Login);
})();