123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <template>
- <div :class="['app-container', 'home',processClass]">
- </div>
- </template>
- <script>
- export default {
- name: "Index",
- data() {
- return {
- // 版本号
- version: "3.8.6",
- processClass: '',
- };
- },
- created(){
- // 根据环境切换名称和背景图
- if(process.env.NODE_ENV == 'development') { // 开发环境
- this.processClass = 'login-dev';
- } else if (process.env.NODE_ENV == 'staging') { // 测试环境
- this.processClass = 'login-stage';
- } else if (process.env.NODE_ENV == 'production') { // 生产环境
- this.processClass = 'login-prod';
- }
- },
- methods: {
- goTarget(href) {
- window.open(href, "_blank");
- }
- }
- };
- </script>
- <style scoped lang="scss">
- .app-container{
- display: flex;
- justify-content: center;
- align-items: center;
- min-height: calc(100vh - 84px);
- background-size: 100% 100%;
-
- }
- .login-prod {
- background-image: url("../assets/images/login-prod.jpg") !important;
- }
- .login-stage {
- background-image: url("../assets/index_bgm.jpg") !important;
- }
- .login-dev {
- background-image: url("../assets/index_bgm.jpg") !important;
- }
- .home {
- blockquote {
- padding: 10px 20px;
- margin: 0 0 20px;
- font-size: 17.5px;
- border-left: 5px solid #eee;
- }
- hr {
- margin-top: 20px;
- margin-bottom: 20px;
- border: 0;
- border-top: 1px solid #eee;
- }
- .col-item {
- margin-bottom: 20px;
- }
- ul {
- padding: 0;
- margin: 0;
- }
- font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
- font-size: 13px;
- color: #676a6c;
- overflow-x: hidden;
- ul {
- list-style-type: none;
- }
- h4 {
- margin-top: 0px;
- }
- h2 {
- margin-top: 10px;
- font-size: 26px;
- font-weight: 100;
- }
- p {
- margin-top: 10px;
- b {
- font-weight: 700;
- }
- }
- .update-log {
- ol {
- display: block;
- list-style-type: decimal;
- margin-block-start: 1em;
- margin-block-end: 1em;
- margin-inline-start: 0;
- margin-inline-end: 0;
- padding-inline-start: 40px;
- }
- }
- }
- </style>
|