Browse Source

登录页插件

master
qcc 5 years ago
parent
commit
4bfe0416ce
  1. 0
      lib/reportlibs/.gitkeep
  2. 3
      src/main/java/com/fr/plugin/login/theme/fresh/FreshComponent.java
  3. 4
      src/main/java/com/fr/plugin/login/theme/fresh/FreshTheme.java
  4. 5
      src/main/resources/com/fr/plugin/login/theme/fresh/web/js/config.js
  5. 2
      src/main/resources/com/fr/plugin/login/theme/fresh/web/js/login.js
  6. 8
      src/main/resources/com/fr/plugin/login/theme/fresh/web/style.css
  7. 6
      src/main/resources/com/fr/plugin/login/theme/fresh/web/theme.js

0
lib/reportlibs/.gitkeep

3
src/main/java/com/fr/plugin/login/theme/fresh/FreshComponent.java

@ -2,6 +2,7 @@ package com.fr.plugin.login.theme.fresh;
import com.fr.decision.config.AppearanceConfig;
import com.fr.web.struct.Component;
import com.fr.web.struct.category.ParserType;
import com.fr.web.struct.category.ScriptPath;
import com.fr.web.struct.category.StylePath;
import com.fr.web.struct.Filter;
@ -21,7 +22,7 @@ public class FreshComponent extends Component {
@Override
public StylePath style() {
return StylePath.build("com/fr/plugin/login/theme/fresh/web/style.css");
return StylePath.build("com/fr/plugin/login/theme/fresh/web/style.css", ParserType.DYNAMIC);
}
@Override

4
src/main/java/com/fr/plugin/login/theme/fresh/FreshTheme.java

@ -39,11 +39,11 @@ public class FreshTheme extends AbstractLoginPageProvider {
@Override
public int imgHeight() {
return 1280;
return 1080;
}
@Override
public int imgWidth() {
return 1280;
return 1920;
}
}

5
src/main/resources/com/fr/plugin/login/theme/fresh/web/js/config.js

@ -0,0 +1,5 @@
!(function () {
BI.config("dec.login", function (ob) {
return BI.extend(ob, {type: "dec.login.custom"});
});
})();

2
src/main/resources/com/fr/plugin/login/theme/fresh/web/js/login.js

@ -39,7 +39,7 @@
items: [{
type: "bi.img",
src: BI.isEmpty(loginConfig.loginLogoImgId) ?
(Dec.resourceURL + "resources/logo.png") : (Dec.fineServletURL + "/login/image/" + loginConfig.loginLogoImgId),
(Dec.resourceURL + "resources/logo_FR.png") : (Dec.fineServletURL + "/login/image/" + loginConfig.loginLogoImgId),
height: 50,
width: "auto"
}]

8
src/main/resources/com/fr/plugin/login/theme/fresh/web/style.css

@ -6,14 +6,14 @@
}
.dec-login-fresh {
background: url('com/fr/plugin/login/theme/fresh/web/images/2x/fresh_bg.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='com/fr/plugin/login/theme/fresh/web/images/2x/fresh_bg.png');
background: url('${fineServletURL}/resources?path=com/fr/plugin/login/theme/fresh/web/images/2x/fresh_bg.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${fineServletURL}/resources?path=com/fr/plugin/login/theme/fresh/web/images/2x/fresh_bg.png');
background-size: contain;
_background: none;
}
.dec-login-fresh.hack {
background: url('com/fr/plugin/login/theme/fresh/web/images/1x/fresh_bg.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='com/fr/plugin/login/theme/fresh/web/dist/images/1x/fresh_bg.png');
background: url('${fineServletURL}/resources?path=com/fr/plugin/login/theme/fresh/web/images/1x/fresh_bg.png') no-repeat center center;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='${fineServletURL}/resources?path=com/fr/plugin/login/theme/fresh/web/dist/images/1x/fresh_bg.png');
_background: none;
}
.dec-login-fresh {

6
src/main/resources/com/fr/plugin/login/theme/fresh/web/theme.js

@ -39,7 +39,7 @@
items: [{
type: "bi.img",
src: BI.isEmpty(loginConfig.loginLogoImgId) ?
(Dec.resourceURL + "resources/logo.png") : (Dec.fineServletURL + "/login/image/" + loginConfig.loginLogoImgId),
(Dec.resourceURL + "resources/logo_FR.png") : (Dec.fineServletURL + "/login/image/" + loginConfig.loginLogoImgId),
height: 50,
width: "auto"
}]
@ -73,4 +73,8 @@
}
});
BI.shortcut("dec.login.custom", Login);
BI.config("dec.login", function (ob) {
return BI.extend(ob, {type: "dec.login.custom"});
});
})();
Loading…
Cancel
Save