Fix the bad behavior in mobile.

This commit is contained in:
hxsherry
2018-01-19 01:44:21 +08:00
parent 413b90e623
commit cf87e2e495
7 changed files with 64 additions and 14 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ module.exports = {
proxyTable: {
'/api': {
//target: 'http://tank.eyeblue.cn',
target: 'http://192.168.0.100:6010',
target: 'http://localhost:6010',
changeOrigin: true,
pathRewrite: {
'^/api': '/api'
+8 -2
View File
@@ -1,9 +1,15 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>蓝眼云盘</title>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1,maximum-scale=1">
<meta name="msapplication-tap-highlight" content="no">
<meta name="apple-mobile-web-app-capable" content="yes">
</head>
<body>
<div id="app"></div>
+1 -1
View File
@@ -25,7 +25,7 @@
@media (max-width: 768px) {
.el-message-box__wrapper {
.el-message-box {
width: 300px;
width: 90%;
}
}
}
+7 -1
View File
@@ -5,6 +5,7 @@
<div>
<SideNavigation/>
<div id="page-wrapper" :class="{'show-drawer':$store.state.config.showDrawer}" @click="blankClick">
<div>
<div class="mb10">
@@ -30,8 +31,10 @@
</div>
<TopNavigation/>
</div>
<TopNavigation/>
<!--手机上不显示bottomNavigation而采用弹出的形式-->
<BottomNavigation />
</div>
</div>
@@ -105,6 +108,7 @@
bottom: @power-footer-height;
overflow-y: auto;
overflow-x: hidden;
z-index: 10;
padding: 10px;
@@ -122,6 +126,7 @@
//小屏幕
@media (max-width: @screen-xs-max) {
left: 0;
bottom: 0;
}
&.show-drawer {
@@ -133,6 +138,7 @@
//小屏幕
@media (max-width: @screen-xs-max) {
left: 0;
bottom: 0;
}
}
}
+3 -1
View File
@@ -16,7 +16,6 @@
<script>
export default {
name: 'bottom-navigation',
data(){
return{
preference: this.$store.state.preference
@@ -32,6 +31,7 @@
position: fixed;
height: @power-footer-height;
line-height: @power-footer-height;
background-color: white;
bottom: 0;
right: 0;
left: @sidebar-width;
@@ -44,6 +44,7 @@
//小屏幕
@media (max-width: @screen-xs-max) {
left: 0;
display: none;
}
&.show-drawer {
@@ -55,6 +56,7 @@
//小屏幕
@media (max-width: @screen-xs-max) {
left: 0;
display: none;
}
}
}
+43 -7
View File
@@ -52,6 +52,13 @@
</router-link>
</li>
<li class="about-menu">
<a href="javascript:void(0)" @click.stop.prevent="showAbout">
<i class="w14 fa fa-info-circle"></i>
<span>关于</span>
</a>
</li>
</ul>
@@ -59,13 +66,14 @@
</nav>
</template>
<script>
import {Message, MessageBox, Notification} from 'element-ui'
export default {
data() {
return {
user: this.$store.state.user
user: this.$store.state.user,
preference: this.$store.state.preference
}
},
computed: {
@@ -88,15 +96,30 @@
this.$router.push("/user/detail/" + this.user.uuid);
}
},
eatClick() {
},
showAbout() {
let html = '<div class="text-center">' + this.preference.footerLine1 + "<br/>" + this.preference.footerLine2 + "<br/>" + 'Powered by <a target="_blank" href="https://github.com/eyebluecn/tank"><img class="w30" src="../../assets/img/logo.png"/> 蓝眼云盘</a>' + '</div>'
MessageBox({
title: '关于',
message: html,
dangerouslyUseHTMLString: true,
confirmButtonText: '确定',
showCancelButton: false,
cancelButtonText: '关闭',
callback: (action, instance) => {
if (action === 'confirm') {
}
}
})
}
},
watch: {
},
watch: {},
mounted() {
let that = this;
}
@@ -133,7 +156,7 @@
left: -@sidebar-width;
top: 0;
bottom: 0;
z-index: 2000;
z-index: 1000;
background: darken(@nav-bg, 3%);
@@ -204,6 +227,7 @@
&:hover, &:focus {
color: @font-highlight-color;
background-color: transparent;
outline: none;
}
i {
@@ -217,6 +241,18 @@
}
}
.about-menu {
//大屏幕
@media (min-width: @screen-sm-min) {
display: none;
}
//手机屏幕
@media (max-width: @screen-xs-max) {
}
}
}
+1 -1
View File
@@ -62,7 +62,7 @@
top: 0;
left: 0;
right: 0;
z-index: 10;
z-index: 100;
padding-left: @sidebar-width;
.navbar {