Commit cf27ef68 by 李宏达

lhd

parent 5aee31ac
...@@ -29,7 +29,13 @@ ...@@ -29,7 +29,13 @@
} }
</script> </script>
<style> <style>
html {
width: 100%;
height: 100%;
}
body{ body{
width: 100%;
height: 100%;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
font-size: 14px; font-size: 14px;
...@@ -37,73 +43,21 @@ ...@@ -37,73 +43,21 @@
.app-main{ .app-main{
width:100%; width:100%;
height:100%; height:100%;
background:url("<%='/imgs/bklogin.png'%>") no-repeat;background-size: cover; /* background:url("<%='/imgs/bklogin.png'%>") no-repeat;background-size: cover; */
box-sizing: border-box; box-sizing: border-box;
} }
.app-header{
display: flex;
justify-content:space-between;
color: white;
padding: 15px;
box-sizing: border-box;
}
.app-stage{ .app-stage{
display: flex;
width: 100%; width: 100%;
padding: 5px;
box-sizing: border-box;
}
.app-stage .rightcontent{
flex-grow:1;
box-sizing: border-box;
}
.app-stage .rightcontent .el-card__body {
height: 100%;
}
.app-stage .rightcontent >.el-card{
border-radius: 0px;
height: 100%; height: 100%;
box-shadow:unset;
box-sizing: border-box; box-sizing: border-box;
} }
#appName{
font-size: 30px;
font-family:MicrosoftYaHei;
cursor: pointer;
}
.el-button--text{
color: white
}
.activeColor{
color:deepskyblue;
}
</style> </style>
</head> </head>
<body> <body>
<div id="app" v-loading="loading" class="app-main" style="visibility:hidden"> <div id="app" v-loading="loading" class="app-main">
<div id="app-header" class="app-header">
<div id="appName" >
<span @click=appclick> </span>
<span style="font-size:16px;" v-if="currentCompany">
<span style="font-size:20px" class="fa fa-home"></span>
<span v-if="currentUser && currentUser.owner && currentUser.owner.id!=1">{{currentUser.owner.name}}</span>
<!-- <span v-else>{{currentCompany.name}}</span> -->
</span>
</div>
<div id="login">
<gsb-button-group v-if="!currentUser" @select="onselect" ikey="login" :btns="logins"></gsb-button-group>
<span v-if="currentUser">欢迎您,{{currentUser.nickName}}<el-button @click="exitclick" type="text" icon="el-icon-setting">退出</el-button></span>
<!-- <span style="cursor:pointer" @click="settingclick" v-if="(currentUser && currentUser.roles.indexOf('common')>=0) || (currentUser && currentUser.isSuper)"><i class="el-icon-setting"></i>后台管理</span> -->
</div>
</div>
<div id="app-stage" class="app-stage"> <div id="app-stage" class="app-stage">
<div class="rightcontent"> <router-view></router-view>
<transition name="slide-fade"> </div>
<router-view>
</router-view>
</transition>
</div>
</div>
</div> </div>
<script src="/js/vue/jquery.min.js"></script> <script src="/js/vue/jquery.min.js"></script>
<script src="/js/common.js"></script> <script src="/js/common.js"></script>
......

360 KB | W: | H:

586 KB | W: | H:

bigdata/app/front/entry/public/imgs/bklogin.png
bigdata/app/front/entry/public/imgs/bklogin.png
bigdata/app/front/entry/public/imgs/bklogin.png
bigdata/app/front/entry/public/imgs/bklogin.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -98,15 +98,15 @@ axios.get("/vue/comp/base").then(function(res){ ...@@ -98,15 +98,15 @@ axios.get("/vue/comp/base").then(function(res){
$(window).resize(()=>{ $(window).resize(()=>{
var h=$(window).height(); var h=$(window).height();
var m=h-90; var m=h-90;
$("#app").css("min-height",h+"px"); // $("#app").css("min-height",h+"px");
$("#app-stage").css("min-height",m+"px"); // $("#app-stage").css("min-height",m+"px");
}); });
var h=$(window).height(); var h=$(window).height();
var m=h-90; var m=h-90;
$("#app").css("min-height",h+"px"); // $("#app").css("min-height",h+"px");
$("#app-stage").css("min-height",m+"px"); // $("#app-stage").css("min-height",m+"px");
this.stageHeight=m; this.stageHeight=m;
$("#app").css("visibility",'visible'); // $("#app").css("visibility",'visible');
this.loading=false; this.loading=false;
this.$store.state.company=companyinfo; this.$store.state.company=companyinfo;
}, },
......
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
.gsbform .el-form{ .gsbform .el-form{
width: 100%; width: 100%;
height: 100%; height: 100%;
padding:10px;margin:5px;position:relative; position:relative;
margin-top: 10px;
} }
.frmcollapse{ .frmcollapse{
......
.gtb-home{ .gtb-home{
display: flex;
width: 100%; width: 100%;
height: 100%; height: 100%;
margin: auto; background:url('/imgs/bkhome.png') no-repeat;
background-size: 100% 100%;
}
.gtb-home-main {
width: 100%;
display: flex;
opacity:0.8; opacity:0.8;
align-items:center; align-items:center;
justify-content: center; justify-content: center;
margin-top: 250px;
} }
.gtb-home .app-child{ .gtb-home .app-child{
width: 234px; width: 234px;
...@@ -14,7 +19,53 @@ ...@@ -14,7 +19,53 @@
margin: 15px; margin: 15px;
background-color: bisque; background-color: bisque;
position: relative; position: relative;
text-align: center;
padding-top: 36px;
box-sizing: border-box;
cursor: pointer;
}
.gtb-home .app-child > div {
width: 100%;
text-align: center;
margin-top: 19px;
font-size:24px;
font-family:Microsoft YaHei;
font-weight:400;
color:rgba(255,255,255,1);
} }
.gtb-home .app-child:hover{ .gtb-home .app-child:hover{
border: 1px solid white transform: translateY(-5%);
}
.gtb-home-title {
width: 100%;
overflow: hidden;
padding: 20px;
height: 76px;
box-sizing: border-box;
line-height: 36px;
}
.gtb-home-title > img {
float: left;
}
.gtb-home-title > span {
float: left;
font-size:22px;
font-family:Microsoft YaHei;
font-weight:300;
color:#333333;
}
.gtb-home-title > span > i {
color: #BEBEBE;
font-style:normal;
}
.gtb-home-title > div {
float: right;
height: 36px;
line-height: 36px;
overflow: hidden;
}
.gtb-home-title > div > img {
vertical-align: middle;
margin-left: 9px;
cursor: pointer;
} }
\ No newline at end of file
<div class="gtb-home"> <div class="gtb-home">
<div v-for="app in myapps" class="app-child" :style="bgimg(app)"> <div class="gtb-home-title">
<span @click="systemsetting(app)" v-if="currentUser && currentUser.roles.indexOf(\'common\')>=0" style="position: absolute;left:5px;top: 10px;font-size:20px;color:red;padding: 5px;cursor: pointer;"><i class="el-icon-setting"></i></span> <img src="/imgs/homeLogo.png" alt="">
<span><i></i>个体宝</span>
<div>
<img src="/imgs/ticon2.png" alt="">
<img src="/imgs/ticon1.png" alt="">
</div>
</div>
<div class="gtb-home-main">
<div v-for="(item,key) in showimgUrl" :key="key" class="app-child" :style="bgimg(item)">
<img :src="item.icon" alt="">
<div>{{item.name}}</div>
<!-- <span @click="systemsetting(app)" v-if="currentUser && currentUser.roles.indexOf(\'common\')>=0" style="position: absolute;left:5px;top: 10px;font-size:20px;color:red;padding: 5px;cursor: pointer;"><i class="el-icon-setting"></i></span>
<div class="activeColor" @click="goapplogin(app)" style="text-align:right;font-size: 0.8em;cursor: pointer;"> <div class="activeColor" @click="goapplogin(app)" style="text-align:right;font-size: 0.8em;cursor: pointer;">
GO GO
</div> </div> -->
</div> </div>
</div>
</div> </div>
\ No newline at end of file
...@@ -7,6 +7,28 @@ ...@@ -7,6 +7,28 @@
pxheight:"800px", pxheight:"800px",
myapps:[], myapps:[],
carisshow:false, carisshow:false,
showimgUrl:[
{
img: '/imgs/img1.png',
icon: '/imgs/icon1.png',
name: '个体工商宝'
},
{
img: '/imgs/img2.png',
icon: '/imgs/icon2.png',
name: '个体财务宝'
},
{
img: '/imgs/img3.png',
icon: '/imgs/icon3.png',
name: '个体税务宝'
},
{
img: '/imgs/img4.png',
icon: '/imgs/icon4.png',
name: '个体票据宝'
}
]
} }
}, },
mounted:function(){ mounted:function(){
...@@ -24,8 +46,7 @@ ...@@ -24,8 +46,7 @@
window.open(d.data.jumpUrl); window.open(d.data.jumpUrl);
}, },
bgimg(app){ bgimg(app){
console.log(app.showimgUrl); return "background:url('"+app.img+"') no-repeat;background-size: cover";
return "background:url('"+app.showimgUrl+"') no-repeat;background-size: cover";
}, },
async goapplogin(app){ async goapplogin(app){
var d= await this.$root.postReq("/web/auth/userCtl/goLoginForApp",app); var d= await this.$root.postReq("/web/auth/userCtl/goLoginForApp",app);
......
.tloginpage{ .tloginpage{
display: flex; display: flex;
width: 100%;
height: 100%;
flex-direction: column; flex-direction: column;
align-items: center align-items: center;
padding-top: 200px;
background:url('/imgs/bklogin.png') no-repeat;
background-size: 100% 100%;
box-sizing: border-box;
} }
.tlogin{ .tlogin{
width:428px; width:428px;
height:308px; height:308px;
margin: auto; margin: 0 auto;
position: relative;
z-index: 99;
} }
.tlogin .el-card{ .tlogin .el-card{
background:rgba(255,255,255,1); background:rgba(255,255,255,1);
...@@ -22,3 +30,18 @@ ...@@ -22,3 +30,18 @@
.tlogin .el-col{ .tlogin .el-col{
text-align:center text-align:center
} }
.tlogin-title {
margin-bottom: 18px;
}
.tlogin-name {
font-size:20px;
font-family:Microsoft YaHei;
font-weight:300;
color:rgba(255,255,255,1);
margin-bottom: 39px;
}
.tlogin-bottom {
position: absolute;
bottom: -120px;
left: -250px;
}
<div class="tloginpage"> <div class="tloginpage">
<div>公司宝logo</div> <div class="tlogin-title"><img src="/imgs/logo.png" alt=""></div>
<div>个体宝登录系统</div> <div class="tlogin-name">个体宝登录系统</div>
<div class="tlogin" > <div class="tlogin" >
<gsb-form class="tlogin" ref="loginFrm" @btnclick="loginclick" :metaData="ldms" :refvalidatemethod="validmethod"> <gsb-form class="tlogin" ref="loginFrm" @btnclick="loginclick" :metaData="ldms" :refvalidatemethod="validmethod">
</gsb-form> </gsb-form>
<div class="tlogin-bottom">
<img src="/imgs/bottom.png" alt="">
</div>
</div> </div>
</div> </div>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -56,7 +56,15 @@ ...@@ -56,7 +56,15 @@
"xml2js": "^0.4.19" "xml2js": "^0.4.19"
}, },
"devDependencies": { "devDependencies": {
"del": "^5.1.0",
"element-theme": "^2.0.1", "element-theme": "^2.0.1",
"element-theme-chalk": "^2.4.0" "element-theme-chalk": "^2.4.0",
"gulp-concat": "^2.6.1",
"gulp-if": "^3.0.0",
"gulp-imagemin": "^6.2.0",
"gulp-minify-css": "^1.2.4",
"gulp-tap": "^2.0.0",
"imagemin-pngquant": "^8.0.0",
"merge-stream": "^2.0.0"
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment